|
14 | 14 | import sys
|
15 | 15 | sys.path.insert(0, os.path.abspath('..'))
|
16 | 16 |
|
17 |
| -import doubleml |
18 |
| - |
19 | 17 |
|
20 | 18 | # -- Project information -----------------------------------------------------
|
21 | 19 |
|
|
71 | 69 | #
|
72 | 70 | html_theme = 'pydata_sphinx_theme'
|
73 | 71 |
|
74 |
| -# html_logo = '../img/logo.png' |
75 |
| -html_extra_path = ['../img/logo.png'] |
76 |
| -html_favicon = '../img/favicon.ico' |
77 |
| - |
78 |
| -# Define the json_url for our version switcher. |
79 |
| -json_url = 'https://docs.doubleml.org/stable/_static/switcher.json' |
80 |
| - |
81 |
| -# Define the version we use for matching in the version switcher. |
82 |
| -version_match = os.environ.get("READTHEDOCS_VERSION") |
83 |
| -# If READTHEDOCS_VERSION doesn't exist, we're not on RTD |
84 |
| -# If it is an integer, we're in a PR build and the version isn't correct. |
85 |
| -if not version_match or version_match.isdigit(): |
86 |
| - # For local development, infer the version to match from the package. |
87 |
| - release = doubleml.__version__ |
88 |
| - if "dev" in release or "rc" in release: |
89 |
| - version_match = "latest" |
90 |
| - # We want to keep the relative reference if we are in dev mode |
91 |
| - # but we want the whole url if we are effectively in a released version |
92 |
| - json_url = "_static/switcher.json" |
93 |
| - else: |
94 |
| - version_match = "v" + release |
95 |
| - |
96 | 72 | html_theme_options = {
|
97 |
| - "navbar_start": ["navbar-logo", "version-switcher"], |
98 | 73 | 'github_url': 'https://github.com/DoubleML/doubleml-for-py',
|
99 | 74 | 'navigation_with_keys': False,
|
100 |
| - 'switcher': { |
101 |
| - 'json_url': json_url, |
102 |
| - 'version_match': version_match, |
103 |
| - } |
104 | 75 | }
|
105 | 76 |
|
| 77 | +# html_logo = '../img/logo.png' |
| 78 | +html_extra_path = ['../img/logo.png'] |
| 79 | +html_favicon = '../img/favicon.ico' |
| 80 | + |
106 | 81 | html_sidebars = {'**': ['logo.html',
|
107 | 82 | 'search-field.html',
|
108 | 83 | 'sidebar-nav-bs.html'],
|
|
0 commit comments