Replies: 1 comment
-
Thanks for the discussion 👋 Not something I am personally working on or heard about, but sharing a few initial pointers in case they can help you get started:
I think an approach to the idea you shared could be to have a component override for the As someone who just discovered this approach with your link, I think it's the first time I'm seeing a sidebar with a TOC merged into it. Definitely a unique approach, confusing at first (at least for me), but definitely an interesting challenge. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a documentation site and it's been a joy to create with Astro Starlight 😁
On some of the pages I'd like to have interactive examples but in some cases these can get fairly wide - wider than the standard page article content area - and they begin to bleed into the right sidebar (table of contents).
Additionally I'd actually prefer to not have the right sidebar at all, and render the table-of-contents inline under the currently selected page. This is how Bun's docs site works, and I rather like it, eg: https://bun.sh/docs.
I started hacking around with the CSS - eg hiding the right sidebar and increasing the article content width - but the responsive layout started to break (look wrong) for smaller screen sizes.
I'm wondering if anyone else already has something like this working that they could share?
Or any pointers as to how I might achieve it on my own?
Thanks,
Maurice
Beta Was this translation helpful? Give feedback.
All reactions