Make "make check" happy.

This commit is contained in:
Georg Brandl 2009-10-26 09:56:14 +01:00
parent 3f31047b20
commit 13478a4986
4 changed files with 8 additions and 5 deletions

View File

@ -58,7 +58,7 @@ The builder's "name" must be given to the **-b** command-line option of
.. class:: DevhelpBuilder
This builder produces the same output as the standalone HTML builder, but
also generates `GNOME Devhelp <http://live.gnome.org/devhelp>`__
also generates `GNOME Devhelp <http://live.gnome.org/devhelp>`__
support file that allows the GNOME Devhelp reader to view them.
Its name is ``devhelp``.

View File

@ -226,7 +226,7 @@ class Autosummary(Directive):
``[(name, signature, summary_string, real_name), ...]``.
"""
env = self.state.document.settings.env
prefixes = ['']
if env.currmodule:
prefixes.insert(0, env.currmodule)

View File

@ -233,8 +233,10 @@ def find_autosummary_in_lines(lines, module=None, filename=None):
corresponding options set.
"""
autosummary_re = re.compile(r'^\s*\.\.\s+autosummary::\s*')
automodule_re = re.compile(r'^\s*\.\.\s+automodule::\s*([A-Za-z0-9_.]+)\s*$')
module_re = re.compile(r'^\s*\.\.\s+(current)?module::\s*([a-zA-Z0-9_.]+)\s*$')
automodule_re = re.compile(
r'^\s*\.\.\s+automodule::\s*([A-Za-z0-9_.]+)\s*$')
module_re = re.compile(
r'^\s*\.\.\s+(current)?module::\s*([a-zA-Z0-9_.]+)\s*$')
autosummary_item_re = re.compile(r'^\s+(~?[_a-zA-Z][a-zA-Z0-9_.]*)\s*.*?')
toctree_arg_re = re.compile(r'^\s+:toctree:\s*(.*?)\s*$')
template_arg_re = re.compile(r'^\s+:template:\s*(.*?)\s*$')

View File

@ -333,7 +333,8 @@ devhelp:
\t@echo "Build finished."
\t@echo "To view the help file:"
\t@echo "# mkdir -p $$HOME/.local/share/devhelp/%(project_fn)s"
\t@echo "# ln -s %(rbuilddir)s/devhelp $$HOME/.local/share/devhelp/%(project_fn)s"
\t@echo "# ln -s %(rbuilddir)s/devhelp\
$$HOME/.local/share/devhelp/%(project_fn)s"
\t@echo "# devhelp"
latex: