summaryrefslogtreecommitdiff
path: root/sphinx/application.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/application.py')
-rw-r--r--sphinx/application.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/sphinx/application.py b/sphinx/application.py
index 4735beffd..59e1683b3 100644
--- a/sphinx/application.py
+++ b/sphinx/application.py
@@ -146,6 +146,7 @@ class Sphinx:
self.project: Project = None
self.registry = SphinxComponentRegistry()
self.html_themes: Dict[str, str] = {}
+ self.html_assets_in_all_pages: bool = False
# validate provided directories
self.srcdir = abspath(srcdir)
@@ -1181,6 +1182,13 @@ class Sphinx:
logger.debug('[app] adding environment collector: %r', collector)
collector().enable(self)
+ def add_html_assets_in_all_pages(self):
+ """Tell extensions to insert HTML assets in all the pages.
+
+ .. versionadded: 4.1
+ """
+ self.html_assets_in_all_pages = True
+
def add_html_theme(self, name: str, theme_path: str) -> None:
"""Register a HTML Theme.