1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

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) { tasks.register('updatePrivacy', Exec) {
workingDir "${rootDir}" 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) { 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;} div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;} ul.task-list{list-style: none;}
</style> </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"> <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> </head>
<body> <body>
<header id="title-block-header"> <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>
---