docs icon indicating copy to clipboard operation
docs copied to clipboard

Can't (anchor) link to specific options (on any page)

Open Frulfump opened this issue 5 months ago • 5 comments

Type of issue

Typo

Description

The only anchor link goes to https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-restore#options But I want an anchor for each option as that will help those I link to the options to get directly to it without them having to scroll. Some commands have a lot of options so users waste a lot of time.

(This is an issue for all docs on learn)

Page URL

https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-restore

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/tools/dotnet-restore.md

Document Version Independent Id

0b993779-65a2-6092-4047-2fc2ec16170b

Platform Id

e79412f1-cc0d-ce5d-80cf-0db92a581fc6

Article author

@adegeo

Metadata

  • ID: 0b256dc4-c4ad-c115-f4e2-40310bc3505a
  • PlatformId: e79412f1-cc0d-ce5d-80cf-0db92a581fc6
  • Service: dotnet-fundamentals

Related Issues

Frulfump avatar Aug 17 '25 07:08 Frulfump

This would be nice, but while we could create inline anchor links for each option, but they won't be surfaced in the webpage, unfortunately. Which means you can't easily right-click and copy link.

adegeo avatar Aug 21 '25 21:08 adegeo

I'm going to be looking at a lot of the CLI reference in the future, and I'll keep this issue in mind.

adegeo avatar Aug 21 '25 21:08 adegeo

This would be nice, but while we could create inline anchor links for each option, but they won't be surfaced in the webpage, unfortunately. Which means you can't easily right-click and copy link.

Ah I see, if I could manually write in the option name as an anchor link that would at least be something until a complete solution could be made.

I'm going to be looking at a lot of the CLI reference in the future, and I'll keep this issue in mind.

That's awesome thanks!

Frulfump avatar Aug 23 '25 19:08 Frulfump

@adegeo We could make a header for each option. Not sure I like that, but it would add anchors.

BillWagner avatar Aug 26 '25 15:08 BillWagner

@adegeo We could make a header for each option. Not sure I like that, but it would add anchors.

I don't like that. I find the site's styling really obtuse when it comes to headers.

adegeo avatar Aug 26 '25 21:08 adegeo