hikerpig / gatsby-project-kb

Developing gatsby-theme-kb, a Gatsby theme for publishing Knowledge Base.
https://gatsby-project-kb.vercel.app/
MIT License
62 stars 15 forks source link

configurable toc, both `inline` and `sidebar` #33

Closed hikerpig closed 2 years ago

hikerpig commented 2 years ago

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[bot] commented 2 years ago

Gatsby Cloud Build Report

gatsby-project-kb-master

:tada: Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

:clock1: Build time: 2m

Performance

Lighthouse report

Metric Score
Performance :green_heart: 92
Accessibility :green_heart: 91
Best Practices :green_heart: 100
SEO :green_heart: 91

:link: View full report