diff --git a/.gitignore b/.gitignore index e8916d1..005873a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .venv .coverage .tmp +.cache **/*.pyc **/*.egg-info diff --git a/docs/_headers b/docs/_headers new file mode 100644 index 0000000..c9fab33 --- /dev/null +++ b/docs/_headers @@ -0,0 +1,2 @@ +/* + Strict-Transport-Security: max-age=31536000; includeSubDomains diff --git a/mkdocs.yml b/mkdocs.yml index d6ca0db..bbd0dea 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -115,3 +115,5 @@ markdown_extensions: #
extra: generator: false + include: + - _headers diff --git a/template/.gitignore.jinja b/template/.gitignore.jinja index 7cb4a14..4c8bd1e 100644 --- a/template/.gitignore.jinja +++ b/template/.gitignore.jinja @@ -1,6 +1,7 @@ .venv .coverage .tmp +.cache **/*.pyc **/*.egg-info diff --git a/template/{% if documentation %}mkdocs.yml{% endif %}.jinja b/template/{% if documentation %}mkdocs.yml{% endif %}.jinja index 9ba1f5b..340c39d 100644 --- a/template/{% if documentation %}mkdocs.yml{% endif %}.jinja +++ b/template/{% if documentation %}mkdocs.yml{% endif %}.jinja @@ -109,4 +109,6 @@ copyright: | extra: generator: false + include: + - _headers {%- endif %}