feat: per-subcommand pages on the website#30
Merged
Conversation
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.
Closes part of #13.
Adds five dedicated pages on secretgenerator.org so each subcommand has a route ranked for its own intent:
/password/— "Random password generator (auditable, NIST-aligned)"/passphrase/— "Diceware passphrase generator (EFF Large Wordlist)"/secret/— "CSPRNG secret generator (base64url, 256-bit)"/api-key/— "API key generator (Stripe-style prefix_random)"/pin/— "Numeric PIN generator with weak-pattern blocklist"Each page bundles per-subcommand title and meta description for SEO, the live WebAssembly Generator pre-selected on that tab, the relevant defaults table, three CLI examples, code snippets in Python/Node/Rust/Go pinning
--require-schema-version=1, an FAQ tuned to common LLM-search queries, and cross-links to the other four pages.Implementation:
web/src/data/subcommands.tsis the single source of truth.web/src/pages/[slug].astroconsumes the catalog viagetStaticPaths()so adding a new subcommand only edits the data file.Generatoraccepts aninitialprop so the home page and per-subcommand pages share the same component.#subcommandsand the nav points to that section.build-llms-txt.mjsis updated sollms.txtlinks to the dedicated pages instead of the install anchor.Build verified locally: 6 pages generated, titles and meta descriptions confirmed in the static HTML, cross-link grid correct on every page.