diff --git a/doc/_static/logo.css b/doc/_static/logo.css new file mode 100644 index 0000000..8878fe2 --- /dev/null +++ b/doc/_static/logo.css @@ -0,0 +1,18 @@ +/* Sidebar header behind the logo. The logo switches its ink between dark and light with the + colour scheme, so the header switches with it; on the theme's blue the blue arm of the E + would vanish. */ +.wy-side-nav-search { + background-color: #fcfcfc; +} + +/* Let the logo follow the reader's colour scheme even in browsers that take it from the + embedding element, as the header below does. */ +.wy-side-nav-search img.logo { + color-scheme: light dark; +} + +@media (prefers-color-scheme: dark) { + .wy-side-nav-search { + background-color: #1c2230; + } +} diff --git a/doc/conf.py b/doc/conf.py index 33368a9..a968665 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -53,5 +53,9 @@ # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output html_theme = 'sphinx_rtd_theme' +html_theme_options = { + 'logo_only': True, +} +html_logo = 'images/ledsa_logo.svg' html_static_path = ['_static'] -html_css_files = ['tables.css'] \ No newline at end of file +html_css_files = ['tables.css', 'logo.css'] \ No newline at end of file diff --git a/doc/images/ledsa_logo.svg b/doc/images/ledsa_logo.svg new file mode 100644 index 0000000..78d97e5 --- /dev/null +++ b/doc/images/ledsa_logo.svg @@ -0,0 +1,23 @@ + + LEDSA + LEDSA (LEDSmokeAnalysis) wordmark in 8-bit style. The D carries the diode symbol as a negative-space triangle: the counter of the D is the LED. The E stem is the diode bar; its three arms are the red, green and blue channels, their lengths showing the transmission through smoke. + + + + + + + + + + + + + + + + + + + +