Have a look at https://scipy.github.io/devdocs/dev/contributor/rendering_documentation.html
For building all the documentation artifacts for a release, run:
make dist
This will build SciPy in-place (to ensure the version is correct), build html and pdf docs as well as create a zip archive of the html docs that can easily be redistributed.
sourceis where most of the content lives.devcontains the contributor and developer guides as well as the governance docs and the code of conduct.tutorialcontains all tutorial content.releasecontains the release notes. Note that those normally should not be updated as part of a PR; we keep release notes for the upcoming releases on the wiki of the main SciPy repo.
- The
make distcommand is intended for releases only. If you are updating the docs as a result of your changes, to build locally use eitherspin docsorpixi run docsdepending on which of the two you are using. Note that both the spin and pixi commands for the docs may be run from the top level scipy directory.