Closed lparisc closed 1 year ago
Lots in this comment, can we pull this apart
Any way we can separate out these issues
See below, the anchor is ignored but looks like it works. From my POV this is a not broken/ won't fix. Good to have some specific examples to better understand the issue
^^^ That's what docusaurus should display. source: https://raw.githubusercontent.com/eosnetworkfoundation/welcome/main/docs/04_protocol/01_consensus_protocol.md current view (as of 9/8/22): http://docs.eosnetwork.com/welcome/latest/protocol/consensus_protocol
config failed [INFO] [en] Creating an optimized production build... [ERROR] Unable to build website for locale en. [ERROR] ValidationError: "tableOfContents.minHeadingLevel" must be greater than or equal to 2 [INFO] Docusaurus version: 2.1.0
File with test is in Docusaurus packages/docusaurus-theme-classic/src/tests/options.test.ts
This was a won't fix
because we opted to avoid using the first heading (#) altogether in the affected markdowns, in favor of the title
metadata, and promote all headings one level up, so all sections start at least from the second heading (##) up.
Seems like anchor tags are not generated for heading level 1 (#) in rendered markdown files. This also affects page navigation since first section titles/links are missing. Not sure whether filing this as a bug, enhancement, or neither. Seems like
docusaurus
is adhering to the unofficial rule that 1st headings are used for page title, while 2nd/3rd+ headings used for actual section titles. If we also adhere to this, then we need to update all docs and convert # —> ##, ## —> ###, etc. Thoughts? @ericpassmore