mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix: html_theme_path=['.'] is a trigger of rebuild all documents always.
This commit is contained in:
17
CHANGES
17
CHANGES
@@ -1,3 +1,20 @@
|
||||
Release 1.2 (in development)
|
||||
============================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Fix: `html_theme_path=['.']` is a trigger of rebuild all documents always.
|
||||
|
||||
|
||||
Release 1.2 beta3 (released Oct 3, 2013)
|
||||
========================================
|
||||
|
||||
|
||||
@@ -91,25 +91,25 @@ class BuiltinTemplateLoader(TemplateBridge, BaseLoader):
|
||||
# create a chain of paths to search
|
||||
if theme:
|
||||
# the theme's own dir and its bases' dirs
|
||||
chain = theme.get_dirchain()
|
||||
pathchain = theme.get_dirchain()
|
||||
# then the theme parent paths
|
||||
chain.extend(theme.themepath)
|
||||
loaderchain = pathchain + theme.themepath
|
||||
elif dirs:
|
||||
chain = list(dirs)
|
||||
pathchain = loaderchain = list(dirs)
|
||||
else:
|
||||
chain = []
|
||||
pathchain = loaderchain = []
|
||||
|
||||
# prepend explicit template paths
|
||||
self.templatepathlen = len(builder.config.templates_path)
|
||||
if builder.config.templates_path:
|
||||
chain[0:0] = [path.join(builder.confdir, tp)
|
||||
for tp in builder.config.templates_path]
|
||||
pathchain[0:0] = [path.join(builder.confdir, tp)
|
||||
for tp in builder.config.templates_path]
|
||||
|
||||
# store it for use in newest_template_mtime
|
||||
self.pathchain = chain
|
||||
self.pathchain = pathchain
|
||||
|
||||
# make the paths into loaders
|
||||
self.loaders = map(SphinxFileSystemLoader, chain)
|
||||
self.loaders = map(SphinxFileSystemLoader, loaderchain)
|
||||
|
||||
use_i18n = builder.app.translator is not None
|
||||
extensions = use_i18n and ['jinja2.ext.i18n'] or []
|
||||
|
||||
Reference in New Issue
Block a user