Skip to content

Commit

Permalink
Update: Add code highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkHoo committed Sep 1, 2024
1 parent 9035f2e commit 6b8e761
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ site_url: https://manim.markhoo.cn
repo_url: https://github.com/MarkHoo/manim-docs-zh-hans
edit_uri: edit/main/docs/

markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
auto_title: true
linenums: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
- pymdownx.tasklist:
custom_checkbox: true

theme:
name: material
language: zh
Expand All @@ -29,29 +42,31 @@ theme:
- search.highlight
- search.share
- navigation.footer
- content.code.copy


palette:
palette:
# Palette toggle for dark mode
- scheme: slate
primary: black
accent: indigo
toggle:
icon: material/weather-sunny
name: 切换到浅色模式

# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
- scheme: default
primary: white
accent: indigo
scheme: default
toggle:
icon: material/weather-night
name: 切换到深色模式

# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
primary: black
accent: indigo
scheme: slate
toggle:
icon: material/weather-sunny
name: 切换到浅色模式

# font: false
font:
text: Roboto
code: Roboto Mono


extra:
Expand Down

0 comments on commit 6b8e761

Please sign in to comment.