riptano / docs-ui

The UI and theme for DataStax Docs.
https://riptano.github.io/docs-ui/
Mozilla Public License 2.0
2 stars 0 forks source link

Link text isn't auto-generated if the xref has an anchor #164

Closed aimurphy closed 2 months ago

aimurphy commented 2 months ago

If an xref doesn't have an anchor, the link text auto-populates from the topic title. For example xref:api-reference:overivew.adoc[] generates a link with the text API reference overview (which is the title of the target topic).

However, if the xref has an anchor, the link text doesn't populate. For example xref:api-reference:overview.adoc#data-api-client[] results in the following:

image

Because humans are fallible and will inevitably miss things like this amongst a sea of larger changes, I propose two possible solutions for this:

aimurphy commented 2 months ago

Converted to DOC-4643