Skip to content

Centralize doc flags and exclude inactive docs from prod build#117

Merged
AdamGohs merged 1 commit into
mainfrom
enhancement/centralize-doc-config
May 5, 2026
Merged

Centralize doc flags and exclude inactive docs from prod build#117
AdamGohs merged 1 commit into
mainfrom
enhancement/centralize-doc-config

Conversation

@AdamGohs
Copy link
Copy Markdown
Collaborator

@AdamGohs AdamGohs commented May 5, 2026

Summary

  • Centralize active and draft flags for all 30 doc tiles into a single src/docConfig.js, replacing scattered definitions across 11 landing-page files
  • Exclude active: false docs from the prod build entirely — no static HTML, no sidebar entry, no latestVersions.json entry, no algoliaCrawlerVersions.json entry — so unpublished documents like the LST Users Guide stop appearing in Algolia search
  • Keep inactive docs accessible in dev (DOCS_MODE=dev) and make Coming Soon tiles clickable in dev so contributors can preview drafts without flipping the active flag

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.
@AdamGohs AdamGohs requested a review from a team as a code owner May 5, 2026 17:09
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

CI build passed for commit 475736d

This PR does not touch documentation content under docs/, so no multi-stage review is required.

@usace-rmc/docs-admin may merge.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

📄 Preview deployed for commit 475736d

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.

@AdamGohs AdamGohs merged commit 651adda into main May 5, 2026
5 checks passed
@AdamGohs AdamGohs deleted the enhancement/centralize-doc-config branch May 5, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant