Centralize doc flags and exclude inactive docs from prod build#117
Merged
Conversation
Inactive docs (active: false) are now excluded from the prod build, sidebar, and Algolia crawler config — preventing search results from unpublished documents like the LST Users Guide. Coming Soon tiles remain clickable in dev (DOCS_MODE=dev) so contributors can preview inactive docs without flipping the flag.
|
✅ CI build passed for commit This PR does not touch documentation content under @usace-rmc/docs-admin may merge. |
|
📄 Preview deployed for commit https://usace-rmc.github.io/RMC-Software-Documentation-Previews/pr-117/ This preview updates automatically when new commits are pushed. Deleted when the PR closes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
activeanddraftflags for all 30 doc tiles into a singlesrc/docConfig.js, replacing scattered definitions across 11 landing-page filesactive: falsedocs from the prod build entirely — no static HTML, no sidebar entry, nolatestVersions.jsonentry, noalgoliaCrawlerVersions.jsonentry — so unpublished documents like the LST Users Guide stop appearing in Algolia searchDOCS_MODE=dev) and make Coming Soon tiles clickable in dev so contributors can preview drafts without flipping the active flag