Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): TOC navigation renders correct headings #2539

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

sean-perkins
Copy link
Contributor

The custom APITOCInline component we used for rendering the headings inside of an imported markdown file are causing incorrect headings to be rendered in the TOC navigation.

The problem can be seen here: https://ionicframework.com/docs/api/button ("buttonType" is displayed as a heading instead of "Properties").

Since we no longer embed the root headings in the imported markdown files, the need for the custom component is no longer required.

This PR migrates back to the TOCInline component provided by Docusaurus for the docs pages that have not been migrated to Playground examples.

@vercel
Copy link

vercel bot commented Sep 8, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
ionic-docs ✅ Ready (Inspect) Visit Preview Sep 8, 2022 at 5:22PM (UTC)

@sean-perkins sean-perkins merged commit 9ede9a3 into main Sep 8, 2022
@sean-perkins sean-perkins deleted the fix/component-docs-toc-nav branch September 8, 2022 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants