#Can I have a directory that is not part of the autogenereated sidebar?

3 messages · Page 1 of 1 (latest)

sly dove
#

Can I have a directory that is not part of the autogenereated sidebar?

vapid bridgeBOT
#

Hi @sly dove. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Yes, you can have a directory that is not part of the autogenerated sidebar in Starlight.

By default, Starlight will only autogenerate sidebar groups for directories that you explicitly specify in your sidebar configuration using the autogenerate property. If you do not include a directory in your autogenerate configuration, it will not appear in the sidebar. For example, if you only autogenerate a group for the constellations directory, any other directories (e.g., stars) will not be included in the sidebar unless you add them manually or specify them in another autogenerate group Autogenerated groups.

Additionally, you can hide individual pages from autogenerated sidebars by setting sidebar.hidden: true in their frontmatter, but this is for individual files, not entire directories Frontmatter Reference: sidebar.

So, to summarize: directories are only included in the autogenerated sidebar if you configure them to be, and you have full control over which directories are included.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: