Skip to content

docs: condense the site and cut its duplicated pages - #249

Merged
skyoo2003 merged 2 commits into
mainfrom
docs/condense-and-dedupe-pages
Sep 6, 2026
Merged

skyoo2003 merged 2 commits into
mainfrom
docs/condense-and-dedupe-pages

Conversation

@skyoo2003

Copy link
Copy Markdown
Owner

Pull Request

Description

The docs site had grown three habits that made it hard to read: the same content written twice on neighbouring pages, reference material delivered as essay paragraphs, and hand-maintained nav footers the theme already renders. This rewrites all 31 site pages plus the README for concision, with no change to what any of them documents.

Deduplication

  • guides/preset-engine and guides/redis-backed-engine each carried a Quick Start, an API Reference block, and a preset table. They now split by question: which preset to pick versus how the engine stays in sync across instances. Both URLs are preserved.
  • reference/api repeated Create/Add/Find/Info/Flush/Close in a second "Redis-Backed Engine with Presets" section and gave a one-line H3 to each method. Methods are tables now; the prose is spent on contracts that need it (FindMatches, FindStream, parallel boundaries).
  • operations/monitoring listed the same four Grafana panels twice; operations/deployment repeated the topology snippets from Quick Start and the health wiring from server/running.

Structure

  • Removed the ## Navigation footers from eight pages — the layout already renders breadcrumbs, top nav, and a per-page TOC, and only some pages carried them.
  • Turned enumerative prose into tables: compatibility coverage, troubleshooting errors, HTTP endpoints and error codes, monitoring metrics, chunk boundaries.
  • The README's "Large versioned dictionaries" section had been appended below License; it is a top-level section now.

Defects found while rewriting

  • extending/custom-storage linked to guides/presets/, which does not exist → guides/preset-engine/
  • cli/_index said twenty commands, getting-started/installation said nineteen (leftover from docs: resync the site with the code it describes #245). Both counts are gone; the command table is the source, so it cannot drift again.
  • reference/api omitted FindSetContext from its context-variants list, though api/v1.txt carries it

Performance and verification reports (benchmarks, versioned-performance, r2-r3-performance) keep every data table byte-for-byte — only their surrounding prose is shorter.

166 KB to 131 KB (-21%) across 32 files.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Test update

Checklist

  • Tests pass (make test) — no Go files changed; pre-commit skipped the Go hooks
  • Vet/make vet — same
  • Linting passes (make lint) — same
  • Build succeeds (make build) — same
  • Documentation updated if needed — this PR is the documentation
  • Changelog fragment added (changie new)
  • Commit messages follow guidelines

Additional Notes

Verification run against this branch:

  • make docs-verify — all 21 <!-- doccheck --> blocks compile
  • hugo — site builds clean
  • Internal link check — 31 pages, 0 broken relative links
  • Symbols cross-checked against api/v1.txt (ErrRedisClusterDB, ErrSuggestRequiresRedis, FindSet, FindSetContext, DefaultParallelOptions)

No documented behavior changed, so the v1 promise in reference/compatibility is unaffected — that page's own rule is that wording is not covered, only what it describes.


By submitting this PR, I agree that my contributions will be licensed under the Apache License 2.0.

The site had grown three habits that made it hard to read: the same content
written twice on neighbouring pages, reference material delivered as essay
paragraphs, and hand-maintained nav footers the theme already renders.

- `preset-engine` and `redis-backed-engine` each carried a Quick Start, an API
  Reference block, and a preset table. They now split by question: which preset
  to pick, versus how the engine stays in sync across instances.
- `reference/api` repeated Create/Add/Find/Info/Flush/Close in a second
  "Redis-Backed Engine with Presets" section, and gave a one-line H3 to each
  method. Methods are tables now; the prose is spent on the contracts that need
  it (FindMatches, FindStream, parallel boundaries).
- Removed the `## Navigation` footers from eight pages. The layout renders
  breadcrumbs, top nav, and a per-page TOC, and only some pages carried them.
- `monitoring` listed the same four Grafana panels twice; `deployment` repeated
  the topology snippets from Quick Start and the health wiring from
  server/running.

Three defects surfaced while rewriting:

- `extending/custom-storage` linked to `guides/presets/`, which does not exist
- `cli/_index` said twenty commands, `getting-started/installation` said
  nineteen; both counts are gone, the command table is the source
- `reference/api` omitted `FindSetContext` from its context-variants list,
  though `api/v1.txt` carries it

The README's "Large versioned dictionaries" section had been appended below
License; it is a top-level section now.

Performance and verification reports keep every data table unchanged — only
their surrounding prose is shorter. No documented behavior changed.

166 KB to 131 KB across 32 files. `make docs-verify` compiles all 21 Go blocks,
`hugo` builds clean, and all 31 pages' internal links resolve.
@skyoo2003
skyoo2003 merged commit c404a66 into main Sep 6, 2026
9 checks passed
@skyoo2003
skyoo2003 deleted the docs/condense-and-dedupe-pages branch September 6, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant