Skip to content

Documentation using Sphinx - #35

Merged
pgit merged 3 commits into
masterfrom
docs-sphinx
Nov 5, 2026
Merged

pgit merged 3 commits into
masterfrom
docs-sphinx

Conversation

@pgit

@pgit pgit commented Nov 4, 2026

Copy link
Copy Markdown
Owner

No description provided.

pgit and others added 3 commits November 4, 2026 23:34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What is public gets a comment Doxygen can see, with \param and \return,
instead of '//' blocks and nothing at all. What is there for the library's
own use, like the constructors that take an implementation, goes between
\cond and \endcond, so a symbol without a comment can be an error.

The comments name errors as errors::, which holds in both API styles, and
no longer point to the README for what is about to move out of it.

Only comments change, apart from error_code now being an alias rather than
a using-declaration, which is what Doxygen sees as a type of its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Doxygen

Laid out like the documentation of c-ares-async: a programmer's guide written
by hand and an API reference made from the comments in the public headers, as
one site in the Read the Docs theme. 'cmake --build build --target docs' makes
it, with warnings as errors in both tools, so a public symbol without a comment
and a reference that goes nowhere fail the target.

The code of the guide is in docs/snippets.cpp and docs/examples/, which every
tree compiles with ANYHTTP_BUILD_DOCS, in both API styles. test/test_docs.cpp
runs it over all three protocols as well, as this guide is about what operations
do, which compiling it does not show.

What the README had about semantics moved to pages of their own, and the README
is an overview now. The Markdown files that document something became pages too.
The ones that are records of how something was done or measured stay Markdown,
and the site links to them.

A site has one deployment, so the Documentation job only makes the pages, and
the Coverage job publishes them, at the root, with its report next to them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pgit
pgit merged commit 12f815a into master Nov 5, 2026
12 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.

1 participant