Skip to content

Commit b193636

Browse files
committed
Docs update
1 parent 08b4ac7 commit b193636

5 files changed

Lines changed: 117 additions & 15 deletions

File tree

docs/bib.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
[emodpy]: https://docs.idmod.org/projects/emodpy/en/latest/index.html
12
[idmtools]: https://docs.idmod.org/projects/idmtools/en/latest/index.html
23
[emod-generic]: https://docs.idmod.org/projects/emod-generic/en/latest/parameter-overview.html
4+
[idmod]: https://www.idmod.org/
5+
[idm_pypi]: https://packages.idmod.org/

docs/customization/css/extra.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
div.md-copyright__highlight
2+
{
3+
display: flex;
4+
flex-direction: row;
5+
gap: 2em;
6+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
window.MathJax = {
2+
tex: {
3+
inlineMath: [["\\(", "\\)"]],
4+
displayMath: [["\\[", "\\]"]],
5+
processEscapes: true,
6+
processEnvironments: true
7+
},
8+
options: {
9+
ignoreHtmlClass: ".*|",
10+
processHtmlClass: "arithmatex"
11+
}
12+
};
13+
14+
document$.subscribe(() => {
15+
MathJax.startup.output.clearCache()
16+
MathJax.typesetClear()
17+
MathJax.texReset()
18+
MathJax.typesetPromise()
19+
})
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{# base partial from:
2+
github.com/squidfunk/mkdocs-material/material/templates/partials/copyright.html
3+
#}
4+
<div class="md-copyright">
5+
{% if config.copyright %}
6+
<div class="md-copyright__highlight">
7+
{{ config.copyright }}
8+
{% for link in config.extra.footer_links %}
9+
<a href="{{ link.href }}" target="_blank" rel="noopener" style="TEXT-DECORATION: underline">{{ link.text }}</a>
10+
{% endfor %}
11+
</div>
12+
{% endif %}
13+
{% if not config.extra.generator == false %}
14+
Made with
15+
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
16+
Material for MkDocs
17+
</a>
18+
{% endif %}
19+
</div>

mkdocs.yml

Lines changed: 70 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,28 @@ repo_url: https://github.com/EMOD-Hub/EMOD-Generic-Scripts
55

66
theme:
77
name: material
8+
custom_dir: docs/customization/overrides
89
font:
910
text: Roboto
1011
code: Roboto Mono
12+
logo: images/EMOD_logo.png
13+
favicon: images/favicon.ico
1114
features:
1215
- navigation.footer
16+
- content.code.copy
1317
palette:
1418
- scheme: default
15-
primary: black
1619
toggle:
17-
icon: material/toggle-switch
20+
icon: material/weather-night
1821
name: Light mode
22+
primary: white
23+
accent: light blue
1924
- scheme: slate
20-
primary: black
2125
toggle:
22-
icon: material/toggle-switch-off-outline
26+
icon: material/weather-sunny
2327
name: Dark mode
24-
favicon: images/favicon.ico
25-
logo: images/EMOD_logo.png
28+
primary: black
29+
accent: light blue
2630

2731
nav:
2832
- Home: index.md
@@ -43,12 +47,13 @@ nav:
4347
- examples/model_polio_nga01.md
4448
- examples/model_rubella01.md
4549
- examples/model_transtree01.md
50+
- API Reference: autoapi/
4651

4752
plugins:
48-
- search
49-
- autorefs
50-
- include-markdown
51-
- glightbox
53+
- search:
54+
- autorefs:
55+
- include-markdown:
56+
- glightbox:
5257
- mkdocs-autoapi:
5358
autoapi_ignore:
5459
- .github/**/*
@@ -58,12 +63,62 @@ plugins:
5863
- env_*/**/*
5964
- model_*/**/*
6065
- refdat_*/**/*
61-
autoapi_add_nav_entry: True
62-
- mkdocstrings
66+
autoapi_add_nav_entry: false
67+
- mkdocstrings:
6368

6469
markdown_extensions:
65-
- pymdownx.caret
66-
- pymdownx.mark
67-
- pymdownx.tilde
70+
- def_list:
71+
- pymdownx.caret:
72+
- pymdownx.mark:
73+
- pymdownx.tilde:
74+
- pymdownx.snippets:
75+
- pymdownx.blocks.details:
76+
- pymdownx.highlight:
77+
linenums: true
78+
default_lang: 'python'
6879

6980
copyright: Copyright &copy; 2025 Gates Foundation. All rights reserved.
81+
82+
extra_javascript:
83+
- customization/javascripts/mathjax.js
84+
- https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js
85+
86+
extra_css:
87+
- customization/css/extra.css
88+
89+
extra:
90+
generator: false # Removes acknowledgement of mkdocs-material
91+
footer_links:
92+
- text: "Privacy and Cookies Notice"
93+
href: "https://www.gatesfoundation.org/Privacy-and-Cookies-Notice"
94+
- text: "Terms of Use"
95+
href: "https://www.gatesfoundation.org/Terms-of-Use"
96+
social:
97+
- icon: fontawesome/brands/github
98+
link: https://github.com/EMOD-Hub/emod-api
99+
- icon: fontawesome/regular/envelope
100+
link: mailto:idm@gatesfoundation.org
101+
- icon: octicons/globe-24
102+
link: https://idmod.org
103+
- icon: simple/youtube
104+
link: http://www.youtube.com/@institutefordiseasemodelin1987
105+
- icon: fontawesome/brands/linkedin
106+
link: https://linkedin.com/company/institute-disease-modeling
107+
- icon: fontawesome/brands/slack
108+
link: https://gatesfoundation.enterprise.slack.com/
109+
analytics:
110+
feedback:
111+
title: Was this page helpful?
112+
ratings:
113+
- icon: material/emoticon-happy-outline
114+
name: This page was helpful
115+
data: 1
116+
note: >-
117+
Thanks for your feedback! If you like, provide additional information by
118+
using our <a href="https://app.smartsheet.com/b/form/ec8dbb77809949ecab7286a5ca74a206" target="_blank" rel="noopener">feedback form</a>.
119+
- icon: material/emoticon-sad-outline
120+
name: This page could be improved
121+
data: 0
122+
note: >-
123+
Thanks for your feedback! Help us improve this page by
124+
using our <a href="https://app.smartsheet.com/b/form/ec8dbb77809949ecab7286a5ca74a206" target="_blank" rel="noopener">feedback form</a>.

0 commit comments

Comments
 (0)