docfx icon indicating copy to clipboard operation
docfx copied to clipboard

Link to source code - like a "view source" link

Open truegoodwill opened this issue 5 years ago • 1 comments

I would like to make a link in my .md article files to specific code files on the github repository. I see the api "view source" links work just fine, but I'm not sure how to create my own "view this particular source file" link in an .md article.

I did see this in the docfx flavoured markdown page, but it's an "include" rather than just a link: [!code-csharp[Main](Program.cs)]

truegoodwill avatar Jan 22 '21 10:01 truegoodwill

It would also be useful if there were a way to specify the tag to link to (for those who have a different set of docs for each version).

NightOwl888 avatar Mar 03 '22 14:03 NightOwl888