Skip to content

Commit 3382c2a

Browse files
committed
refresh topic + images
1 parent 53e25b4 commit 3382c2a

File tree

3 files changed

+67
-69
lines changed

3 files changed

+67
-69
lines changed
58.5 KB
Loading
-59.3 KB
Binary file not shown.
Lines changed: 67 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,136 +1,134 @@
11
---
2-
title: Clone and update wiki content offline
2+
title: Clone and Update Wiki Content Offline
33
titleSuffix: Azure DevOps
4-
description: Add and update pages offline for your built-in team project wiki in Azure DevOps
4+
description: Add and update pages offline for your built-in team project wiki in Azure DevOps.
55
ms.subservice: azure-devops-wiki
66
ms.custom: wiki, devdivchpfy22
7-
ms.topic: conceptual
7+
ms.topic: concept-article
88
ms.assetid:
99
ms.author: chcomley
1010
author: chcomley
1111
ms.reviewer: gopinach
1212
monikerRange: "<=azure-devops"
13-
ms.date: 01/05/2024
13+
ms.date: 06/05/2025
14+
#customer intent: As an Azure DevOps developer, I want to author pages offline for my team project wiki, so I can work in my local branch before pushing changes to the main repo.
1415
---
1516

1617
# Clone and update wiki content offline
1718

1819
[!INCLUDE [version-lt-eq-azure-devops](../../includes/version-lt-eq-azure-devops.md)]
1920

20-
You can update your wiki pages offline the same way you develop code in a Git repo.
21+
The process for updating wiki offline is the same as developing code in a Git repository. You can use your preferred client and git command-line tools to update your wiki pages offline. For details on working with Git repositories and supported tools, see the [Azure Repos Git Documentation](../../repos/git/index.yml).
2122

22-
You can use any client you want or git command-line tools to update your wiki offline. For details on working with Git repositories and supported tools, see [Git Repositories](../../repos/git/index.yml).
23+
The basic steps to update wiki content offline include:
2324

