Skip to content

Commit

Permalink
fix: build failing
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Aug 17, 2023
1 parent 9ca4797 commit 660098b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 11 deletions.
18 changes: 18 additions & 0 deletions docs/js/mathjax.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
window.MathJax = {
tex: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
processEscapes: true,
processEnvironments: true
},
options: {
ignoreHtmlClass: ".*|",
processHtmlClass: "arithmatex"
}
};

document$.subscribe(() => {


MathJax.typesetPromise()
})
32 changes: 23 additions & 9 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
site_name: "MRIQC :: SOPs"
site_description: Templates and bootstrapping documentation for MRI standard operating procedures (SOPs)
site_name: "SOPs template (cookiecutter)"
site_description: Templates and bootstrapping documentation for standard operating procedures (SOPs)
site_author: The NiPreps developers
site_url: https://nipreps.org/mriqc-sops
site_url: https://www.nipreps.org/sops-cookiecutter/
google_analytics: ['UA-170131052-1', 'www.nipreps.org']

# Copyright
copyright: Copyright © 2022
copyright: Copyright © 2023

nav:
- Home: index.md
Expand All @@ -24,12 +24,26 @@ theme:
name: material
features:
- tabs
- content.code.copy
- content.code.annotate

plugins:
- search

markdown_extensions:
- admonition
- attr_list
- footnotes
- toc:
permalink: true
- pymdownx.arithmatex:
generic: true
- pymdownx.details
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.snippets
- pymdownx.superfences:
custom_fences:
- name: mermaid
Expand All @@ -39,16 +53,16 @@ markdown_extensions:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
- pymdownx.tabbed
- pymdownx.highlight
- pymdownx.snippets
- pymdownx.tasklist:
custom_checkbox: true
clickable_checkbox: true
- markdown_include.include:
base_path: docs

plugins:
- toc-sidebar

extra_css:
- stylesheets/extra.css

extra_javascript:
- js/mathjax.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
markdown-include
mkdocs
mkdocs-material
markdown-include
git+https://github.com/Mandy91/mkdocs-toc-sidebar-plugin.git@drop_python_2.7_support#egg=mkdocs-toc-sidebar-plugin
pygments

0 comments on commit 660098b

Please sign in to comment.