Skip to content

Commit

Permalink
🔒️ security(docs): attempt to add secure headers to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jzazo committed Oct 28, 2024
1 parent 2e68a75 commit 939b483
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.venv
.coverage
.tmp
.cache

**/*.pyc
**/*.egg-info
Expand Down
2 changes: 2 additions & 0 deletions docs/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*
Strict-Transport-Security: max-age=31536000; includeSubDomains
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,5 @@ markdown_extensions:
# <div id="center_copyright"><a href="https://go.microsoft.com/fwlink/?LinkId=521839">Privacy & Cookies</a> | <a href="https://go.microsoft.com/fwlink/?linkid=2259814">Consumer Health Privacy</a> | <a href="https://www.microsoft.com/trademarks">Trademarks</a> | <a href="https://go.microsoft.com/fwlink/?LinkID=206977">Terms of use</a> | © 2024 Microsoft</div>
extra:
generator: false
include:
- _headers
1 change: 1 addition & 0 deletions template/.gitignore.jinja
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.venv
.coverage
.tmp
.cache

**/*.pyc
**/*.egg-info
Expand Down
2 changes: 2 additions & 0 deletions template/{% if documentation %}mkdocs.yml{% endif %}.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,6 @@ copyright: |
<div id="center_copyright"><a href="https://go.microsoft.com/fwlink/?LinkId=521839">Privacy & Cookies</a> | <a href="https://go.microsoft.com/fwlink/?linkid=2259814">Consumer Health Privacy</a> | <a href="https://www.microsoft.com/trademarks">Trademarks</a> | <a href="https://go.microsoft.com/fwlink/?LinkID=206977">Terms of use</a> | © 2024 Microsoft</div>
extra:
generator: false
include:
- _headers
{%- endif %}

0 comments on commit 939b483

Please sign in to comment.