This guide describes using a web browser to edit, or add content into, a markdown file on AzDevOps.
Note: This guide assumes that the markdown file you’re modifying exists on AzDevOps already. As an example, this guide uses a markdown file from an example repository (example-repo) on AzDevOps. Modify the following instructions to suit your preferred markdown file and AzDevOps repository (repo) accordingly.
Prerequisites
Before you proceed complete the following:
- Install Visual Studio Code
- Install Docs Authoring Pack
- Install Word Count extension
- Install Pull Requests extension
- Install Azure Repos extension
- Install Git client
- Set Git credentials
- Terminology and concepts
- General project workflow
- Download course files (clone repo)
- Project branching policies
- Create new branch in VSC
- Send (push) files
- Markdown syntax guide
Topics in this guide
Edit a markdown file on AzDevOps in a web browser
Complete the following steps to use a web browser to modify a markdown file on AzDevOps.
-
Open a web browser, go to the AzDevOps website at https://dev.azure.com, and sign in.
-
On the projects tab, locate the project you require, and select the Repos icon.
For example, in the following image, the Repos icon for the project example-repo is selected.
-
The branch dropdown indicates which branch AzDevOps is currently set to.
For example, in the following image, the branch dropdown indicates that AzDevOps is set to the branch named master.
Use the branch dropdown to view a list of available branches, and then choose the branch with the file you want to modify.
For example, in the following image, the branch mod01-ce-mkavana is selected from the branch dropdown.
-
Select Files from the left sidebar to access the repo’s contents.
-
The AzDevOps repo uses a standard file and folder structure. Browse the repo’s contents, and go to the folder and file you require.
For example, in the following image, the file sample-file .md is selected in the folder mod01-folder.
Note: Use your web browser’s address bar to get the URL for a file on AzDevOps. The URL contains the path to the file and the branch name. You can share the URL with other contributors if you need to.
For example, in the following image, the URL in the address bar is selected for copying the filepath mod01-folder\sample-file .md on the branch named mod01-ce-mkavana.
-
Select Edit (the pencil icon) to open the file in the Editor pane.
For example, in the following image, the Edit icon opens the markdown file sample-file .md in the Editor pane.
-
In the Contents tab, locate the part of the markdown file you want to modify.
For example, in the following image, part of the file below the heading
## 02. Example topic
is selected. -
Apply the required edits or add your content to the markdown file.
For example, the following text is added into the last line of the markdown file sample-file .md.
This is sample text.
Note: Ensure that your file modifications conform to the markdown syntax described in the guide Markdown syntax guide.
-
To preview how your file modifications are rendered, choose the Preview tab. To return to editing the file, select the Contents tab.
Note: Previewing your file changes is optional, but considered good practice as it helps you to ensure that your file changes render as intended.
For example, in the following image, the Preview tab in the AzDevOps editor contains the text added into markdown file sample-file .md.
-
After you’ve made the necessary file edits/ additions, select Commit.
-
In the Commit pane, complete the following:
Item Description Comment Add a message to provide other contributors with a summary description of the changes you applied to the file. For example, add new sample text to the file ‘mod01-folder/sample-file.md’ Branch name To save (commit) your file changes to a new branch, enter a name for your new branch. For example, mod01-text-update-mk. In the next steps, you’ll ask the owner of the originating branch to approve and accept your file changes by using pull request (preferred approach). For example, in the following image, the message in the Commit pane describes the text added to the example markdown file (in the previous Step 8). The file change will be committed to a new branch named mod01-text-update-mk.
Note: Using a pull request (PR) to ask the owner of the originating branch to approve your file changes is the preferred approach. Alternatively, you can commit your file changes directly to the current branch without opening a new pull request. Committing file changes directly to an existing branch is not recommended as it makes tracking changes and fixing problems more difficult. Always create a new branch and open a pull request, unless you must commit to the current branch directly (for example, during a Technical Review).
To commit to the current branch, after you add your commit message, leave the branch name set to the current branch, choose Commit, and then skip ahead to Step 19.
For example, in the following image, the message in the Commit pane describes the text added to the example markdown file (in the previous Step 8). The file change will be committed to the current branch mod01-ce-mkavana.
-
Use the checkbox to select the option to Create a pull request. Then, choose Commit.
-
In the New pull request form, use the dropdowns to set the branch to merge from and the branch to merge into.
For example, in the following image, the dropdowns are set to merge from the branch mod01-text-update-mk into the branch mod01-ce-mkavana.
-
In the New pull request form, add the following into the PR Title text field:
- number of the module that the file you’re merging belongs to
- type of action you performed on the file you’re merging (for example, copy edit review, image updates)
- name of the branch you’re merging into (for example, master)
For example, in the following image, a suitable PR title is Mod01 text updates merge from branch ‘mod01-ce-mkavana’ into branch ‘mod01-ce-mkavana’.
-
Optional: In the Description text field, describe the file additions/ changes you’re merging.
For example, in the following image, a suitable description is Add new sample text into the Mod01 file ‘mod01-folder/sample-file.md’.
Note: Descriptions provide a way for contributors to explain the changes they apply to files. Descriptions are optional, but recommended.
The reviewer’s guides in the Workflow and processes section of this website suggest adding a checklist of items the for review into the Description field. A checklist provides a convenient way for reviewers, content authors, and other contributors to track the progress of a review. To add a review checklist to your PR, choose a guide that corresponds to your role from the navigation menu on the left of this website.
-
For Reviewers, add a reviewer to your PR by entering the reviewer’s AzDevOps username, and then select the reviewer’s username from the list.
It’s good practice to add the owner of the branch you’re merging into as a reviewer, like the originating author for example. If you modify files in the PR, AzDevOps will send notifications to all the users you add as reviewers.
-
Select Create.
-
The Overview pane contains details of your pull request, and confirms you’ve created a new pull request successfully.
Note: For more information about pull requests, refer to Pull requests overview.
-
Send an email to the person you’re handing your files off to (as a notification that your PR is ready). Your email should include the following:
- Details about the PR (like the names of the branches the PR involves, PR title, number, and purpose). For example, Mod01 text updates merge from branch ‘mod01-ce-mkavana’ into branch ‘mod01-ce-mkavana’
- URL/ link to the PR on AzDevOps (refer to the previous Step 5)
- Optional: Screen capture/ grab of the PR
You’ve used a web browser to modify a markdown file on AzDevOps successfully.
Appendices
Check the following supplementary Appendices for more details and context.