Skip to content

clojure(docs[guide]): Fix reader wording and links - #158

Merged
tony merged 1 commit into
masterfrom
docs/clojure-ledger-fixes
Nov 13, 2026
Merged

tony merged 1 commit into
masterfrom
docs/clojure-ledger-fixes

Conversation

@tony

@tony tony commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Fixes three findings from a review of the published Clojure pages on libtmux.org (rows C15, C16 and C22 of the review ledger). libtmux.org stages the Clojure README, the Clojure guide and the core.async README verbatim, so the wording and links in these source files are what site readers see. Docs only; no code, no changelog entry (the unreleased Clojure documentation entry already covers these pages).

C15: repository-reader wording

The Clojure README, the core.async README and the Clojure guide said "this checkout", "Every Clojure snippet in this README", "the module's javadoc classifier" and "Start with the package README". On the site these point at nothing.

  • "Build and verify it from this checkout" is now "To build and verify it from source, run this from the root of a libtmux-java clone" in both READMEs.
  • "in this README and the guide" is now "on this page and in the [guide]".
  • The javadoc classifier sentences name the artifact (libtmux-clojure, libtmux-clojure-core-async), and the generated-site path is spelled from the repository root.
  • The guide's "package README" link is now "install and quick start".

C16: async alias clash

The guide aliased both clojure.core.async and libtmux.async as async. libtmux.async is now tm-async in the three snippets that used it, and clojure.core.async keeps async.

C22: [guide-streaming] anchor

[guide-streaming] in the Clojure README linked the whole guide from the words "control streaming". It now ends in #lifecycle-streaming-and-optional-adapters, the guide section that covers control. The libtmux/docs staging script rewrites the path to the staged guide route and keeps the fragment, so it resolves on GitHub and on the site.

Test plan

  • ./gradlew :integration-tests:clojureIntegrationTest -PlibtmuxClojureTestNamespaces=libtmux.documentation-examples-test passes (6 tests, 26 assertions, tmux 3.8a), so every guide and README snippet still runs and matches its displayed result
  • Reverting one tm-async/cancel! call to async/cancel! makes the same task fail with No such namespace: async, so the gate catches a broken alias
  • ./gradlew :docs:test --tests io.github.libtmux.docs.DocumentationFactsTest passes, including the repository link check
  • CI

why: libtmux.org publishes the Clojure README and guide verbatim, so
repository-reader phrases ("this checkout", "this README", "the package
README", "the module's javadoc classifier") read wrongly on the site.
The guide aliased libtmux.async and clojure.core.async both as async,
and the README's control-streaming link landed on the whole guide.

what:
- Reword the checkout, README and javadoc-classifier phrases in the
  Clojure and core.async READMEs and the Clojure guide so they read on
  GitHub and on libtmux.org
- Alias libtmux.async as tm-async in the three guide snippets that used
  async, leaving async for clojure.core.async
- Point [guide-streaming] at #lifecycle-streaming-and-optional-adapters
@tony
tony merged commit 3c449c4 into master Nov 13, 2026
29 checks passed
@tony
tony deleted the docs/clojure-ledger-fixes branch November 13, 2026 04:25
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