Skip to content

Commit

Permalink
feat: add imprint
Browse files Browse the repository at this point in the history
  • Loading branch information
felixevers committed Dec 18, 2024
1 parent 765fa2c commit b8d4faf
Show file tree
Hide file tree
Showing 19 changed files with 73 additions and 94 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/latex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ on: [push, pull_request]
env:
OUTPUT_DIR: "output"
MAIN_TEX_FOLDER: "src"
IMPRINT_URL: "https://cdn.helpwave.de/imprint.json"
DEPENDENCIES: |
head.tex
version.tex
imprint.tex
logo.svg
jobs:
Expand Down Expand Up @@ -117,6 +119,21 @@ jobs:
run: |
sed -i "s/ffffff/${{ steps.get_commit_hash.outputs.commit_hash }}/" version.tex
- name: Download JSON file
run: |
curl -o imprint.json ${{ env.IMPRINT_URL }}
- name: Replace placeholders in LaTeX file
run: |
FILE_TO_UPDATE="imprint.tex"
for key in $(jq -r 'keys[]' imprint.json); do
value=$(jq -r --arg key "$key" '.[$key]' imprint.json)
placeholder=$(echo $key | tr '.' '_')
sed -i "s|{$placeholder}|{$value}|g" $FILE_TO_UPDATE
done
- name: Compile changed LaTeX documents
if: env.changed_files != ''
uses: xu-cheng/latex-action@v3
Expand Down
4 changes: 3 additions & 1 deletion head.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
\usepackage{fancyhdr}
\usepackage{longtable}


\usepackage{inter}
\renewcommand\familydefault{\sfdefault}

Expand Down Expand Up @@ -36,3 +35,6 @@

\def\Year{\expandafter\YEAR\the\year}
\def\YEAR#1#2#3#4{#1#2#3#4}

\input{version}
\input{imprint}
23 changes: 23 additions & 0 deletions imprint.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
\newcommand{\imprintURL}{imprint_url}
\newcommand{\companyName}{company_name}
\newcommand{\careOf}{care_of}
\newcommand{\street}{street}
\newcommand{\postalCode}{postal_code}
\newcommand{\city}{city}
\newcommand{\registrationNumber}{registration_number}
\newcommand{\registrationCourt}{registration_court}
\newcommand{\managingDirector}{managing_director}
\newcommand{\email}{email}
\newcommand{\vatIdentificationNumber}{vat_identification_number}

\newcommand{\imprint}{
\href{\imprintURL}{
{\small
\companyName\\
\careOf\\
\street\\
\postalCode\ \city\\
\registrationNumber
}
}
}
9 changes: 2 additions & 7 deletions src/agb_app_zum_doc.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
\documentclass[a4paper,10pt]{article}

\include{head}
\include{version}
\input{head}

\begin{document}

Expand All @@ -12,11 +11,7 @@
\huge App zum Doc \\[1ex] \Large Erbringer-Anwendung}\\[2ex]

\vspace{1em}
{\large
helpwave GmbH \\
Jülicher Straße 209d \\
52070 Aachen \\
HRB 27480}\\
\imprint
\vspace{1em}
Stand: \today
\end{center}
Expand Down
9 changes: 2 additions & 7 deletions src/agb_app_zum_doc_patient.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
\documentclass[a4paper,10pt]{article}

\include{head}
\include{version}
\input{head}

\begin{document}

Expand All @@ -12,11 +11,7 @@
\huge App zum Doc \\[1ex] \Large Erbringer-Anwendung}\\[2ex]

\vspace{1em}
{\large
helpwave GmbH \\
Jülicher Straße 209d \\
52070 Aachen \\
HRB 27480}\\
\imprint
\vspace{1em}
Stand: \today
\end{center}
Expand Down
9 changes: 2 additions & 7 deletions src/agb_mediquu_chat.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
\documentclass[a4paper,10pt]{article}

\include{head}
\include{version}
\input{head}

\begin{document}

Expand All @@ -12,11 +11,7 @@
\huge mediQuu Team: Chat}\\[2ex]

