Simplify privacy policy generation

This commit is contained in:
M66B 2024-02-18 09:19:43 +01:00
parent be6d8e1eb3
commit ae926d869f
5 changed files with 21 additions and 27 deletions

View File

@ -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) {

View File

@ -1 +0,0 @@
<link rel="shortcut icon" href="https://raw.githubusercontent.com/M66B/FairEmail/master/app/src/main/ic_launcher-web.png">

View File

@ -13,8 +13,15 @@
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
</style>
<link rel="stylesheet" href="privacy.css" />
<link rel="shortcut icon" href="https://raw.githubusercontent.com/M66B/FairEmail/master/app/src/main/ic_launcher-web.png">
<style>
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; }
</style>
</head>
<body>
<header id="title-block-header">

View File

@ -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;
}

12
privacy/privacy.yaml Normal file
View File

@ -0,0 +1,12 @@
---
header-includes: |
<link rel="shortcut icon" href="https://raw.githubusercontent.com/M66B/FairEmail/master/app/src/main/ic_launcher-web.png">
<style>
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; }
</style>
---