Jammy2211 / PyAutoGalaxy

PyAutoGalaxy: Open-Source Multiwavelength Galaxy Structure & Morphology
https://pyautogalaxy.readthedocs.io/
MIT License
27 stars 13 forks source link

ReadTheDocs build is broken #53

Closed pllim closed 1 year ago

pllim commented 2 years ago

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

https://github.com/astropy/astropy.github.com/pull/491#issuecomment-1215349065

Jammy2211 commented 1 year ago

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!

https://github.com/Jammy2211/PyAutoBuild/issues/17

pllim commented 1 year ago

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.