Skip to content

Comments

docs: add Reference section (#28)#37

Merged
shouze merged 2 commits intofeat/vitepress-docsfrom
docs/28-reference
Feb 23, 2026
Merged

docs: add Reference section (#28)#37
shouze merged 2 commits intofeat/vitepress-docsfrom
docs/28-reference

Conversation

@shouze
Copy link
Contributor

@shouze shouze commented Feb 23, 2026

Motivation

Implements #28 — the complete Reference section of the documentation site.

What changed

4 new pages under docs/reference/:

Page Content
cli-options.md Full table of all search options sourced from github-code-search.ts: --org, --exclude-repositories, --exclude-extracts, --no-interactive, --format, --output-type, --include-archived, --group-by-team-prefix, --no-cache — plus global options -V/-h and usage notes
keyboard-shortcuts.md Navigation (↑↓←→), selection (Space/a/n), filter mode (f/r) with dedicated filter-mode binding table (Enter confirm / Esc cancel), help and exit (h/?/Enter/q/Ctrl+C)
github-api-limits.md Result limits (1,000 max / page 10 hard cap / 256 char query), rate limits (10 unauth / 30 auth req/min), query syntax constraints (no regex, max 5 booleans, NOT behaviour, qualifier-only rejection), pagination behaviour, 3 official GitHub documentation links
environment.md GITHUB_TOKEN (required scopes table), CI (disables TUI), GITHUB_CODE_SEARCH_CACHE_DIR (override + default paths per OS)

Acceptance criteria

  • All 4 pages exist and render without errors
  • github-api-limits.md includes 3 links to official GitHub documentation
  • CLI options table matches the options defined in github-code-search.ts exactly (including --no-cache)
  • No broken links

How to test

bun run docs:dev
# → navigate to http://localhost:5173/github-code-search/reference/cli-options

- cli-options.md: full table of all search options (--org, --exclude-repositories,
  --exclude-extracts, --no-interactive, --format, --output-type, --include-archived,
  --group-by-team-prefix, --no-cache) + global options (-V, -h) + usage notes
- keyboard-shortcuts.md: navigation, selection, filter mode (f / r / Esc / Enter),
  help and exit (h/? / Enter / q / Ctrl+C), with section for filter-mode bindings
- github-api-limits.md: result limits (1,000 max, page 10 hard cap, 256 char query),
  rate limits (10 unauth / 30 auth req/min), query syntax constraints (no regex,
  max 5 booleans, NOT behaviour, qualifier-only rejection), pagination behaviour,
  3 official GitHub documentation links
- environment.md: GITHUB_TOKEN (required scopes), CI, GITHUB_CODE_SEARCH_CACHE_DIR
  (override + default OS paths table)
Copilot AI review requested due to automatic review settings February 23, 2026 17:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Reference section to the VitePress documentation, covering CLI options, keyboard shortcuts, GitHub API limits, and environment variables for github-code-search.

Changes:

  • Added docs/reference/cli-options.md with command usage and option tables.
  • Added docs/reference/keyboard-shortcuts.md documenting TUI key bindings (navigation/selection/filter/help/exit).
  • Added docs/reference/github-api-limits.md and docs/reference/environment.md to document GitHub constraints and runtime env vars.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 9 comments.

File Description
docs/reference/cli-options.md Documents CLI commands and options in a tabular reference format.
docs/reference/keyboard-shortcuts.md Documents interactive TUI keyboard bindings and filter-mode bindings.
docs/reference/github-api-limits.md Summarizes GitHub code search limits, rate limits, and links official docs.
docs/reference/environment.md Documents GITHUB_TOKEN, CI, and cache directory override behavior.

- cli-options.md: add intro paragraph; fix <query> required arg;
  fix --no-interactive and --no-cache defaults to 'true (on)'
  with clarified descriptions
- keyboard-shortcuts.md: keys are case-sensitive, lowercase only;
  add j/k vim navigation aliases; fix filter mode table: Printable
  characters + Backspace; clarify Enter when help overlay open vs closed
- github-api-limits.md: remove 'deduplicated' from pagination section;
  fix rate limit callout to say 'retry after reset time'
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

@shouze shouze self-assigned this Feb 23, 2026
@shouze shouze merged commit 24dad06 into feat/vitepress-docs Feb 23, 2026
6 checks passed
@shouze shouze deleted the docs/28-reference branch February 23, 2026 18:20
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