From db58a01d80c6624cb1d0ab6f3f69a272c8234cd3 Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Wed, 24 May 2023 20:36:14 -0500 Subject: [PATCH] Fix security.txt --- netlify.toml | 4 ++-- .../openpgpkey/hu/dnrefmbtd6i58w8xfy4imj94cmbw3u3h | Bin {theme => static}/.well-known/openpgpkey/policy | 0 {theme => static}/.well-known/security.txt | 0 _redirects => static/_redirects | 1 + 5 files changed, 3 insertions(+), 2 deletions(-) rename {theme => static}/.well-known/openpgpkey/hu/dnrefmbtd6i58w8xfy4imj94cmbw3u3h (100%) rename {theme => static}/.well-known/openpgpkey/policy (100%) rename {theme => static}/.well-known/security.txt (100%) rename _redirects => static/_redirects (99%) diff --git a/netlify.toml b/netlify.toml index 314fddf604..4ffcecb4e8 100644 --- a/netlify.toml +++ b/netlify.toml @@ -20,10 +20,10 @@ [build] publish = "site/" - command = "crowdin download && mkdocs build --config-file config/mkdocs.en.yml && mkdocs build --config-file config/mkdocs.es.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/" + command = "crowdin download && mkdocs build --config-file config/mkdocs.en.yml && mkdocs build --config-file config/mkdocs.es.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 static/* site/" [context.deploy-preview] - command = "mkdocs build --config-file config/mkdocs.en.yml && mv _redirects site/" + command = "mkdocs build --config-file config/mkdocs.en.yml && mv static/* site/" [[headers]] for = "/*" diff --git a/theme/.well-known/openpgpkey/hu/dnrefmbtd6i58w8xfy4imj94cmbw3u3h b/static/.well-known/openpgpkey/hu/dnrefmbtd6i58w8xfy4imj94cmbw3u3h similarity index 100% rename from theme/.well-known/openpgpkey/hu/dnrefmbtd6i58w8xfy4imj94cmbw3u3h rename to static/.well-known/openpgpkey/hu/dnrefmbtd6i58w8xfy4imj94cmbw3u3h diff --git a/theme/.well-known/openpgpkey/policy b/static/.well-known/openpgpkey/policy similarity index 100% rename from theme/.well-known/openpgpkey/policy rename to static/.well-known/openpgpkey/policy diff --git a/theme/.well-known/security.txt b/static/.well-known/security.txt similarity index 100% rename from theme/.well-known/security.txt rename to static/.well-known/security.txt diff --git a/_redirects b/static/_redirects similarity index 99% rename from _redirects rename to static/_redirects index 8e0af82a1d..a2fcd14dce 100644 --- a/_redirects +++ b/static/_redirects @@ -26,6 +26,7 @@ / /en/ 302 /.well-known/matrix/* https://matrix.privacyguides.org/.well-known/matrix/:splat 200 +/security.txt /.well-known/security.txt /kb /en/basics/why-privacy-matters/ /:lang/kb /:lang/basics/why-privacy-matters/