Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Doc build error #284

Closed
TomNicholas opened this issue Nov 27, 2023 · 5 comments · Fixed by #298
Closed

Doc build error #284

TomNicholas opened this issue Nov 27, 2023 · 5 comments · Fixed by #298
Labels
bug Something isn't working CI Continuous Integration and packaging tools documentation Improvements or additions to documentation

Comments

@TomNicholas
Copy link
Member

TomNicholas commented Nov 27, 2023

Weird failure kept happening in the CI in #279

https://readthedocs.org/projects/xarray-datatree/builds/22664223/

Somehow xarray's fault??

ValueError: Error parsing See Also entry ':doc:`xarray-tutorial:intermediate/indexing/indexing`' in the docstring of isel in /home/docs/checkouts/readthedocs.org/user_builds/xarray-datatree/checkouts/279/datatree/mapping.py.
@TomNicholas TomNicholas added bug Something isn't working documentation Improvements or additions to documentation CI Continuous Integration and packaging tools labels Nov 27, 2023
@keewis
Copy link
Contributor

keewis commented Nov 27, 2023

adding xarray-tutorial to the intersphinx mapping might help? I'm guessing it doesn't like the unknown link prefix?

@etienneschalk
Copy link
Contributor

Hello,

I tried to add xarray-tutorial in the intersphinx_mapping, as such:

intersphinx_mapping = {
    "python": ("https://docs.python.org/3.8/", None),
    "numpy": ("https://numpy.org/doc/stable", None),
    "xarray": ("https://xarray.pydata.org/en/stable/", None),
   "xarray-tutorial": ("https://tutorial.xarray.dev/", None),
}

However, the error on make build is (whether the xarray-tutorial entry has been added) still:

Extension error (numpydoc.numpydoc):
Handler <function mangle_signature at 0x7fb8f444cdc0> for event 'autodoc-process-signature' threw an exception (exception: Error parsing See Also entry ':doc:`xarray-tutorial:intermediate/indexing/indexing`' in the docstring of isel in /home/user/dev/datatree/datatree/mapping.py.)
make: *** [Makefile:54: html] Error 2

@TomNicholas
Copy link
Member Author

TomNicholas commented Dec 10, 2023

@keewis I need to release datatree (to fix #293), but do you know whether that would cause problems (to release when the docs build on main is not working?

EDIT: I also tried adding xarray-tutorial in the intersphinx_mapping just to double-check - that didn't work for me either.

@keewis
Copy link
Contributor

keewis commented Jan 3, 2024

revisiting this, I think the reason this fails while xarray's docs build fine is that xarray uses napoleon while datatree uses numpydoc. Since the merge will combine both anyways, it might be worth switching datatree to use napoleon?

@keewis
Copy link
Contributor

keewis commented Jan 15, 2024

should we cut a release, now that the docs build again?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working CI Continuous Integration and packaging tools documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants