Skip to content

Commit cb6052a

Browse files
committed
chore: some docs building stuff
1 parent 4368040 commit cb6052a

File tree

4 files changed

+151
-79
lines changed

4 files changed

+151
-79
lines changed

docs/javascripts/katex.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
document$.subscribe(({ body }) => {
2+
renderMathInElement(body, {
3+
delimiters: [
4+
{ left: "$$", right: "$$", display: true },
5+
{ left: "$", right: "$", display: false },
6+
{ left: "\\(", right: "\\)", display: false },
7+
{ left: "\\[", right: "\\]", display: true }
8+
],
9+
})
10+
})

mkdocs.yml

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
site_name: histolytics docs
22
site_description: Documentation for Histolytics, a library for panoptic histopathology WSI analysis
33
site_author: Oskari Lehtonen
4+
site_url: https://HautaniemiLab.github.io/histolytics/
45
repo_url: https://github.com/HautaniemiLab/histolytics
56
repo_name: histolytics
67

@@ -22,12 +23,12 @@ theme:
2223
- navigation.indexes
2324
- navigation.instant
2425
- navigation.tracking
25-
- navigation.expand
2626
- navigation.indexes
2727

28-
2928
plugins:
3029
- search
30+
- social
31+
- autorefs
3132
- mkdocstrings:
3233
default_handler: python
3334
handlers:
@@ -36,19 +37,51 @@ plugins:
3637
docstring_style: google
3738
rendering:
3839
show_source: true
40+
- mkdocs-jupyter:
41+
include: ["*.ipynb"]
3942

4043
markdown_extensions:
4144
- pymdownx.highlight:
4245
anchor_linenums: true
46+
line_spans: __span
47+
pygments_lang_class: true
48+
- pymdownx.arithmatex:
49+
generic: true
50+
- codehilite
51+
- markdown.extensions.def_list
4352
- pymdownx.inlinehilite
4453
- pymdownx.snippets
54+
- pymdownx.emoji
4555
- pymdownx.superfences
46-
- admonition
56+
- pymdownx.magiclink
57+
- pymdownx.keys
4758
- pymdownx.details
59+
- admonition
60+
- attr_list
61+
- tables
62+
- pymdownx.highlight:
63+
anchor_linenums: true
64+
- pymdownx.inlinehilite
65+
- pymdownx.snippets
66+
- pymdownx.superfences
67+
- admonition
68+
4869
- pymdownx.tabbed:
4970
alternate_style: true
5071
- tables
5172
- footnotes
73+
- toc:
74+
permalink: true
75+
76+
extra_javascript:
77+
- javascripts/katex.js
78+
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.js
79+
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/contrib/auto-render.min.js
80+
81+
extra_css:
82+
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.css
83+
84+
5285

5386
nav:
5487
- Home: index.md

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ docs = [
2626
"mkdocs>=1.6.1",
2727
"mkdocs-gen-files>=0.5.0",
2828
"mkdocs-jupyter>=0.25.1",
29-
"mkdocs-material>=9.6.12",
29+
"mkdocs-material[imaging]>=9.6.12",
3030
"mkdocstrings>=0.29.1",
3131
"mkdocstrings-python>=1.16.10",
3232
"pymdown-extensions>=10.15",

0 commit comments

Comments
 (0)