\vspace{1em}
{\large
helpwave GmbH \\
Jülicher Straße 209d \\
52070 Aachen \\
HRB 27480}\\
\imprint
\vspace{1em}
Stand: \today
\end{center}
Expand Down
9 changes: 2 additions & 7 deletions src/agb_mediquu_connect.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
\documentclass[a4paper,10pt]{article}

\include{head}
\include{version}
\input{head}

\begin{document}

Expand All @@ -12,11 +11,7 @@
\huge mediQuu Connect}\\[2ex]

\vspace{1em}
{\large
helpwave GmbH \\
Jülicher Straße 209d \\
52070 Aachen \\
HRB 27480}\\
\imprint
\vspace{1em}
Stand: \today
\end{center}
Expand Down
10 changes: 2 additions & 8 deletions src/agb_mediquu_netzmanager.tex
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
\documentclass[a4paper,10pt]{article}

\include{head}
\include{version}

\input{head}

\begin{document}

Expand All @@ -13,11 +11,7 @@
\huge mediQuu Netzmanager}\\[2ex]

\vspace{1em}
{\large
helpwave GmbH \\
Jülicher Straße 209d \\
52070 Aachen \\
HRB 27480}\\
\imprint
\vspace{1em}
Stand: \today
\end{center}
Expand Down
9 changes: 2 additions & 7 deletions src/avv.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
\documentclass[a4paper,10pt]{article}

\include{head}
\include{version}
\input{head}

\begin{document}

Expand All @@ -12,11 +11,7 @@
\vspace{1em}
\Large gemäß Art. 28 DSGVO}\\
\vspace{1em}
{\large
helpwave GmbH \\
Jülicher Straße 209s \\
52070 Aachen \\
HRB 27480}\\
\imprint
\vspace{1em}
Stand: \today
\end{center}
Expand Down
9 changes: 2 additions & 7 deletions src/avv_tasks.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
\documentclass[a4paper,10pt]{article}

\include{head}
\include{version}
\input{head}

\begin{document}

Expand All @@ -12,11 +11,7 @@
\vspace{1em}
\Large gemäß Art. 28 DSGVO}\\
\vspace{1em}
{\large
helpwave GmbH \\
Jülicher Straße 209d \\
52070 Aachen \\
HRB 27480}\\
\imprint
\vspace{1em}
Stand: \today
\end{center}
Expand Down
10 changes: 2 additions & 8 deletions src/liability.tex
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
\documentclass[a4paper,10pt]{article}

\include{head}
\include{version}
\input{head}

\begin{document}

