From 88edf5994c123314cc3b18621352dd118bec2b99 Mon Sep 17 00:00:00 2001 From: Harry Mellor <19981378+hmellor@users.noreply.github.com> Date: Wed, 30 Jul 2025 15:35:08 +0100 Subject: [PATCH] [Docs] Reduce the size of the built docs (#21920) Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> --- mkdocs.yaml | 7 +++++++ requirements/docs.txt | 1 + 2 files changed, 8 insertions(+) diff --git a/mkdocs.yaml b/mkdocs.yaml index 78f1c5b77cd07..e5b7454003310 100644 --- a/mkdocs.yaml +++ b/mkdocs.yaml @@ -67,6 +67,13 @@ plugins: exclude: - argparse/* - examples/* + - minify: + minify_html: true + minify_js: true + minify_css: true + cache_safe: true + js_files: [docs/mkdocs/javascript/*.js] + css_files: [docs/mkdocs/stylesheets/*.css] # For API reference generation - api-autonav: modules: ["vllm"] diff --git a/requirements/docs.txt b/requirements/docs.txt index 9e56c9573b33b..4d4fc7da6816d 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -6,6 +6,7 @@ mkdocs-gen-files mkdocs-awesome-nav mkdocs-glightbox mkdocs-git-revision-date-localized-plugin +mkdocs-minify-plugin python-markdown-math regex ruff