From d63dc04aff5479c56562a587b7973357ebb7396c Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Wed, 1 Mar 2023 09:38:32 -0600 Subject: [PATCH] Enable asset optimization (#2061) --- Brewfile.netlify | 1 + config/mkdocs.common.yml | 6 ++++-- netlify.toml | 3 --- 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 Brewfile.netlify diff --git a/Brewfile.netlify b/Brewfile.netlify new file mode 100644 index 00000000..16f4516f --- /dev/null +++ b/Brewfile.netlify @@ -0,0 +1 @@ +brew "pngquant" diff --git a/config/mkdocs.common.yml b/config/mkdocs.common.yml index a222d59f..a56656c0 100644 --- a/config/mkdocs.common.yml +++ b/config/mkdocs.common.yml @@ -66,11 +66,11 @@ plugins: macros: {} meta: {} git-committers: - enabled: !ENV [PRODUCTION, false] + enabled: !ENV [NETLIFY, false] repository: privacyguides/privacyguides.org branch: main git-revision-date-localized: - enabled: !ENV [PRODUCTION, false] + enabled: !ENV [NETLIFY, false] exclude: - index.md fallback_to_build_date: true @@ -78,6 +78,8 @@ plugins: external_assets_exclude: - cdn.jsdelivr.net/npm/mathjax@3/* - api.privacyguides.net/* + optimize: + enabled: !ENV [NETLIFY, false] markdown_extensions: admonition: {} diff --git a/netlify.toml b/netlify.toml index 473550e2..a1e52a4c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,9 +2,6 @@ publish = "site/" command = "mkdocs build --config-file config/mkdocs.en.yml && mkdocs build --config-file config/mkdocs.he.yml && mkdocs build --config-file config/mkdocs.fr.yml && mkdocs build --config-file config/mkdocs.nl.yml && mv _redirects site/" -[context.production.environment] - PRODUCTION = "true" - [[headers]] for = "/*" [headers.values]