\begin{center}
\includesvg[width=0.2\linewidth]{logo.svg}\\[4ex]
{\Huge \sffamily Haftungsvereinbarung}\\[2ex]
\textcolor{gray}{{\large \sffamily zwischen}}\\[2ex]
{\small
helpwave GmbH \\
mit Sitz in Aachen \\
HRB 27480 \\
(nachfolgend „Auftraggeber“)
}\\[2ex]
{\imprint \\ (nachfolgend „Auftraggeber“)}\\[2ex]
{\textcolor{gray}{{\large \sffamily und}}}\\[2ex]
{\small
Vorname Nachname\\
Expand Down
12 changes: 3 additions & 9 deletions src/nda.tex
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
\documentclass[a4paper,10pt]{article}

\include{head}
\include{version}
\input{head}

\begin{document}

\begin{center}
\includesvg[width=0.2\linewidth]{logo.svg}\\[4ex]
{\Huge \sffamily Vertraulichkeitsvereinbarung}\\[2ex]
\textcolor{gray}{{\large \sffamily zwischen}}\\[2ex]
{\small
helpwave GmbH \\
mit Sitz in Aachen \\
HRB 27480 \\
(nachfolgend „Inhaber“)
}\\[2ex]
{\textcolor{gray}{{\large \sffamily und}}}\\[2ex]
{\imprint \\ (nachfolgend „Inhaber“)}\\[2ex]
{\textcolor{gray}{{\large \sffamily und}}}\\[2ex]
{\small

\begin{Form}
Expand Down
7 changes: 2 additions & 5 deletions src/privacy_concept.tex
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
\documentclass[a4paper,10pt]{article}

\newcommand{\companyName}{helpwave GmbH}
\input{head}

\newcommand{\companyMail}{contact@helpwave.de}
\newcommand{\companyAddress}{\companyName \\ c/o Collective Incubator \\ Jülicher Straße 209d \\ 52070 Aachen \\ Nordrhein-Westfalen \\ Deutschland}
\newcommand{\dateOfCreation}{17.12.2024}
\newcommand{\refreshSchedule}{Jährlich}
\newcommand{\privacyPerson}{Felix Evers}
\newcommand{\privacyPersonRole}{Geschäftführer}

\include{head}
\include{version}

\begin{document}

\begin{center}
\includesvg[width=0.2\linewidth]{logo.svg}\\[4ex]
\Large \textbf{Datenschutzkonzept nach DSGVO} \\ [1em]
für\\[1em]
\companyName\\[1em]
Version: \version\\[1em]
Stand: \today \\[1em]
Verantwortlicher: \privacyPerson \\[0.5em]
Position: \privacyPersonRole
Expand Down
4 changes: 1 addition & 3 deletions src/privacy_concept_tasks.tex
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
\documentclass[a4paper,10pt]{article}

\include{head}
\include{version}
\input{head}

\newcommand{\companyName}{helpwave GmbH}
\newcommand{\companyMail}{contact@helpwave.de}
\newcommand{\companyAddress}{\companyName \\ c/o Collective Incubator \\ Jülicher Straße 209d \\ 52070 Aachen \\ Nordrhein-Westfalen \\ Deutschland}
\newcommand{\dateOfCreation}{17.12.2024}
Expand Down
12 changes: 3 additions & 9 deletions src/privacy_confirmation.tex
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
\documentclass[a4paper,10pt]{article}

\include{head}
\include{version}
\input{head}

\begin{document}

\begin{center}
\includesvg[width=0.2\linewidth]{logo.svg}\\[4ex]
{\Huge \sffamily Bestätigung der Datenschutzschulung}\\[2ex]
\textcolor{gray}{{\large \sffamily zwischen}}\\[2ex]
{\small
helpwave GmbH \\
mit Sitz in Aachen \\
HRB 27480 \\
(nachfolgend „Auftraggeber“)
}\\[2ex]
{\textcolor{gray}{{\large \sffamily und}}}\\[2ex]
{\imprint \\(nachfolgend „Auftraggeber“)}\\[2ex]
{\textcolor{gray}{{\large \sffamily und}}}\\[2ex]
{\small
Vorname Nachname\\
(nachfolgend „Auftragnehmer“)}\\[2ex]
Expand Down
6 changes: 2 additions & 4 deletions src/product_termination.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
\documentclass[a4paper,10pt]{article}

\newcommand{\companyName}{helpwave GmbH}
\input{head}

\newcommand{\companyAddress}{\companyName\\ c/o Collective Incubator\\ Jülicher Straße 209d\\ 52070 Aachen}
\newcommand{\companyCEO}{Felix Evers}
\newcommand{\companyEmail}{contact@helpwave.de}
Expand All @@ -12,9 +13,6 @@
\newcommand{\terminationDate}{DD.MM.YYYY}
\newcommand{\currentDate}{\today}

\include{head}
\include{version}

\begin{document}

\vspace{0.5cm}
Expand Down
3 changes: 1 addition & 2 deletions src/sub.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
\documentclass[a4paper,10pt]{article}

\include{head}
\include{version}
\input{head}

\begin{document}

Expand Down
3 changes: 1 addition & 2 deletions src/tom.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
\documentclass[a4paper,10pt]{article}

\include{head}
\include{version}
\input{head}

\begin{document}

Expand Down
2 changes: 1 addition & 1 deletion version.tex
Original file line number Diff line number Diff line change
@@ -1 +1 @@
\newcommand{\version}{\texttt{ffffff}}
\newcommand{\version}{\href{https://github.com/helpwave/legal/commit/ffffff}{\texttt{ffffff}}}

0 comments on commit b8d4faf

Please sign in to comment.