Skip to content

Commit

Permalink
feat: add mkdocs-minify-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Dec 2, 2023
1 parent 735d9f9 commit cc2b7a1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
with:
python-version: 3.x

- run: pip install mkdocs-material
- run: pip install mkdocs-material mkdocs-minify-plugin
- run: mkdocs gh-deploy --force
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@

### macOS ###
**/.DS_Store

### MKDocs ##
/site
8 changes: 8 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ markdown_extensions:
permalink: true
slugify: !!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}}

plugins:
- minify:
minify_html: true
minify_js: true
minify_css: true
htmlmin_opts:
remove_comments: true
cache_safe: true

extra_javascript:
- scripts/mathjax.js
Expand Down

0 comments on commit cc2b7a1

Please sign in to comment.