|
4 | 4 | import os |
5 | 5 | from pathlib import Path |
6 | 6 |
|
| 7 | +from acellera_docs_theme import apply |
| 8 | + |
7 | 9 | # Drop the timestamp from moleculekit log lines in rendered tutorial output. |
8 | 10 | os.environ.setdefault("MOLECULEKIT_LOG_FORMAT", "%(name)s - %(levelname)s - %(message)s") |
9 | 11 |
|
|
36 | 38 | ".md": "myst-nb", |
37 | 39 | } |
38 | 40 |
|
39 | | -templates_path = ["_templates"] |
40 | 41 | exclude_patterns = ["build", "**/.ipynb_checkpoints"] |
41 | 42 |
|
42 | 43 | # -- MyST / MyST-NB ---------------------------------------------------------- |
|
54 | 55 | nb_execution_timeout = 300 # some system-prep cells take ~60s |
55 | 56 | nb_merge_streams = True # combine consecutive stream outputs into a single block |
56 | 57 |
|
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 ---------------------------------------------- |
113 | 59 |
|
114 | | -html_sidebars = { |
115 | | - "**": ["sidebar-nav-bs.html"], |
116 | | -} |
| 60 | +apply( |
| 61 | + globals(), |
| 62 | + project_name="MoleculeKit", |
| 63 | + github_repo="Acellera/moleculekit", |
| 64 | +) |
117 | 65 |
|
118 | 66 | # -- LLM full-corpus artifact ------------------------------------------------ |
119 | 67 |
|
| 68 | + |
120 | 69 | def _emit_llms_full_txt(app, exception): |
121 | 70 | """build-finished hook: concatenate every rendered page source into llms-full.txt.""" |
122 | 71 | if exception is not None: |
|
0 commit comments