|
68 | 68 | 'sphinx_design', |
69 | 69 | 'sphinx_copybutton', |
70 | 70 | 'nbsphinx', |
| 71 | + 'brainx_sphinx_header', |
71 | 72 | ] |
72 | 73 | # Add any paths that contain custom static files (such as style sheets) here, |
73 | 74 | # relative to this directory. They are copied after the builtin static files, |
|
130 | 131 | # so a file named "default.css" will overwrite the builtin "default.css". |
131 | 132 | html_static_path = ["_static"] |
132 | 133 |
|
133 | | -# Fetch the canonical BrainX header from brainx.chaobrain.com and emit it as |
134 | | -# static assets. See docs/_brainx_header.py for env-var controls |
135 | | -# (BRAINX_HEADER_LOCAL / BRAINX_HEADER_OFFLINE / BRAINX_HEADER_TTL). |
136 | | -import _brainx_header |
137 | | -_brainx_header.install(os.path.dirname(os.path.abspath(__file__))) |
| 134 | +# The BrainX brand header is provided by the `brainx_sphinx_header` extension |
| 135 | +# (added to `extensions` above). It fetches header.html/css from |
| 136 | +# https://brainx.chaobrain.com/shared-header, emits them under _static/, and |
| 137 | +# registers them automatically. Override defaults here if needed: |
| 138 | +# brainx_header_url = "https://brainx.chaobrain.com/shared-header" |
| 139 | +# brainx_header_ttl = 3600 |
| 140 | +# brainx_header_offline = False |
| 141 | +# brainx_header_local = None |
138 | 142 |
|
139 | | -html_css_files = [ |
140 | | - 'css/brainx-header.css', |
141 | | -] |
142 | 143 |
|
143 | 144 | # jupyter_execute_notebooks = "off" |
144 | 145 | nb_execution_mode = "off" |
|
164 | 165 |
|
165 | 166 | # Add Plotly JS once for your whole site (optional but recommended) |
166 | 167 | html_js_files = [ |
167 | | - "js/brainx-header.js", |
168 | 168 | "https://cdn.plot.ly/plotly-latest.min.js", # or pin a specific version |
169 | 169 | ] |
0 commit comments