-
-
Notifications
You must be signed in to change notification settings - Fork 578
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
docs: add documentation for draft sidebar behavior #2825
base: main
Are you sure you want to change the base?
Conversation
|
✅ Deploy Preview for astro-starlight ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
Because draft pages are not included in build output, you cannot add sidebar links to draft pages in your site sidebar config using [slugs](/guides/sidebar/#internal-links). | ||
Links to draft pages are not included in [autogenerated sidebar groups](/guides/sidebar/#autogenerated-groups). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small suggestion for your consideration:
- Avoids the “sidebar links […] in your sidebar config” repetition
- Tries specifying “directories” for the second option here to clarify the relationship between page and group
Because draft pages are not included in build output, you cannot add sidebar links to draft pages in your site sidebar config using [slugs](/guides/sidebar/#internal-links). | |
Links to draft pages are not included in [autogenerated sidebar groups](/guides/sidebar/#autogenerated-groups). | |
Because draft pages are not included in build output, you cannot add draft pages directly to your site sidebar config using [slugs](/guides/sidebar/#internal-links). | |
Draft pages in directories used for [autogenerated sidebar groups](/guides/sidebar/#autogenerated-groups) are automatically excluded in production builds. |
Happy for you to decide what to do with this! In general the change is definitely and improvement — thanks @HiDeoo 💜
Description
As discussed today during the Talking & Doc'ing session in Discord, this PR adds a new section in the
draft
frontmatter field documentation to document sidebar behavior for drafts.Preview