24-
The basic steps to update wiki content offline are as follows:
25+
1. [Clone your wiki Git repo to your local interactive development environment (IDE) or workspace](#clone-your-wiki).
2526

26-
1. [Clone your wiki Git repo to your local IDE or workspace.](#clone-your-wiki)
27-
2. [Add files or folders to your local git branch.](#add-pages)
28-
3. Update the *.order* files to reflect your pages and subpages.
29-
4. [Commit and push the updates you made to your local git branch.](#push-your-changes)
27+
1. [Add files or folders to your local Git repo branch](#add-pages).
28+
29+
1. Update the _.order_ files to reflect the sequence changes for pages and subpages.
30+
31+
1. [Commit and push the updates to your local Git branch](#push-your-changes).
3032

3133
## Prerequisites
3234

3335
| Category | Requirements |
34-
|--------------|-------------|
35-
| **Project access** | Member of the project where the wiki's located. If you don't have access, request it from your project administrator. |
36-
| **Permissions** | - Member of the **Contributors** group.<br> - To publish code as wiki: **Create Repository** permission. By default, this permission is set for members of the [Project Administrators group](../../repos/git/set-git-repository-permissions.md). |
37-
| **Access levels** | At least **Basic** access. |
38-
|**Tasks** |- [Understand the underlying structure of your wiki Git repo](wiki-file-structure.md) <br> - Understand the [differences between provisioned wiki and publish code as wiki](provisioned-vs-published-wiki.md) |
39-
40-
<a id="edit-wiki-offline"></a>
36+
|----------|--------------|
37+
| **Project access** | Member of the project where the wikis located. You can request access from your Project Administrator, as needed. |
38+
| **Permissions** | - Member of the **Contributors** group. <br> - To publish code as wiki, **Create Repository** permission. By default, this permission is set for members of the [Project Administrators group](../../repos/git/set-git-repository-permissions.md). |
39+
| **Access levels** | At least **Basic** access. |
40+
| **Tasks** | - [Understand the underlying structure of your wiki Git repo](wiki-file-structure.md). <br> - Understand the [differences between a provisioned wiki and a published code as wiki](provisioned-vs-published-wiki.md). |
4141

4242
## Clone your wiki
4343

4444
Your wiki repository stores pages, images, attachments, and the sequence of pages and subpages. Clone your wiki to begin.
4545

46-
1. Sign in to your project (`https://dev.azure.com/{Your_Organization/Your_Project}`) and then select your wiki.
46+
1. Sign in to your project (`https://dev.azure.com/<Organization>/<Project>`).
4747

48-
2. Open the **More actions** context menu and select **Clone wiki**.
48+
1. Select your wiki, then select **More actions** (*...*) > **Clone wiki**:
4949

50-
:::image type="content" source="media/wiki/more-clone-wiki.png" alt-text="Clone wiki Git repository":::
50+
:::image type="content" source="media/wiki/more-clone-wiki.png" alt-text="Screenshot that shows how to select the More options Clone wiki Git action for the selected wiki.":::
5151

52-
3. From the **Clone repo** dialog, select :::image type="icon" source="../../media/icons/copy-clone-icon.png" border="false"::: **Copy clone URL to clipboard**.
52+
1. In the **Clone repository** dialog, select the **Copy clone URL to clipboard** :::image type="icon" source="../../media/icons/copy-clone-icon.png"::: icon:
5353

54-
:::image type="content" source="media/wiki/copy-clone-url-to-clipboard.png" alt-text="Copy the wiki url":::
54+
:::image type="content" source="media/wiki/copy-clone-url-to-clipboard.png" alt-text="Screenshot that shows the wiki repository to clone in the Clone repository dialog.":::
5555

56-
Enter it in your browser to view the files defined under the wikiMaster branch.
56+
Paste the URL into your browser. The Git repository page opens where you can view the files defined under the wikiMain branch. The following example shows the files in the Git repo for the CanaryBuilds project:
5757

58-
:::image type="content" source="media/wiki/work-offline-wikiMaster-files.png" alt-text="Wiki main files":::
58+
:::image type="content" source="media/wiki/work-offline-wikiMain-files.png" alt-text="Screenshot that shows the Git repository page with the files defined under the wikiMain branch.":::
5959

60-
> [!IMPORTANT]
61-
> The "Generate Git Credentials" button will be removed in January 2025, to reduce creation of unnecessary and underutilized personal access tokens. Review the Git Authentication docs for all authentication methods available to you for git clone operations.
60+
> [!IMPORTANT]
61+
> The **Generate Git Credentials** feature is planned for removal. Review the Git Authentication documentation for all authentication methods available to you for git clone operations.
6262
63-
4. Use the URL that you copied to clone the repo in the IDE that you use. For more information, see one of the following articles:
64-
- [Clone an existing Git repo](../../repos/git/clone.md)
65-
- [Using Version Control in VS Code](https://code.visualstudio.com/docs/editor/versioncontrol)
66-
- [Get Started with Git and Azure DevOps](../../repos/git/gitquickstart.md?tabs=visual-studio)
63+
1. Use the URL that you copied to clone the repo in your preferred IDE. For more information, see the following articles:
64+
65+
- [Clone an existing Git repo](../../repos/git/clone.md)
66+
- [Use Version Control in Visual Studio Code](https://code.visualstudio.com/docs/editor/versioncontrol)
67+
- [Get started with Git and Azure DevOps](../../repos/git/gitquickstart.md?tabs=visual-studio)
6768

6869
## Add pages to your local Git repository
6970

70-
We author pages using [Markdown format](./markdown-guidance.md). Add a Markdown file to your local branch for each page and subpage that you want to add to your wiki.
71+
Git repo pages are formatted as [Markdown](./markdown-guidance.md) (_.md_) files. For each page you want to add to your wiki, you create a Markdown file in your local branch. After you add pages, you update the _.order_ file to adjust the page sequence to include the new pages.
7172

7273
### Add pages
7374

74-
To add pages at the root of the wiki tree, add a Markdown file at the root of the Git repository.
75-
76-
1. For each page you want to add, create a Markdown file with the page contents, and then add it under the root folder for your repo.
75+
You can add pages at the top of the wiki structure in the root (`\`) folder and also in other folders.
7776

78-
For the CanaryBuilds team project, it's in the following folder:
77+
1. Create the Markdown (_.md_) file with the content for the new page. In most cases, the file name matches the page title. In the file name, replace any spaces in the title with hyphens (`-`). For more information about creating page content, see [Add a wiki page](add-edit-wiki.md#add-a-wiki-page).
7978

80-
`C:\Users\UserName\Source\Repos\CanaryBuilds.wiki`
79+
1. Place the file in the desired folder within the wiki structure in your local branch, such as the root folder. The CanaryBuilds project example root folder is `C:\Users\UserName\Source\Repos\CanaryBuilds.wiki`:
8180

82-
2. To add pages at the root of the wiki tree, add a Markdown file for each page at the root of the Git repository.
81+
:::image type="content" source="media/wiki/add-pages.png" alt-text="Screenshot that shows the local branch of the wiki Git repo for the CanaryBuilds project.":::
8382

84-
:::image type="content" source="media/wiki/add-pages.png" alt-text="Local branch wiki Git repo":::
83+
1. Update the _.order_ file in the same folder where you placed the new page file. The entry text for the page is the file name without the Markdown extension (_.md_). The CanaryBuilds project example adds the new page "How to contribute," which corresponds to the entry text _How-to-contribute_:
8584

86-
3. After you added all the pages you want to add at the root, update the **.order** file at the root. It should have one entry for each Markdown file that is defined at the root. Each entry should match the file title with spaces replaced with a dash.
85+
For example:
8786

88-
For example:
87+
```
88+
Welcome
89+
Roadmap
90+
How-to-contribute
91+
Home
92+
Reference
93+
```
8994

90-
```
91-
Welcome
92-
Roadmap
93-
How-to-contribute
94-
Home
95-
Reference
96-
```
95+
For more information about the _.order_ file, see [Page sequence and the .order file](wiki-file-structure.md#page-sequence-and-the-order-file).
9796

9897
### Add subpages
9998

100-
1. Create a folder for the parent page, and then add Markdown files for each subpage in the folder.
99+
You can also create subpages for a page in your wiki:
100+
101+
1. Create a folder to serve as the parent page. For more information, see [Repository files and folder structure](wiki-file-structure.md#repository-files-and-folder-structure).
101102

102-
For example, we added the following files to the How-to-contribute folder. These subpages appear under the How to contribute page in the wiki.
103+
1. Create the Markdown file for each subpage and place the file in the parent page folder. The CanaryBuilds project example adds the _How-to-contribute_ folder as the parent page:
103104

104-
:::image type="content" source="media/wiki/add-sub-pages.png" alt-text="Screenshot of the subpages.":::
105+
:::image type="content" source="media/wiki/add-sub-pages.png" alt-text="Screenshot that shows the How-to-contribute folder in the CanaryBuilds project with new subpages.":::
105106

106-
2. Add a **.order** file in the folder with the order of the subpages as they should appear in the wiki. To understand the use of the **.order** file to sequence pages, see [Wiki Git repository files and file structure](wiki-file-structure.md).
107+
1. Create a _.order_ file in the parent page folder to define the sequence for the subpages as they should display in the wiki.
107108

108-
For example, the file has the following subpages:
109+
For example, the file has the following subpages:
109110

110-
```
111-
Request-extensions
112-
Licensing
113-
Smoke-test
114-
Coding-guidelines
115-
```
111+
```
112+
Request-extensions
113+
Licensing
114+
Smoke-test
115+
Coding-guidelines
116+
```
116117

117118
## Push your changes
118119

119-
When you're done with all your updates, [push the files to the Git repository](../../repos/git/pushing.md).
120+
When your local updates are ready, [push the files to the Git repository](../../repos/git/pushing.md).
120121

121-
The added pages and subpages appear immediately in your wiki.
122+
The added pages and subpages appear immediately in your wiki. The following example shows the updates for the CanaryBuilds project:
122123

123-
:::image type="content" source="media/wiki/wiki-tree-updated-offline.png" alt-text="Wiki tree updated":::
124+
:::image type="content" source="media/wiki/wiki-tree-updated-offline.png" alt-text="Screenshot that shows the updated wiki structure for the CanaryBuilds project.":::
124125

125-
If there are any errors in the process, the pages appear in your wiki with a warning sign.
126+
If there are any errors in the process, the pages appear in your wiki with a warning symbol:
126127

127-
:::image type="content" source="media/wiki/wiki-offline-order-warning.png" alt-text="Warning when .order file isn't updated properly.":::
128+
:::image type="content" source="media/wiki/wiki-offline-order-warning.png" alt-text="Screenshot that shows a page with an error indicated by the Warning symbol.":::
128129

129-
## Related articles
130+
## Related content
130131

131-
- [Create a wiki for your team project](wiki-create-repo.md)
132132
- [Wiki Git repository files and file structure](wiki-file-structure.md)
133133
- [Clone an existing Git repo](../../repos/git/clone.md)
134-
- [Share code with push](../../repos/git/pushing.md)
135-
- [Manage README and Wiki permissions](manage-readme-wiki-permissions.md)
136-
- [Syntax guidance for Markdown files, widgets, wikis, and pull request comments](./markdown-guidance.md).
134+
- [Syntax guidance for Markdown files, widgets, wikis, and pull request comments](./markdown-guidance.md)

0 commit comments

Comments
 (0)