diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index f28f5a0..a031bd3 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -38,6 +38,9 @@ jobs: - name: Build Documentation run: msbuild /p:Configuration=Release documentation\Cpacs_doc_project.shfbproj + - name: Add dsgvo footer to html docs + run: python .\documentation\Cpacs_doc_dsgvo.py + - name: Package HTML Docs run: 7z a -tzip .\build\doc\htmlDocs.zip .\build\doc\* diff --git a/documentation/Cpacs_doc_dsgvo.py b/documentation/Cpacs_doc_dsgvo.py new file mode 100644 index 0000000..1e49134 --- /dev/null +++ b/documentation/Cpacs_doc_dsgvo.py @@ -0,0 +1,41 @@ +import os +import re + +# ============================================================================================== +# DSGVO +# This script modifies the CPACS documentation so that it contains a dsgvo-conform footer +# ============================================================================================== + +def replace_page_footer(file_path): + with open(file_path, 'r', encoding='utf-8') as file: + content = file.read() + + pattern = r'