I have been trying to find a way to have a table of contents of the subpages within the Azure DevOps Wiki. I have found, from other wiki services, how to do it.
In Confluence, they have a macro for "Children Display"
Another way I found for another wiki service: [Special:PrefixIndex/Help:Subpages/]
To create a table of contents, add a [[_TOC_]]. The TOC is generated when the tag gets added and there's at least one heading on the page. The [[_TOC_]] can be placed anywhere in the page to render the table of contents.
Using the Azure DevOps Portal to manage your Wiki is a breeze. On the left side, we can create a page using the New page (Item 1) button, and the new page will be added at the same level of the pages that are being listed above (parent level). We can also create sub-pages to an existent page, and it helps to nest documentation on the same thread.
To get the content of a page via the Azure DevOps CLI, enter the az devops wiki show command. --path: Required. Path of the wiki page. --wiki: Required. Name or ID of the wiki. --include-content: Optional. Include content of the page. --open: Optional. Open the wiki page in your web browser. --project -p: Optional. Name or ID of the project.
Azure DevOps CLI commands aren't supported for Azure DevOps Server 2019 and earlier versions. To add another page, choose New page. Or, to add a subpage, open the context menu of an existing page and select Add subpage. Specify a unique title of 235 characters or less.
Or, to add a subpage, open the context menu of an existing page and select Add subpage. Specify a unique title of 235 characters or less. Page titles are case-sensitive. For other title restrictions, see Wiki Git repository files and file structure, File naming conventions.
I am afraid there is not exactly the same feature(Confluence: Children Display) in Azure Devops.
In Azure Devops, the wiki page has the Table of contents(TOC) markdown.
This feature is similar to Children Display, but it can only connect to its own child pages.
It has limitations and cannot connect to subpages other than its own page.
If you want to connect to other subpages, you need to use link markdown.
But it cannot add a table of contents of the subpages.
Therefore, the features in the Azure Devops wiki cannot meet your requirements for the time being.
Here are the suggestion tickets in our UserVoice Site.
Wiki macro for displaying child pages
Table of contents should consider subpages
Many Users have the similar requirements, you could vote and add comment in the suggestion tickets.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With