Invalid Table of Contents links outside of "Usage" tab.
See original GitHub issueDescription
When I am at any doc page covering a component which contains a table of contents - if I navigate to the Props
or Theming
tab I expect any link under the table of contents to navigate me back to the “Usage” tab and then to the related section. Instead, the relative links supplied only append to the current URL.
(i.e. In the FormControl
Page: https://chakra-ui.com/docs/components/form-control/props#sample-usage-for-a-radio-or-checkbox-group
)
Consideration(s);
- Supply the links under the table of contents relative links that begin with
usage
(a short-term solution) - Provide a table of contents specific to the
Props
andTheming
tabs (maybe preferred as this new navigation structure continues to be fleshed out)
Issue Analytics
- State:
- Created a year ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
External links may be calculated when you open a workbook
To fully recalculate a workbook, Excel gets the currently stored value of all external references from the workbooks external link table. This ...
Read more >Nessus Agents: How to Resolve Invalid Table of Contents
This article walks through steps to resolve Nessus Agents "Invalid Table of Contents" error.
Read more >How to find and fix broken links in Excel - Ablebits
On the Data tab, in the Queries &Connections group, click the Edit Links button. If this button is greyed out, that means there...
Read more >Links and accessibility - AccessibilityOz
One of the most common techniques is to pull out a list of links (and the link text only, no enclosing sentence, paragraph...
Read more >Common Hyperlink Problems - Suzanne S. Barnhill - Home
When you insert a table of contents (TOC) in Word 2000 or above, by default the TOC entries are hyperlinked to the corresponding...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue will be resolved with the docs rework we are currently working on.
Hey @nikolovlazar ! Following up on this.
In addition to the proposal I made above, would then alter the areas of PageContainer
The above destructuring would then also pull out the slug and then check if the end of the slug is
props
ortheming
(so notusage
)Then when rendering the table of contents…
So only show the table if you are on the
usage
tab.That’s what I got at this point. 😄 Looks like the table of contents is not getting headings for the props and theming content that have been added anyway, so this would still be a temporary solution if the table needed to be rendered properly for the other tabs.