Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
17189: upon the first pass of the documentation compilation, warnings…
Browse files Browse the repository at this point in the history
… don't trigger an exception
  • Loading branch information
nthiery committed Oct 21, 2014
1 parent 36c150e commit b7e0a69
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/doc/common/custom-sphinx-build.py
Expand Up @@ -48,15 +48,17 @@ def term_width_line(text):

# warnings: regular expressions (or strings) indicating a problem with
# docbuilding. Raise an exception if any of these occur.

warnings = (re.compile('Segmentation fault'),
re.compile('SEVERE'),
re.compile('ERROR'),
re.compile('^make.*Error'),
re.compile('Exception occurred'),
re.compile('Sphinx error'))

if 'latex' not in sys.argv:
# Unless this is the first pass of the compilation (where some cross
# links may not be resolvable yet), or we are compiling the latex
# documentation, we want all warnings to raise an exception.
if 'multidoc_first_pass=1' not in sys.argv and 'latex' not in sys.argv:
warnings += (re.compile('WARNING'),)


Expand Down
4 changes: 4 additions & 0 deletions src/doc/en/reference/dynamics/index.rst
Expand Up @@ -7,4 +7,8 @@ Discrete dynamics
interval_exchanges
flat_surfaces

.. SEEALSO::

- :ref:`sage.combinat.e_one_star`

.. include:: ../footer.txt

0 comments on commit b7e0a69

Please sign in to comment.