From 03e15e3907b6bef8a1b2c8d52ed93f81741bbba3 Mon Sep 17 00:00:00 2001 From: Joey Sabey Date: Tue, 28 May 2024 20:22:17 +0100 Subject: [PATCH] docs: finally fix minify html/css? --- .github/workflows/build-and-deploy-manual.yml | 8 ------ mkdocs.yml | 26 +++++++------------ 2 files changed, 10 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build-and-deploy-manual.yml b/.github/workflows/build-and-deploy-manual.yml index f968c77..ec588d4 100644 --- a/.github/workflows/build-and-deploy-manual.yml +++ b/.github/workflows/build-and-deploy-manual.yml @@ -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/upload-pages-artifact@v3.0.1 with: diff --git a/mkdocs.yml b/mkdocs.yml index 7ac8a6b..7c844c3 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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: