Skip to content

docs: backfill CLI reference, sidebar, and package docs - #249

Open
iamlasse wants to merge 3 commits into
marcus:mainfrom
iamlasse:docs/backfill-missing-docs-20260919
Open

iamlasse wants to merge 3 commits into
marcus:mainfrom
iamlasse:docs/backfill-missing-docs-20260919

Conversation

@iamlasse

@iamlasse iamlasse commented Sep 19, 2026 •

Copy link
Copy Markdown

Summary

Backfills missing user-facing documentation, verified against the cobra command definitions in cmd/nightshift/commands/:

  • website/docs/cli-reference.md: document the implemented commands that were missing from the reference — commit normalize (with --check/--file), busfactor, config get/set/validate, init, daemon start/stop/status, install/uninstall, report, plus flag tables for task list/show/run and the budget snapshot/history/calibrate subcommands. Also corrected the Global Flags section: only --verbose is a root persistent flag; --provider/--timeout are per-command.
  • website/sidebars.js: add troubleshooting to the Reference category — the page existed but was unreachable from the docs nav.
  • cmd/provider-calibration/main.go: add the missing package-level doc comment (last package in cmd//internal/ without one).
  • docs/guides/adding-tasks.md: replace the stale "50+" task count with the actual 59 registered task types.
  • README.md: add a Guides section linking the docs/guides/ pages, which were unreachable from any index.

Task counts in task-reference.md / tasks.md were audited against the registry in internal/tasks/tasks.go (59 entries; cost tiers 5/39/13/2 and risk levels 44/13/2 all match) — no changes needed there.

Verification

  • go build ./... and go vet ./... pass
  • go test ./cmd/... ./internal/tasks/ passes
  • Sidebar entries checked both ways against website/docs/*.md — no orphaned pages, no dangling references

Nightshift-Task: docs-backfill
Nightshift-Ref: https://github.com/marcus/nightshift


Automated by nightshift

iamlasse added 3 commits June 28, 2026 02:10
Add internal/commits with pure Normalize/validate functions enforcing the project's Conventional Commits rules (known type set, lowercase type, lowercase subject, 72-char subject limit, whitespace trimming, and 72-column body wrapping). Wire it into the CLI as 'nightshift commit normalize' (positional, --file, and stdin sources; --check to validate only), ship a commit-msg git hook under scripts/, and document the format and installation in docs/commit-messages.md.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift
- errcheck: handle fmt.Fprintln error in commit-normalize RunE - govet:
replace deprecated reflect.Ptr alias with reflect.Pointer

Nightshift-Task: lint-fix
Nightshift-Ref: https://github.com/marcus/nightshift
- cli-reference.md: document commit normalize, busfactor, config
get/set/validate, init, daemon start/stop/status, install/uninstall,
report, and budget snapshot/history/calibrate flags, verified against
the cobra definitions in cmd/nightshift/commands/ - sidebars.js: add
troubleshooting to the Reference category (page was unreachable from the
docs nav) - cmd/provider-calibration: add missing package doc comment -
adding-tasks.md: replace stale '50+' task count with the actual 59 -
README.md: add a Guides section linking the docs/guides/ pages

Nightshift-Task: docs-backfill
Nightshift-Ref: https://github.com/marcus/nightshift

This branch has not been deployed

No deployments
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