Repository navigation
Expand file tree
/
Copy pathmkdocs.yml
More file actions
148 lines (140 loc) 路 4.67 KB
/
Copy pathmkdocs.yml
File metadata and controls
148 lines (140 loc) 路 4.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# Project information
site_name: EasyScience Library
site_url: https://easyscience.github.io/corelib
# Repository
repo_url: https://github.com/easyscience/corelib
edit_uri: edit/develop/docs/
# Copyright
copyright: 漏 2025 EasyScience
# Sets the theme and theme-specific configuration
theme:
name: material
custom_dir: overrides
features:
#- content.action.edit # Temporary disable edit button (until decided on which branch to use and where to host the notebooks)
#- content.action.view
- content.code.annotate
- content.code.copy # Auto generated button to copy a code block's content
- content.tooltips
- navigation.footer
- navigation.indexes
#- navigation.sections
- navigation.top # Back-to-top button
- navigation.tracking # Anchor tracking
- search.highlight
- search.share
- search.suggest
- toc.follow
palette:
# Palette toggle for light mode
- media: '(prefers-color-scheme: light)'
scheme: default
primary: custom
toggle:
icon: fontawesome/solid/sun
name: Switch to dark mode
# Palette toggle for dark mode
- media: '(prefers-color-scheme: dark)'
scheme: slate
primary: custom
toggle:
icon: fontawesome/solid/moon
name: Switch to light mode
font:
text: Mulish
code: Roboto Mono
icon:
edit: material/file-edit-outline
favicon: assets/images/favicon.png
logo_dark_mode: assets/images/logo_dark.svg
logo_light_mode: assets/images/logo_light.svg
# A set of key-value pairs, where the values can be any valid YAML
# construct, that will be passed to the template
extra:
generator: false # Disable `Made with Material for MkDocs` (bottom left)
social: # Icons (bottom right)
- icon: easyscience # File: overrides/.icons/easyscience.svg
link: https://easyscience.software
name: EasyScience Framework Webpage
# Set custom variables to be used in Markdown and HTML files
vars:
ci_branch: !ENV ${CI_BRANCH}
github_repository: !ENV ${GITHUB_REPOSITORY}
release_version: !ENV ${RELEASE_VERSION}
docs_version: !ENV ${DOCS_VERSION}
notebooks_dir: !ENV ${NOTEBOOKS_DIR}
# Renders a version selector in the header
version:
provider: mike
# Customization to be included by the theme
extra_css:
- assets/stylesheets/extra.css
extra_javascript:
- assets/javascripts/extra.js
# A list of extensions beyond the ones that MkDocs uses by default (meta, toc, tables, and fenced_code)
markdown_extensions:
- abbr
- admonition
- attr_list
- def_list
- footnotes
- pymdownx.blocks.caption
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
options:
custom_icons:
- overrides/.icons
- pymdownx.highlight: # whether highlighting should be carried out during build time by Pygments
use_pygments: true
pygments_lang_class: true
- pymdownx.snippets:
auto_append:
- includes/abbreviations.md
- pymdownx.superfences: # whether highlighting should be carried out during build time by Pygments
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed: # enables content tabs
alternate_style: true
- pymdownx.tasklist:
custom_checkbox: true
- toc:
toc_depth: 3
# A list of plugins (with optional configuration settings) to use when building the site
plugins:
- autorefs
- inline-svg
- markdownextradata # Plugin that injects the mkdocs.yml extra variables into the Markdown template
- mike # Plugin that makes it easy to deploy multiple versions of the docs
- mkdocs-jupyter:
include: ['*.ipynb'] # Default: ['*.py', '*.ipynb']
execute: true
allow_errors: false
include_source: true
include_requirejs: true # Required for Plotly
custom_mathjax_url: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?config=TeX-AMS_CHTML-full,Safe'
ignore_h1_titles: true # Use titles defined in the nav section below
remove_tag_config:
remove_input_tags:
- hide-in-docs
- mkdocstrings:
handlers:
python:
paths: ["src"] # Change "src" to your actual sources directory
options:
docstring_style: google
group_by_category: false
heading_level: 1
show_root_heading: true
show_root_full_path: false
show_submodules: true
show_source: true
- search
# Determines additional directories to watch when running mkdocs serve
watch:
- includes
- overrides
- src