Sub-issue - Documentation overhaul (autodoc, docstrings, MyST) + docs-build gate in CI
Description
Make the documentation auto-generated from source and self-consistent, backfill docstrings so the API
reference is complete, standardize the docs on a single format (MyST Markdown), and add a build-only
docs check to CI. This is the third of three PRs (A → B → C) and depends on PR A (docs extra + the
docs/Makefile/.readthedocs.yaml/conf.py fixes) and PR B (the ci.yml this job plugs into).
Scope = sub-issue 5 (documentation overhaul).
✅ This is the PR that enables the Ruff D (docstring) rule. Turn it on together with the
docstring backfill so ruff check stays green — enabling it before the backfill would flood with
errors. Once on, CI blocks any new undocumented public symbol.
Tasks
1. API autodoc
2. Docstring standardization + full coverage
3. Standardize docs on MyST Markdown
4. Docs-build CI job
Acceptance Criteria
Sub-issue - Documentation overhaul (autodoc, docstrings, MyST) + docs-build gate in CI
Description
Make the documentation auto-generated from source and self-consistent, backfill docstrings so the API
reference is complete, standardize the docs on a single format (MyST Markdown), and add a build-only
docs check to CI. This is the third of three PRs (A → B → C) and depends on PR A (docs extra + the
docs/Makefile/.readthedocs.yaml/conf.pyfixes) and PR B (theci.ymlthis job plugs into).Scope = sub-issue 5 (documentation overhaul).
Tasks
1. API autodoc
sphinx.ext.autodoc+autosummary+napoleon(indocs/source/conf.py), replacing the hand-written tables indocs/source/reference.md(which drift from code).sphinx-apidoccall points at../src/pquant(fixed in PR A) and generates the API pages.2. Docstring standardization + full coverage
src/pquant/core/torch/hgq_quantizer.py.defs.Drule (add theDfamily back toselect) — with the backfill complete,ruff checkpasses and future gaps are blocked.3. Standardize docs on MyST Markdown
docs/source/index.rst→index.mdusing MyST's Markdowntoctreedirective so the entire docs tree is a single format.source_suffixto['.md']once no.rstremains.4. Docs-build CI job
ci.yml:pip install -e ".[docs]"→cd docs && make htmlwith-W(warnings-as-errors), no deploy. Wire it into theci-okgate.sphinx-build.yml. Do not add doctest — runnable examples are covered bynbmake.Acceptance Criteria
reference.mdno longer relies on hand-maintained API tables.sphinx-apidocindocs/Makefiletargets../src/pquant.hgq_quantizer.pyis converted from NumPy style.Drule is enabled andruff check .passes — i.e. every public function/method/class is documented.index.rst→index.md, andsource_suffix = ['.md'].cd docs && make htmlbuilds successfully with.[docs]installed.make html -W, no deploy) is added toci.ymland wired into theci-okgate.