From 324121f11f6673e6a0a2868b4dde66520529a0e6 Mon Sep 17 00:00:00 2001 From: Chris Butler Date: Fri, 8 Nov 2024 09:20:11 +0900 Subject: [PATCH] fix: minimize website html during build (#1744) Signed-off-by: Chris Butler --- mkdocs.yml | 8 ++++++++ setup.cfg | 1 + 2 files changed, 9 insertions(+) diff --git a/mkdocs.yml b/mkdocs.yml index a404d5fd9..51c762f3e 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -53,6 +53,14 @@ plugins: - '!^__json' - '!^__config__' new_path_syntax: true +- minify: + minify_html: true + minify_js: false + minify_css: true + css_files: + - css/mkdocstrings.css + htmlmin_opts: + remove_comments: true repo_name: oscal-compass/compliance-trestle repo_url: https://github.com/oscal-compass/compliance-trestle site_description: Documentation for compliance-trestle package. diff --git a/setup.cfg b/setup.cfg index 884b5d9ee..d965db771 100644 --- a/setup.cfg +++ b/setup.cfg @@ -85,6 +85,7 @@ dev = mkdocs-htmlproofer-plugin mkdocs-material markdown-include + mkdocs-minify-plugin mkdocs-git-revision-date-localized-plugin pymdown-extensions livereload