Jammy2211 / PyAutoGalaxy

PyAutoGalaxy: Open-Source Multiwavelength Galaxy Structure & Morphology

Home Page:https://pyautogalaxy.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReadTheDocs build is broken

pllim opened this issue · comments

At the time of opening this issue, the last successful build was over 3 weeks ago (July 24, 2022): https://readthedocs.org/projects/pyautogalaxy/builds/

Also see #50

astropy/astropy.github.com#491 (comment)

This build is now successful: https://readthedocs.org/projects/pyautogalaxy/builds/

We intend to prevent releases via our biuld server if readthedocs does not build successfully - if you have a suggestion on how to do this it'd be much appreciated!

Jammy2211/PyAutoBuild#17

If you want to prevent release with failed RTD, you could run the same sphinx command that RTD runs as one of your release steps. It is in the logs:

.../bin/python -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html

As for the RTD build itself, optional but recommended:

  1. Resolve the 57 warnings. Example log: https://readthedocs.org/api/v2/build/18753466.txt
  2. To prevent future warnings creeping back it, set RTD build to fail on warning.
  3. To prevent bad cross-linking, set nitpicky=True in docs/conf.py and fix the broken refs.
  4. To prevent bad URLs, run linkcheck once in a while (could be a cron job). There might be false positives sometimes.