Skip to content

Commit 5d05aed

Browse files
committed
use the acellera docs theme
1 parent 0811708 commit 5d05aed

7 files changed

Lines changed: 10 additions & 128 deletions

File tree

doc/source/_static/custom.css

Lines changed: 0 additions & 42 deletions
This file was deleted.
-1.82 KB
Binary file not shown.
-11.4 KB
Binary file not shown.
-4.44 KB
Binary file not shown.

doc/source/_templates/navbar-logo.html

Lines changed: 0 additions & 25 deletions
This file was deleted.

doc/source/conf.py

Lines changed: 9 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import os
55
from pathlib import Path
66

7+
from acellera_docs_theme import apply
8+
79
# Drop the timestamp from moleculekit log lines in rendered tutorial output.
810
os.environ.setdefault("MOLECULEKIT_LOG_FORMAT", "%(name)s - %(levelname)s - %(message)s")
911

@@ -36,7 +38,6 @@
3638
".md": "myst-nb",
3739
}
3840

39-
templates_path = ["_templates"]
4041
exclude_patterns = ["build", "**/.ipynb_checkpoints"]
4142

4243
# -- MyST / MyST-NB ----------------------------------------------------------
@@ -54,69 +55,17 @@
5455
nb_execution_timeout = 300 # some system-prep cells take ~60s
5556
nb_merge_streams = True # combine consecutive stream outputs into a single block
5657

57-
# -- HTML output -------------------------------------------------------------
58-
59-
html_theme = "pydata_sphinx_theme"
60-
html_static_path = ["_static"]
61-
html_css_files = ["custom.css"]
62-
html_show_sourcelink = True # per-page Markdown source link (LLM-friendly)
63-
html_logo = "_static/img/acellera_new_web.png"
64-
html_favicon = "_static/img/acellera-logo-16x16.png"
65-
html_context = {"default_mode": "light"} # the brand navbar colours assume light mode
66-
67-
html_theme_options = {
68-
"logo": {
69-
"image_light": "_static/img/acellera_new_web.png",
70-
"image_dark": "_static/img/acellera_new_web.png",
71-
"text": "MoleculeKit",
72-
},
73-
"header_links_before_dropdown": 5,
74-
"show_toc_level": 2,
75-
"navigation_depth": 3,
76-
"use_edit_page_button": False,
77-
"navigation_with_keys": False,
78-
"footer_start": ["copyright"],
79-
"footer_end": [],
80-
"icon_links": [
81-
{
82-
"name": "Acellera",
83-
"url": "https://www.acellera.com",
84-
"icon": "_static/img/acellera-logo-white.png",
85-
"type": "local",
86-
},
87-
{
88-
"name": "Twitter",
89-
"url": "https://twitter.com/acellera",
90-
"icon": "fab fa-twitter",
91-
"type": "fontawesome",
92-
},
93-
{
94-
"name": "GitHub",
95-
"url": "https://github.com/Acellera/moleculekit",
96-
"icon": "fab fa-github-square",
97-
"type": "fontawesome",
98-
},
99-
{
100-
"name": "LinkedIn",
101-
"url": "https://www.linkedin.com/company/acellera/",
102-
"icon": "fab fa-linkedin",
103-
"type": "fontawesome",
104-
},
105-
{
106-
"name": "Youtube",
107-
"url": "https://www.youtube.com/user/acelleralive",
108-
"icon": "fab fa-youtube",
109-
"type": "fontawesome",
110-
},
111-
],
112-
}
58+
# -- Acellera unified branding ----------------------------------------------
11359

114-
html_sidebars = {
115-
"**": ["sidebar-nav-bs.html"],
116-
}
60+
apply(
61+
globals(),
62+
project_name="MoleculeKit",
63+
github_repo="Acellera/moleculekit",
64+
)
11765

11866
# -- LLM full-corpus artifact ------------------------------------------------
11967

68+
12069
def _emit_llms_full_txt(app, exception):
12170
"""build-finished hook: concatenate every rendered page source into llms-full.txt."""
12271
if exception is not None:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ openmm = [
6363
[dependency-groups]
6464
test = ["pytest>=8.4.2", "pytest-xdist", "jupytext", "nbclient", "ipykernel"]
6565
docs = [
66+
"acellera-docs-theme @ git+https://github.com/Acellera/acellera-docs-theme.git",
6667
"sphinx",
67-
"pydata-sphinx-theme",
6868
"myst-nb",
6969
"sphinx-design",
7070
"sphinx-copybutton",

0 commit comments

Comments
 (0)