Skip to content

Commit

Permalink
refine config
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhizhou committed Dec 8, 2023
1 parent b20ad79 commit 0647b96
Show file tree
Hide file tree
Showing 2,061 changed files with 7,240 additions and 68 deletions.
7 changes: 7 additions & 0 deletions config/mkdocs.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ copyright: >
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank">
Material for MkDocs
</a>
watch:
- ../docs
- ../config
- ../overrides
- ../includes

64 changes: 64 additions & 0 deletions config/mkdocs.extensions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
INHERIT: ./mkdocs.base.yml

markdown_extensions:
- abbr
- pymdownx.snippets:
check_paths: true
auto_append:
- includes/abbreviations.md
- admonition
- attr_list
- def_list
- footnotes
- md_in_html
- toc:
permalink: true
title: On this page
permalink_title: Anchor link to this section for reference
toc_depth: 3
slugify: !!python/object/apply:pymdownx.slugs.slugify
kwds:
case: lower
- tables
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.arithmatex:
generic: true
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.mark
- pymdownx.tilde
- pymdownx.critic:
mode: view
- 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:
use_pygments: true
pygments_lang_class: true
auto_title: true
linenums: true
linenums_style: pymdownx-inline
anchor_linenums: true
line_spans: __span
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.magiclink
- pymdownx.smartsymbols
- pymdownx.tabbed:
alternate_style: true
combine_header_slug: true
slugify: !!python/object/apply:pymdownx.slugs.slugify
kwds:
case: lower
- pymdownx.tasklist:
custom_checkbox: true
clickable_checkbox: true
6 changes: 6 additions & 0 deletions config/mkdocs.extra.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
INHERIT: ./mkdocs.extensions.yml

extra_javascript:
- javascripts/mathjax.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
65 changes: 2 additions & 63 deletions config/mkdocs.extra.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
INHERIT: ./mkdocs.base.yml

plugins:
- search
- offline
# - mike
# - blog
# - meta
# - optimize
# - blog
# - social
# - privacy
INHERIT: ./mkdocs.extra.js.yml

extra:
consent:
Expand All @@ -30,54 +19,4 @@ extra:
link: https://github.com/wangzhizhou
generator: false
# version:
# provider: mike

markdown_extensions:
- abbr
- admonition
- attr_list
- def_list
- footnotes
- md_in_html
- tables
- toc:
permalink: true
title: On this page
permalink_title: Anchor link to this section for reference
- 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.arithmatex:
generic: true
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.mark
- pymdownx.tilde
- pymdownx.critic
- pymdownx.details
- pymdownx.magiclink
- pymdownx.smartsymbols
- pymdownx.keys
- pymdownx.highlight:
anchor_linenums: true
linenums: true
use_pygments: true
auto_title: true
linenums_style: pymdownx-inline
pygments_lang_class: true
line_spans: __span
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tabbed:
alternate_style: true

extra_javascript:
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
# provider: mike
12 changes: 12 additions & 0 deletions config/mkdocs.plugins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
INHERIT: ./mkdocs.extra.yml

plugins:
- search
- offline
# - mike
# - blog
# - meta
# - optimize
# - blog
# - social
# - privacy
2 changes: 1 addition & 1 deletion config/mkdocs.theme.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
INHERIT: ./mkdocs.extra.yml
INHERIT: ./mkdocs.plugins.yml

theme:
name: material
Expand Down
16 changes: 16 additions & 0 deletions docs/javascripts/mathjax.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
window.MathJax = {
tex: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
processEscapes: true,
processEnvironments: true
},
options: {
ignoreHtmlClass: ".*|",
processHtmlClass: "arithmatex"
}
};

document$.subscribe(() => {
MathJax.typesetPromise()
})
2 changes: 2 additions & 0 deletions includes/abbreviations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*[Vapor]: Vapor is an HTTP web framework for Swift. It provides a beautifully expressive and easy-to-use foundation for your next website, API, or cloud project.
*[Swift]: Swift is a general-purpose programming language that's approachable for newcomers and powerful for experts. It is fast, modern, safe, and a joy to write.
4 changes: 4 additions & 0 deletions overrides/.icons/bootstrap/0-circle-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions overrides/.icons/bootstrap/0-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions overrides/.icons/bootstrap/0-square-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions overrides/.icons/bootstrap/0-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/1-circle-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/1-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/1-square-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions overrides/.icons/bootstrap/1-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/123.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/2-circle-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/2-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/2-square-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions overrides/.icons/bootstrap/2-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/3-circle-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions overrides/.icons/bootstrap/3-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/3-square-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions overrides/.icons/bootstrap/3-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/4-circle-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions overrides/.icons/bootstrap/4-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions overrides/.icons/bootstrap/4-square-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions overrides/.icons/bootstrap/4-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/5-circle-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/5-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/5-square-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions overrides/.icons/bootstrap/5-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/6-circle-fill.svg
3 changes: 3 additions & 0 deletions overrides/.icons/bootstrap/6-circle.svg
Loading

0 comments on commit 0647b96

Please sign in to comment.