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

Iris Docs: Build has much less output now #3789

Closed
tkknight opened this issue Aug 17, 2020 · 4 comments · Fixed by #3832
Closed

Iris Docs: Build has much less output now #3789

tkknight opened this issue Aug 17, 2020 · 4 comments · Fixed by #3832

Comments

@tkknight
Copy link
Contributor

When building the documentation (uses sphinx-build) the typical output includes showing the files that are being read/written and a summary at the end.

Currently on master this output is now not being displayed. Some travis logs for reference:

The change in behaviour seems to be introduced via commit 556e71e

I have built the docs (make html) on master locally and have reproduced this. Additionally it seems that if there are .rst syntax warnings it is no longer displayed.

@tkknight
Copy link
Contributor Author

ping @bjlittle

@tkknight
Copy link
Contributor Author

Suspect the new logging file https://github.com/SciTools/iris/blob/master/lib/iris/etc/logging.yaml has changed the behaviour added via 556e71e

@tkknight
Copy link
Contributor Author

tkknight commented Aug 17, 2020

I have successful got the output reinstated by explicitly (local branch atm) adding a reference to the sphinx in the https://github.com/SciTools/iris/blob/master/lib/iris/etc/logging.yaml file. The output looks different as it it using a formatter defined in this yaml file and not the default formatter for sphinx (I assume).

make html in src...
make[1]: Entering directory `/net/home/h06/itkt/projects/iris/docs/iris/src'
sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v3.2.0
[conf.py] Iris Version = 3.0
[conf.py] Iris Release = 3.0.dev0
17-08-2020 16:46:11 sphinx.sphinx.util INFO - making output directory...
17-08-2020 16:46:11 sphinx.sphinx.util INFO - done
17-08-2020 16:46:11 sphinx.sphinx.ext.autosummary.generate INFO - [autosummary] generating autosummary for: copyright.rst, developers_guide/code_format.rst, developers_guide/contributing_documentation.rst, developers_guide/deprecations.rst, developers_guide/documenting/docstrings.rst, developers_guide/documenting/index.rst, developers_guide/documenting/rest_guide.rst, developers_guide/documenting/whats_new_contributions.rst, developers_guide/gitwash/configure_git.rst, developers_guide/gitwash/development_workflow.rst, ..., whatsnew/1.7.rst, whatsnew/1.8.rst, whatsnew/1.9.rst, whatsnew/2.0.rst, whatsnew/2.1.rst, whatsnew/2.2.rst, whatsnew/2.3.rst, whatsnew/2.4.rst, whatsnew/index.rst, whatsnew/latest.rst
17-08-2020 16:46:11 sphinx.sphinx.ext.intersphinx INFO - loading intersphinx inventory from https://scitools.org.uk/cartopy/docs/latest/objects.inv...
17-08-2020 16:46:11 sphinx.sphinx.ext.intersphinx INFO - loading intersphinx inventory from https://matplotlib.org/objects.inv...
17-08-2020 16:46:11 sphinx.sphinx.ext.intersphinx INFO - loading intersphinx inventory from https://docs.scipy.org/doc/numpy/objects.inv...
17-08-2020 16:46:11 sphinx.sphinx.ext.intersphinx INFO - loading intersphinx inventory from https://docs.python.org/2.7/objects.inv...
17-08-2020 16:46:11 sphinx.sphinx.ext.intersphinx INFO - loading intersphinx inventory from https://docs.scipy.org/doc/scipy/reference/objects.inv...
17-08-2020 16:46:12 sphinx.sphinx.ext.intersphinx INFO - intersphinx inventory has moved: https://scitools.org.uk/cartopy/docs/latest/objects.inv -> https://scitools.org.uk/cartopy/docs/latest/objects.inv
17-08-2020 16:46:12 sphinx.sphinx.ext.intersphinx INFO - intersphinx inventory has moved: https://docs.python.org/2.7/objects.inv -> https://docs.python.org/2.7/objects.inv
17-08-2020 16:46:12 sphinx.sphinx.ext.intersphinx INFO - intersphinx inventory has moved: https://matplotlib.org/objects.inv -> https://matplotlib.org/objects.inv
17-08-2020 16:46:12 sphinx.sphinx.ext.intersphinx INFO - intersphinx inventory has moved: https://docs.scipy.org/doc/scipy/reference/objects.inv -> https://docs.scipy.org/doc/scipy/reference/objects.inv
17-08-2020 16:46:12 sphinx.sphinx.ext.intersphinx INFO - intersphinx inventory has moved: https://docs.scipy.org/doc/numpy/objects.inv -> https://numpy.org/doc/stable/objects.inv
17-08-2020 16:46:12 sphinx.sphinx-gallery INFO - generating gallery...
17-08-2020 16:46:12 sphinx.sphinx.util INFO - generating gallery for generated/gallery/general... [  7%] plot_polar_stereo.py                                
17-08-2020 16:46:13 sphinx.sphinx.util INFO - generating gallery for generated/gallery/general... [ 15%] plot_global_map.py                                  

The (local) change to the https://github.com/SciTools/iris/blob/master/lib/iris/etc/logging.yaml file:

loggers:
  ...
  ...
  sphinx:
    level: INFO
    handlers: [console]

@tkknight
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants