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

configurable toc, both inline and sidebar #33

Merged
merged 2 commits into from
Oct 24, 2021

Conversation

hikerpig
Copy link
Owner

If configured, there will be an auto-generated table of contents section on top of top content.

New configs:

{
  tocTypes: false | Array<'inline' | 'sidebar'>,  // default is ['sidebar']
}

image

@gatsby-cloud
Copy link

gatsby-cloud bot commented Oct 15, 2021

Gatsby Cloud Build Report

gatsby-project-kb-master

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 2m

Performance

Lighthouse report

Metric Score
Performance 💚 92
Accessibility 💚 91
Best Practices 💚 100
SEO 💚 91

🔗 View full report

@hikerpig hikerpig force-pushed the feature/configure-toc-location branch from a592d9a to b8c98f2 Compare October 24, 2021 07:53
@hikerpig hikerpig marked this pull request as ready for review October 24, 2021 08:01
@hikerpig hikerpig merged commit 3a90ea9 into master Oct 24, 2021
@hikerpig hikerpig deleted the feature/configure-toc-location branch October 25, 2021 13:36
@hikerpig hikerpig changed the title [wip] configurable toc, both inline and sidebar configurable toc, both inline and sidebar Dec 21, 2021
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.

1 participant