Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable nitpicky mode for sphinx and get docs to build cleanly #140

Merged
merged 11 commits into from
Sep 15, 2022

Conversation

tepickering
Copy link
Contributor

As @pllim noted, there were a lot of warnings in the documentation build. This PR enables nitpicky mode in sphinx and makes the fixes necessary to get the documentation to build cleanly. There was quite a bit of malformed rst scattered about. I had to add exceptions to specutils.Spectrum1D because the cross-referencing to that package wasn't working for some reason. Cross-references to astropy and numpy work so it's something specific to specutils. AFAICT, this is an issue seen elsewhere in the astropy ecosystem so it looks like a sphinx quirk/bug to be worked around.

This can be tested locally by running tox -e build_docs. Need to run through CI to make sure that flows through properly to RTD...

@codecov
Copy link

codecov bot commented Sep 12, 2022

Codecov Report

Merging #140 (76f75ad) into main (bc1f1ef) will increase coverage by 0.47%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #140      +/-   ##
==========================================
+ Coverage   70.09%   70.57%   +0.47%     
==========================================
  Files           9        9              
  Lines         602      605       +3     
==========================================
+ Hits          422      427       +5     
+ Misses        180      178       -2     
Impacted Files Coverage Δ
specreduce/calibration_data.py 69.36% <ø> (ø)
specreduce/tracing.py 90.51% <ø> (+1.45%) ⬆️
specreduce/extract.py 89.31% <100.00%> (-0.17%) ⬇️
specreduce/background.py 84.37% <0.00%> (+1.32%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tepickering
Copy link
Contributor Author

looks like the CI and RTD build all ran successfully 🥳

docs/conf.py Outdated Show resolved Hide resolved
docs/extinction.rst Outdated Show resolved Hide resolved
docs/index.rst Outdated Show resolved Hide resolved
docs/specphot_standards.rst Outdated Show resolved Hide resolved
docs/specphot_standards.rst Outdated Show resolved Hide resolved
docs/specphot_standards.rst Outdated Show resolved Hide resolved
docs/specphot_standards.rst Outdated Show resolved Hide resolved
docs/specphot_standards.rst Outdated Show resolved Hide resolved
docs/specphot_standards.rst Outdated Show resolved Hide resolved
specreduce/calibration_data.py Outdated Show resolved Hide resolved
specreduce/calibration_data.py Outdated Show resolved Hide resolved
docs/conf.py Outdated Show resolved Hide resolved
docs/conf.py Outdated Show resolved Hide resolved
Copy link
Member

@pllim pllim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much better now. Thanks!

docs/specphot_standards.rst Outdated Show resolved Hide resolved
@tepickering
Copy link
Contributor Author

i think this is ready to merge and @pllim has approved it. if there are no further comments or suggestions, i will go ahead and merge at the end of the day.

@tepickering tepickering merged commit 78e68b7 into astropy:main Sep 15, 2022
@tepickering tepickering deleted the fix_doc_build branch September 15, 2022 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants