From 378ae35839eb4c0d4dc5a4d0820b055a84cd4dc6 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 03:05:30 +0000 Subject: [PATCH] docs: apply OpenMBEE brand guide to Sphinx theme Co-Authored-By: jason.han --- docs/_static/favicon.svg | 163 ++++++++++++++++++++ docs/_static/openmbee-logo-horizontal.svg | 172 ++++++++++++++++++++++ docs/_static/openmbee.css | 77 ++++++++++ docs/conf.py | 15 +- 4 files changed, 426 insertions(+), 1 deletion(-) create mode 100644 docs/_static/favicon.svg create mode 100644 docs/_static/openmbee-logo-horizontal.svg create mode 100644 docs/_static/openmbee.css diff --git a/docs/_static/favicon.svg b/docs/_static/favicon.svg new file mode 100644 index 000000000..5454157a3 --- /dev/null +++ b/docs/_static/favicon.svg @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/_static/openmbee-logo-horizontal.svg b/docs/_static/openmbee-logo-horizontal.svg new file mode 100644 index 000000000..59670fbeb --- /dev/null +++ b/docs/_static/openmbee-logo-horizontal.svg @@ -0,0 +1,172 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/_static/openmbee.css b/docs/_static/openmbee.css new file mode 100644 index 000000000..49d2aa2e8 --- /dev/null +++ b/docs/_static/openmbee.css @@ -0,0 +1,77 @@ +/* OpenMBEE brand guide: https://www.openmbee.org/brand.html */ +:root { + --openmbee-dark-blue: #10052F; + --openmbee-light-blue: #64DDFA; + --openmbee-grey: #D6D6D6; + /* Light blue darkened for readable links on white, as on openmbee.org */ + --openmbee-link: #0a6f8c; + --openmbee-font: "ABeeZee", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; +} + +body, +.rst-content .toctree-wrapper > p.caption, +h1, h2, h3, h4, h5, h6, legend, +.btn, +input, select, textarea { + font-family: var(--openmbee-font); +} + +h1, h2, h3, h4, h5, h6, +.rst-content .toctree-wrapper > p.caption { + font-weight: 400; + color: var(--openmbee-dark-blue); +} + +a, +a:visited, +.wy-breadcrumbs a { + color: var(--openmbee-link); +} + +a:hover { + color: var(--openmbee-dark-blue); +} + +.wy-nav-side, +.wy-side-nav-search, +.wy-nav-top { + background: var(--openmbee-dark-blue); +} + +/* Clear zone around the logo */ +.wy-side-nav-search > a { + padding: 16px; + margin-bottom: 0.4em; +} + +.wy-side-nav-search > a img.logo { + width: 100%; + max-width: 220px; + margin: 0; +} + +.wy-side-nav-search > div.version { + color: var(--openmbee-grey); +} + +.wy-side-nav-search input[type="text"] { + border-color: var(--openmbee-light-blue); +} + +.wy-menu-vertical p.caption, +.wy-menu-vertical header { + color: var(--openmbee-light-blue); +} + +.wy-menu-vertical a { + color: var(--openmbee-grey); +} + +.wy-menu-vertical a:hover { + background-color: rgba(100, 221, 250, 0.15); + color: #fff; +} + +.wy-nav-top a { + color: #fff; +} diff --git a/docs/conf.py b/docs/conf.py index f64f76ce3..91713756b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -57,4 +57,17 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] \ No newline at end of file +html_static_path = ['_static'] + +# OpenMBEE brand guide (https://www.openmbee.org/brand.html): logo, favicon, +# palette and the ABeeZee typeface. +html_logo = '_static/openmbee-logo-horizontal.svg' +html_favicon = '_static/favicon.svg' +html_theme_options = { + 'logo_only': True, + 'style_nav_header_background': '#10052F', +} +html_css_files = [ + 'https://fonts.googleapis.com/css2?family=ABeeZee&display=swap', + 'openmbee.css', +]