Skip to content

Commit

Permalink
Print theme_config
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandeep Singh Baines committed Sep 11, 2020
1 parent c25acbd commit 7fc53a1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import functools
import logging
import os
import sys
Expand Down Expand Up @@ -63,8 +64,8 @@


html_theme = "pytorch_sphinx_theme"
#html_theme_path = [pytorch_sphinx_theme.get_html_theme_path()]
#html_theme_path = [os.path.join(pytorch_sphinx_theme.get_html_theme_path(), "pytorch_sphinx_theme")]
# html_theme_path = [pytorch_sphinx_theme.get_html_theme_path()]
# html_theme_path = [os.path.join(pytorch_sphinx_theme.get_html_theme_path(), "pytorch_sphinx_theme")]
templates_path = ["_templates"]

# Add any paths that contain custom static files (such as style sheets) here,
Expand All @@ -82,6 +83,13 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]



def test(app, _init_builder):
print("Hello world ", app.builder.get_theme_config())
_init_builder()


# Over-ride PyTorch Sphinx css
def setup(app):
app.add_config_value(
Expand All @@ -94,3 +102,4 @@ def setup(app):
)
app.add_transform(AutoStructify)
app.add_css_file("css/customize.css")
app._init_builder = functools.partial(test, app, app._init_builder)

0 comments on commit 7fc53a1

Please sign in to comment.