Skip to content

Commit

Permalink
docs: finally fix minify html/css?
Browse files Browse the repository at this point in the history
  • Loading branch information
Omnikron13 committed May 28, 2024
1 parent 4a6c6d5 commit 03e15e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 24 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build-and-deploy-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,6 @@ jobs:
- name: Generate site files
run: mkdocs build

- name: HTML/CSS/JS Minifier
uses: docker://devatherock/minify-js:3.1.0
with:
directory: 'site/'
add_suffix: false
exclusions: |
*.js
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
Expand Down
26 changes: 10 additions & 16 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,16 @@ nav:
- 󰭷 Introduction: index.md
- 󱚊 Specifications: specifications/index.md

#plugins:
# - search:
# enabled: true
# - minify:
# minify_html: true
#minify_js: true
#minify_css: true
#htmlmin_opts:
# remove_comments: true
#cache_safe: true
#js_files:
# - assets/**/*.js
# - assets/**/*.ts
# - assets/**javascript/*.tsx
#css_files:
# - assets/**/*.css
plugins:
- search:
enabled: true
- minify:
minify_html: true
minify_js: true
js_files:
- assets/javascript/*.js
- assets/javascript/*.ts
- assets/javascript/*.tsx

# Leverage the impressive feature set of the material theme (though the actual theming needs some work...)
theme:
Expand Down

0 comments on commit 03e15e3

Please sign in to comment.