Support for draft documentation pages #990
Closed
huijing
started this conversation in
Feature Requests
Replies: 2 comments 4 replies
-
Sharing some additional infos I posted on Discord:
An important thing to consider too is how to surface them? I guess they should be visible during development and maybe with a notice at the top like fallback content? |
Beta Was this translation helpful? Give feedback.
4 replies
-
Starlight ---
# Exclude this page from production builds
draft: true
--- |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.11.2
What is your idea?
To be able to support draft documentation pages through a frontmatter variable (like
draft: true
or something), such that those pages are not included during the production build.Why is this feature necessary?
My tech writing team usually works on our documentation projects from a top-down planning approach, i.e. the structure of the content is scaffolded onto the site before the content is completed. Thus, there are situations where they would like some pages to be marked as drafts, excluding them from the production build but have the files still committed and merged into the main repository.
Do you have examples of this feature in other projects?
Participation
Beta Was this translation helpful? Give feedback.
All reactions