mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix to load user-provided templates before system-provided ones.
This commit is contained in:
parent
883fef147e
commit
b223c58904
@ -81,6 +81,7 @@ class Builder(object):
|
||||
self.templates = {}
|
||||
templates_path = [path.join(path.dirname(__file__), 'templates')]
|
||||
templates_path.extend(self.config.templates_path)
|
||||
templates_path.reverse()
|
||||
self.jinja_env = Environment(loader=SphinxFileSystemLoader(templates_path),
|
||||
# disable traceback, more likely that something
|
||||
# in the application is broken than in the templates
|
||||
|
Loading…
Reference in New Issue
Block a user