Repository navigation
docs(site): shipkeep.yml reference generated from the JSON Schema (part of #246) - #432
Merged
Merged
Conversation
apps/docs builds static pages with the landing page's look, and copies docs/INSTALL.md in at build time so that the installation guide stays written once. Part of #246. Signed-off-by: samuel mbabhazi <[email protected]>
Part of #246. Signed-off-by: samuel mbabhazi <[email protected]>
tools/gen/config-reference.mjs runs with pnpm gen:config, so CI checks that the page is current. It marks the fields the control plane refuses until they are applied (#431) and the defaults it uses. Part of #246. Signed-off-by: samuel mbabhazi <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 37 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Signed-off-by: samuel mbabhazi <[email protected]>
…ence Signed-off-by: samuel mbabhazi <[email protected]>
Nx infers lint and typecheck for apps/docs. Both need the types astro sync generates, so they now depend on a sync target; the site gets its own tsconfig.json and ESLint config, which ignore .astro and dist. Signed-off-by: samuel mbabhazi <[email protected]>
…n-site Signed-off-by: samuel mbabhazi <[email protected]> # Conflicts: # pnpm-lock.yaml
…ence Signed-off-by: samuel mbabhazi <[email protected]>
…the CLI identifiers in step 5 Signed-off-by: samuel mbabhazi <[email protected]>
…ence Signed-off-by: samuel mbabhazi <[email protected]>
samuelmbabhazi
changed the base branch from
docs/246-documentation-site
to
main
November 23, 2026 17:55
…ence Signed-off-by: samuel mbabhazi <[email protected]> # Conflicts: # .prettierignore # apps/docs/astro.config.mjs # docs/adr/0027-documentation-site.md
samuelmbabhazi
added a commit
that referenced
this pull request
Nov 23, 2026
…246) (#434) Part of #246: the CLI reference of the documentation site, generated from the CLI's own help. Stacked on #432. ## What changed - **One list of commands.** `commands.Commands` holds each command's name, positional arguments and one-line summary, and the usage text is built from it. The usage text stays the same, except that `logout` now says "Forget the saved address and token on this machine": "Forget them" made sense only right after `login`. - **`reference_test.go`** renders `apps/docs/src/content/docs/reference/cli.md`: - It runs each command with `-h`, with no environment variable, and keeps what the CLI prints. The page cannot list a flag the CLI does not have, nor a default it does not use. - Flags are shown with two dashes, as the rest of the docs write them; the CLI accepts both. - The intro covers the platforms of the release archives (`.goreleaser.yaml`), the token never being a flag, the environment variables, the identifiers, and the exit statuses 0, 1 and 2. - **`pnpm gen:cli-reference`** (part of `pnpm gen`) writes the page with `SHIPKEEP_UPDATE_REFERENCE=1`. Without that variable, the same test fails when the committed page is stale, so both the Go tests and the "Generated code is up to date" job catch drift. - The **Reference** group of the sidebar gets **CLI**. ## How it was tested - `go test ./cli/...` and `golangci-lint run ./cli/...`: 0 issues. - The generated page passes its own test. - `nx run docs:build` builds 7 pages. ## Security considerations - No behavior change in the CLI beyond one summary line. - The test runs each command with `-h`, which returns before any network call or prompt. --------- Signed-off-by: samuel mbabhazi <[email protected]>
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.
Part of #246: the
shipkeep.ymlreference of the documentation site, generated from the JSON Schema. Stacked on #430. Merge it after #431: the page says that some fields are refused, which is true only once #431 is merged.What changed
tools/gen/config-reference.mjswritesapps/docs/src/content/docs/reference/shipkeep-yml.mdfrompackages/config-schema/shipkeep.schema.json.pnpm gen:config. The "Generated code is up to date" job then fails when the page is stale, and the page is never edited by hand. Prettier leaves it alone.DEFAULTS: the values the pipeline uses when a field is left out, such as health check interval5s, one replica, spreadnode, release timeout10m, drain30s(at most5m), and the default resources.NOTES:build.type: imageworks;run.healthcheck.unhealthy_thresholdis accepted but not applied yet.UNAPPLIEDand the pipeline.How it was tested
pnpm gen:configruns clean, and the output is the same over two runs.nx run docs:buildbuilds 6 pages.eslinton the generator.container-plan.ts,pipeline.ts,placement.tsandDEFAULT_RESOURCES.Security considerations
Documentation only. The generator reads the schema and writes one Markdown file.