Skip to content

docs: align with Go/Java clients + publish to GitHub Pages (#26) - #27

Merged
rigazilla merged 3 commits into
infinispan:mainfrom
rigazilla:docs/pages-and-local-build
Dec 3, 2026
Merged

rigazilla merged 3 commits into
infinispan:mainfrom
rigazilla:docs/pages-and-local-build

Conversation

@rigazilla

Copy link
Copy Markdown
Member

Aligns the C++17 client documentation with the sibling Infinispan Hot Rod clients
(Go single-book layout) and adds a local render loop plus GitHub Pages publishing.

Closes #26.

Decisions (agreed in #26)

  • Model: Go single-book layout (the C++ docs were already seeded from it).
  • Scope: document shipped features only (per AGENTS.md; docs/STATUS.md is
    authoritative). Chapters for unshipped features are added as they land.
  • Publish: GitHub Pages (live), better than Go's release-zip.
  • Local build: scripts/build-docs.sh + CMake docs target. Doxygen API
    reference deferred to a follow-up.

What changed (three commits)

1. Infra (388e9d9)

  • scripts/build-docs.sh — single source of truth for rendering the guide to
    documentation/_build/index.html; --serve / --watch for a local edit loop.
  • CMake docs target wrapping the script (gated on find_program(asciidoctor)).
  • .github/workflows/docs.yml — render on every docs push/PR, deploy to GitHub
    Pages on push to main.
  • .gitignore ignores render output and local build/tooling noise.

2. Conventions (91ca540)

  • index.adoc: :brandname:, highlight.js, :icons: font, docinfo shared-head
    jsTree TOC; chapters reordered to the Go order.
  • documentation/{docinfo,css,js} TOC assets (adapted from the Go client).
  • documentation/AI-CODE.md authoring conventions for C++ + the
    shipped-features-only rule.
  • "Connecting" retitled "Connecting to {brandname}".

3. Content (88875e6)

  • Five topic chapters expanded from stubs to security.adoc depth (shipped
    behavior only), with cross-references, option/operation tables, and signatures
    taken from include/hotrod/.
  • README.md restructured to the Go client's section order (shipped-features
    only); dropped the version-by-version milestone list (history lives in
    DECISIONS.md); kept the STATUS/DECISIONS/WORKFLOW and Java/Kaitai pointers.

Verification

  • Guide renders with zero asciidoctor warnings; all cross-references resolve.
  • scripts/build-docs.sh and cmake --build <dir> --target docs both produce
    documentation/_build/index.html.
  • Docs-only change: no library/source/test code touched.

Follow-ups (tracked)

  • Enable Pages on the hosting repo (Settings → Pages → Source: GitHub Actions) to
    make the live URL go live.
  • Doxygen API reference alongside the guide.
  • Add each deferred chapter (bulk ops, near caching, queries, transactions,
    counters, multimap, typed caches, cache administration) when its feature ships.

🤖 Generated with Claude Code

rigazilla and others added 3 commits December 2, 2026 11:12
…orkflow (infinispan#26)

Phase 1 of aligning the docs with the Go/Java Hot Rod clients: the build and
publish pipeline, before any content/convention changes.

- scripts/build-docs.sh: single source of truth for rendering the AsciiDoc guide
  to documentation/_build/index.html; --serve / --watch for a local edit loop.
- CMake `docs` target wrapping the script (gated on find_program(asciidoctor)).
- .github/workflows/docs.yml: render on every docs push/PR, deploy to GitHub
  Pages on push to main.
- README: add a Documentation section; .gitignore: ignore render output plus
  local build-*/graphify-out/log noise.

Decision + rationale (mirror Go single-book layout, publish via Pages,
shipped-features only) recorded in docs/DECISIONS.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…OC, AI-CODE.md, chapter order (infinispan#26)

Phase 2 of aligning the docs with the Go/Java Hot Rod clients: conventions and
structure (no content expansion yet — that is phase 3).

- index.adoc: :brandname: attribute, highlight.js, :icons: font, and the docinfo
  shared-head jsTree TOC; title uses {brandname}; chapters reordered to the Go
  order (Client Intelligence now precedes Cache Operations).
- documentation/{docinfo/docinfo.html,css/toc.css,js/toc.js}: collapsible,
  searchable TOC assets (adapted from the Go client), copied into the render
  output by scripts/build-docs.sh.
- documentation/AI-CODE.md: authoring conventions adapted for C++ (one sentence
  per line, [source,cpp], {brandname}, terminology) plus the shipped-features-only
  rule keyed to docs/STATUS.md.
- connecting.adoc retitled "Connecting to {brandname}" to match the Go guide.

Source blocks already used [source,cpp], so no normalization was needed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…o section set (infinispan#26)

Phase 3 (final) of aligning the docs with the Go/Java Hot Rod clients.

Topic chapters — expanded from stubs to security.adoc's depth, shipped behavior
only, with cross-references, option/operation tables, and accurate API signatures
drawn from include/hotrod/:
- getting-started: prerequisites, build/link, quick start, ByteArray + async model
- connecting: seed constructor, fromUri, URI parameter table, options, failover,
  lifecycle
- client-intelligence: level table, hash-aware routing, topology inspection
- cache-operations: basic ops, expiration, previousValue, metadata/version CAS,
  return-type summary
- error-handling-and-retry: exception data, failure phases, isTransient/
  outcomeUncertain, user-decided retry, non-idempotent + proxyToNonOwner notes

README.md — restructured to the Go client's section order (Features, Installation,
Quick Start, Connection URI, Options, Cache Operations, Security, Error Handling,
Building, Testing, Documentation, Project Structure, Status/Contributing,
References, License), shipped-features only. Dropped the version-by-version
milestone list (history lives in DECISIONS.md) and a local absolute path; kept the
STATUS/DECISIONS/WORKFLOW and Java/Kaitai pointers.

Rendered clean (no asciidoctor warnings); all cross-references resolve.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rigazilla
rigazilla merged commit d650500 into infinispan:main Dec 3, 2026
9 of 11 checks passed
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.

Align docs with Go/Java clients + publish to GitHub Pages with a local build loop

1 participant