mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
:confval:templates_path
is automatically added to :confval:exclude_patterns
to avoid reading autosummary rst templates in the templates directory. Closes #1543
This commit is contained in:
parent
799ae87ce0
commit
70fd3c6d31
3
CHANGES
3
CHANGES
@ -15,6 +15,9 @@ Incompatible changes
|
|||||||
* PR#269, #1476: replace `<tt>` tag by `<code>`. User customized stylesheets
|
* PR#269, #1476: replace `<tt>` tag by `<code>`. User customized stylesheets
|
||||||
should be updated If the css contain some styles for `<tt>` tag.
|
should be updated If the css contain some styles for `<tt>` tag.
|
||||||
Thanks to Takeshi Komiya.
|
Thanks to Takeshi Komiya.
|
||||||
|
* #1543: :confval:`templates_path` is automatically added to
|
||||||
|
:confval:`exclude_patterns` to avoid reading autosummary rst templates in the
|
||||||
|
templates directory.
|
||||||
|
|
||||||
Features added
|
Features added
|
||||||
--------------
|
--------------
|
||||||
|
@ -120,6 +120,10 @@ General configuration
|
|||||||
builtin/theme-specific templates). Relative paths are taken as relative to
|
builtin/theme-specific templates). Relative paths are taken as relative to
|
||||||
the configuration directory.
|
the configuration directory.
|
||||||
|
|
||||||
|
.. versionchanged:: 1.3
|
||||||
|
As these files are not meant to be built, they are automatically added to
|
||||||
|
:confval:`exclude_patterns`.
|
||||||
|
|
||||||
.. confval:: template_bridge
|
.. confval:: template_bridge
|
||||||
|
|
||||||
A string with the fully-qualified name of a callable (or simply a class) that
|
A string with the fully-qualified name of a callable (or simply a class) that
|
||||||
|
@ -339,6 +339,7 @@ class BuildEnvironment:
|
|||||||
"""
|
"""
|
||||||
matchers = compile_matchers(
|
matchers = compile_matchers(
|
||||||
config.exclude_patterns[:] +
|
config.exclude_patterns[:] +
|
||||||
|
config.templates_path +
|
||||||
config.html_extra_path +
|
config.html_extra_path +
|
||||||
['**/_sources', '.#*']
|
['**/_sources', '.#*']
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user