conf.py: Sphinx config (numpydoc, autosummary, furo). It registers the dpnpLimitationsdocstring section, documents theDPNP*Funcwrapper objects as functions, and regeneratesreference/comparison_table.rst.incfromcomparison_generator.pyon every buildreference/<category>.rst:.. autosummary::lists under.. currentmodule::(dpnpor the subpackage); stubs are generated intoreference/generated/known_words.txt: spelling allow-listquick_start_guide.rst: install and build-from-source instructions
- A new public function goes in the autosummary block of the matching
reference/<category>.rst; ufuncs also go inreference/ufunc.rst,ndarraymembers inreference/ndarray.rst. These pages already list many NumPy names that dpnp lacks, so check before adding a duplicate. - A new namespace needs its own
reference/<name>.rstand a toctree entry: inreference/routines.rstfor NumPy namespaces (model:reference/fft.rst), inreference/scipy.rstfor SciPy ones (model:reference/scipy_linalg.rst). - A page kept out of every toctree on purpose, such as a placeholder, is marked
:orphan:, or Sphinx warns about it. - Move a deprecated function from its reference page to
reference/_deprecated.rst(an orphan page that keeps its stub) and remove cross-links to it. - A new wrapper base class (not a subclass of the existing
DPNP*Funcclasses) must be added toconf.pyand_can_document_member, or autodoc skips its instances. - Update
quick_start_guide.rst(andREADME.md) when build options or supported Python versions change, andreference/array_api.rstwhen the Array API version or the conforming namespaces change. - Add new legitimate words to
known_words.txt. - Warnings don't fail the build (no
-W), so check the log and the rendered page yourself.
cd doc
make spelling
make htmlThis needs an importable dpnp build and the packages in environments/building_docs.yml (including CuPy, for the comparison table). CI (build-sphinx.yml) publishes builds of PRs from IntelPython/dpnp branches at https://intelpython.github.io/dpnp/pull/<N>/index.html; fork PRs get an artifact instead.