mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Make "make check" happy.
This commit is contained in:
parent
3f31047b20
commit
13478a4986
@ -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``.
|
||||
|
@ -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)
|
||||
|
@ -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*$')
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user