question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple sidebars

See original GitHub issue

It would be great to be able to extend Nextra to support multiple sidebars.

I think it’s possible to do this a few ways. One would be to specify root json files in a theme config.

// theme.config.js
export default {
  ...
  sidebars: {
   reference: "reference.json"
   docs: "docs.json"
  }
}

Another way would be to use a filename prefix for the route’s metadata files. If found, and if matching the prefix, it would then look for matches during the traversal.

- index.md
- meta.json  
- docs-meta.json
-- docs/
--- docs-meta.json
--- index.md
--- guides/
----- docs-meta.json
----- index.md

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
jaredpalmercommented, Oct 6, 2020

reactnative.dev

1reaction
shudingcommented, Aug 28, 2021

The latest nextra-theme-docs now has a floatingTOC: true option to achieve this, example: https://swr.vercel.app/blog/swr-v1. We can close this now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using multiple sidebars - Docusaurus
Using multiple sidebars. You can create a sidebar for each set of Markdown files that you want to group together.
Read more >
How to Display Different Sidebar for Each Post and Page in ...
Want to display a different sidebar for individual posts and pages in WordPress? Here's how to display custom sidebars for each post and ......
Read more >
Custom Sidebars: Create Multiple Widget Areas and Choose ...
Custom Sidebars is a free plugin which lets you easily create multiple sidebars on your site, and then decide which pages to display...
Read more >
Best way of making multiple sidebars
I have learned about making sidebars from google earlier but in search I only get the results that I am using right now...
Read more >
php - How can I put multiple sidebars in different areas of my ...
I put Search widget under sidebar-1 and put Meta under content-main-left sidebar. But when the page renders both the widgets are being shown ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found