SNEWS2 / snewpy

A Python package for working with supernova neutrinos
https://snewpy.readthedocs.io
BSD 3-Clause "New" or "Revised" License
24 stars 17 forks source link

docs page fails to build #327

Closed JostMigenda closed 2 months ago

JostMigenda commented 2 months ago

According to the badge displayed in the README file (see screenshot), ReadTheDocs currently fails to build our docs.

image

When building the docs locally, I notice there is a warning snewpy/python/snewpy/models/presn.py:docstring of snewpy.models.presn.Patton_2017:10: WARNING: Duplicate explicit target name: "zenodo". and RTD appears to treat warnings as errors in its builds. (Which is arguably a good practice.)

The intermediate fix to eliminate this warning is to turn the links into anonymous references; but to avoid similar things happening again, we should also do the following:

I’ve started working on this & will try to get a PR out on Friday. Would be good to get this in ASAP (before releasing v1.5), so we have docs available as soon as the release is published.