-
Notifications
You must be signed in to change notification settings - Fork 162
Description
Feature Name
Stable names for headings and internal doc: links
Description
Other documentation tools like sphinx or asciidoctor frequently offer a way to refer "intra" a documentation page.
For example, I might be discussing a complex topic and another new word might pop up. I don't want to start explaining the new term right away, but want to cross link to the section that explains it:
## Blooping
This is why bloopy is very interesting, we can bloop and blop it (blopping will be explained in more depth in <doc:#bloping>)
@ID { bloping } // some name for this, not sure what's the best `SectionID` or something
## Bloping the Blops
Bloping is an advanced technique ...
Motivation
Currently one has to manually copy paste and guess around to get the ID of a heading from the TEXT of the heading, like so: #Bloping-the-Blops for Bloping the Blops.
I'm also forced to use <a> rather than rely on <doc:... style syntax.
If the section name ever changes, my link will be broken.
Importance
This is important for advanced features whose documentation has multiple advanced topics and needs to point the user at where they can learn about it if they haven't already.
It also is a popular feature in all kinds of other documentation engines, making porting docs to docc more painful than it has to be.
Alternatives Considered
Hardcoding headings as today -- this is not good, because the links are not stable nor are they validated, leading to big potential for broken internal docs links.