diff --git a/docs/_static/custom.css b/docs/_static/custom.css new file mode 100644 index 0000000..1860d71 --- /dev/null +++ b/docs/_static/custom.css @@ -0,0 +1,41 @@ +html[data-theme="dark"] .mermaid svg { + filter: invert(); +} + +html[data-theme="dark"] .bd-content div.cell_output img { + padding: unset; +} + +html[data-theme="dark"] .hide summary { + background-color: #29313d !important; + color: #EEFFFF; +} + +div.cell details.above-input > summary { + border-bottom: var(--mystnb-source-border-width) var(--mystnb-source-border-color) solid; +} + +div.cell details.above-input div.cell_input { + border-top: var(--mystnb-source-border-width) var(--mystnb-source-border-color) solid; +} + +.nbinput button.copybtn { + top: 0.3em; +} + +.nboutput button.copybtn, +.cell_output button.copybtn { + display: none; +} + +button.btn.version-switcher__button { + margin-bottom: unset +} + +div.cell_output tbody tr:nth-child(2n+1){ + background: unset; +} + +div.cell_output tbody tr:hover { + background: rgba(66, 165, 245, 0.2); + } \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index b2eeeea..e9c4da3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,10 +14,12 @@ # -- Options for HTML output ------------------------------------------------- -html_theme = 'pydata_sphinx_theme' +html_baseurl = 'https://ulysseherbach.github.io/fluffyclone/' html_static_path = ['_static'] +html_css_files = ['custom.css'] # html_copy_source = False +html_theme = 'pydata_sphinx_theme' html_theme_options = { 'icon_links': [ {