Support 'draft' mode in sidebar #3330
Replies: 3 comments 7 replies
-
|
I did not notice that the issue selector 'demoted' my request to become a Discussion, so after the fact posting some related discussions. The problem is addressed in #2545 by @gorohoroh who says:
@delucis answers, and then the discussion continues on various options and challenges. It starts with..
@gorohoroh describes the desired functionality in the same way I did above:
|
Beta Was this translation helpful? Give feedback.
-
|
As for my particular use case, which I think is interesting to mention. Our documentation site is to be a crowdsourced artifact with a growing number of public pages, but significant chunks of the docs and entire content hierarchies possible to be prepared in draft mode. Content strategy, optimization of the hierarchy are part of the workflow. The workflow itself is cheap man's CMS-like where a growing group of authors use git and local dev authoring and synchronise via PR's to the origin repo in the code forge. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the feedback 🙌
This is actually how we organize feedback in the Starlight repo, we use issues for bugs only, and discussions for feature requests and general feedback. I see you found #2545 where we already discussed such behavior in the past. Cross-posting a comment I just made there after releasing a new plugin that implements this new behavior:
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
What version of
starlightare you using?0.34.2
What is your idea?
The frontmatter setting
draft: trueallows marking single pages as a draft. But only when they are not part of a regular group inastro.config.mjssidebar config. These entries must be commented out for the build to succeed. As the docs state:Given the feature description for
draft.... "make it only visible during development" is not fully accurate. I want to see the full sidebar during development with draft pages and groups all present, while I still have the need to build the code without an error. I shouldn't have to edit the config for a build to succeed or have multiple configs for dev and prod.
Why is this feature necessary?
The current implementation of
draftfeels unfinished. During development people should be able to work on entire documentation sections that are in draft, and see / refine the content hierarchy along with the content itself at their localhost:4321 site preview.Ideally one setting of
draftin frontmatter should be enough, but adraftsetting might be part of the config too. The sidebar might have UI indicator of the pages/groups that are in draft.Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions