Search code examples
azure-devopsazure-devops-wiki

Azure DevOps Wiki: How to link inside a page?


At my DevOps Wiki I have a page and want to create a index including links to the articles. Mainly I find this manual to do this: learn.microsoft.com... But I don't get it working.

How can I link inside a Wiki page? Could you show an example?

I guess I have to set a anchor to the headers and link than the Index item to the anchor?!

Here a example:

Index
1.First article
2.Second article

#1.First article
bla bla bla ...

#2.Second article
bla bla bla ...
and a image

Solution

  • I suspect you are suffering a bit of a nomenclature issue. Re: "I have a page and want to create a index including links to the articles."

    1. As a rule 'page' and "article" are synonymous. As best I can tell, when you say "article" you mean sub-sections of the same page/article. Subsections of a page/article are delineated by you and your use of headers.
    2. When you say "index", I imagine you mean the result provided by a Table of contents (TOC). If you wanted greater control than the TOC provides, you could construct your own "index" of links to just the headers of your choosing, e.g this sample page:
    # My Index
    1. [First Index Item, H1](#heading1).
    1. [Second Index Item, H2.1](#heading2.1).
    1. [Third Index Item, H4](#heading4).
    1. [A heading with spaces](#heading-with-spaces)
    
    # Heading1
    Add a bunch of filler here to space out the page so you can see the result of selecting your '_Index_" items ([My Index](#my-index) above).
    
    # Heading2
    Add a bunch of filler here to space out the page.
    
    ## Heading2.1
    Add a bunch of filler here to space out the page.
    
    # Heading3
    Add a bunch of filler here to space out the page.
    
    # Heading4
    Add a bunch of filler here to space out the page.
    
    # Heading with Spaces
    Add a bunch of filler here to space out the page.