From ae926d869f6fe3ef7b66788f5303b93836fbaeaf Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 18 Feb 2024 09:19:43 +0100 Subject: [PATCH] Simplify privacy policy generation --- app/build.gradle | 2 +- privacy/header.html | 1 - privacy/index.html | 9 ++++++++- privacy/privacy.css | 24 ------------------------ privacy/privacy.yaml | 12 ++++++++++++ 5 files changed, 21 insertions(+), 27 deletions(-) delete mode 100644 privacy/header.html delete mode 100644 privacy/privacy.css create mode 100644 privacy/privacy.yaml diff --git a/app/build.gradle b/app/build.gradle index 1f410bd964..f9c5b55243 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -400,7 +400,7 @@ tasks.register('updateFAQ', Exec) { tasks.register('updatePrivacy', Exec) { workingDir "${rootDir}" - commandLine 'sh', '-c', 'pandoc --standalone --metadata title="FairEmail" -H privacy/header.html --css=privacy.css PRIVACY.md -o privacy/index.html' + commandLine 'sh', '-c', 'pandoc --standalone --metadata title="FairEmail" --metadata-file privacy/privacy.yaml PRIVACY.md -o privacy/index.html' } tasks.register('updateCrowdin', Exec) { diff --git a/privacy/header.html b/privacy/header.html deleted file mode 100644 index 6c3b31f8b2..0000000000 --- a/privacy/header.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/privacy/index.html b/privacy/index.html index 0f415346bc..806675cae2 100644 --- a/privacy/index.html +++ b/privacy/index.html @@ -13,8 +13,15 @@ div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} ul.task-list{list-style: none;} - +
diff --git a/privacy/privacy.css b/privacy/privacy.css deleted file mode 100644 index 6ac164c0f1..0000000000 --- a/privacy/privacy.css +++ /dev/null @@ -1,24 +0,0 @@ -body { - font-family: Arial, sans-serif; -} - -.table-wrapper { - overflow-x: auto; - white-space: nowrap; -} - -table { - border-collapse: collapse; -} - -table colgroup col { - width: auto !important; -} - -table, th, td { - border: 1px solid black; -} - -td { - padding: 3px; -} diff --git a/privacy/privacy.yaml b/privacy/privacy.yaml new file mode 100644 index 0000000000..ec0ecf2c2f --- /dev/null +++ b/privacy/privacy.yaml @@ -0,0 +1,12 @@ +--- +header-includes: | + + +---