Meshery: Docs: Remove hidden, red anchor

Created on 9 Jan 2020  路  4Comments  路  Source: layer5io/meshery

Current State:
Currently, the Meshery docs will autogenerate an in-page anchor for each heading (e.g. <h1>, <h2>) element on the page, so that users might easily deep link to content. This link is shown as a black chain-looking icon on the lefthand side of the headings.

There is a second, errant anchor that is generated and mostly hidden from view. It is a red paragraph symbol (see screenshot) that need to be removed through reconfiguration of anchor.js library that the Meshery docs is using.

Screenshot

Screen Shot 2020-01-08 at 10 04 34 PM


Contributor Resources

aredocs kinbug

All 4 comments

@schillingjerrid I had recently incorporated use of anchor.js to auto-add in-page anchors. This residual issue is a pain in the rump. Fortunately, it seems to be right up your alley.

Hey @leecalcote , it looks like this is related to the permalinks.html include. It looks like some of this functionality was added in the past few months. Do we want to remove the permalinks file and its references? It looks like anchor.js is doing permalinking as well so maybe not necessary to include the permalinks file that is creating the red paragraph symbols.

Oh, interesting, @schillingjerrid. Yes, anchor.js library is more robust than the script in permalinks.html. Good diagnosis and suggestion to remove. 馃憤

~If so I have created a PR for this issue.~

Scratch this message. Forgot to refresh the page before posting. 馃う鈥嶁檪

Was this page helpful?
0 / 5 - 0 ratings