fix(site): hide Prevention nav CTA until the feature ships - #644
Open
romeo111 wants to merge 1 commit into
Open
Conversation
The prevention flow is not ready for users, so the top-bar CTA is withheld on both language mirrors (UA "Профілактика" / EN "Prevention"). Gated behind _PREVENT_NAV_ENABLED in scripts/build_site.py so bringing the button back is a one-line flip. prevent.html still builds and stays reachable by direct URL — only the nav entry point is removed. Also stripped the rendered anchor from the 5104 already-built pages under docs/ so the live site matches the generator without waiting for a full rebuild. Verified the freshly rendered top-bar CTA group is byte-identical to the stripped files, so the daily site refresh will produce no extra diff. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Why
The prevention flow isn't ready for users, so the top-bar CTA is withheld on both language mirrors (UA «Профілактика» / EN «Prevention»).
What
scripts/build_site.py: the CTA group is now assembled as a list and the Prevention link is gated behind_PREVENT_NAV_ENABLED = False. Bringing the button back is a one-line flip;prevent_href/prevent_currentare kept intact.docs/(2552 UA + 2552 EN) so the live site matches the generator without waiting for a full rebuild.prevent.htmlstill builds and stays reachable by direct URL — only the nav entry point is removed.Verification
prevent.htmllinks to prevention anymore; the only remaining references are its owncanonical/hreflangtags and the UA↔EN language switcher.tests/test_build_site.py: 41 passed, 3 failed. The 3 failures (capabilities_shows_numerical_metrics,engine_bundle_excludes_heavy_unused_subtrees,try_examples_are_curated_and_filter_by_disease_id) concern KB metric labels, engine-zip contents and disease-ID↔questionnaire coverage — none touch navigation. Pre-commit hooks green.Not done (deliberately out of scope)
docs/sitemap.xmlstill listsprevent.htmlfor both languages, so search engines can still surface the unfinished page.Say the word if either should be handled too.
🤖 Generated with Claude Code