Skip to content
Snippets Groups Projects
Commit b970a7fa authored by Jesper Zedlitz's avatar Jesper Zedlitz
Browse files

Anleitung zum Bauen an neuere Softwareversionen angepasst

parent 9a8f8883
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ pdf: clean temp/date.txt parts/latex_impressum.md | temp
@echo "replacing star characters ..."
@sed -E 's/★/$$\\star$$/g' temp/leitfaden-opendata_05.md > temp/leitfaden-opendata_06.md
@echo "creating pdf ..."
@pandoc --listings -H template/listings-setup.tex -V lang=de --template=template/default.latex --variable urlcolor=cyan temp/leitfaden-opendata_06.md template/metadata.yml --pdf-engine=pdflatex --toc --resource-path=static -o temp/ergebnis.pdf
@pandoc --listings -H `pwd`/template/listings-setup.tex -V lang=de --template=template/default.latex --variable urlcolor=cyan temp/leitfaden-opendata_06.md template/metadata.yml --pdf-engine=pdflatex --toc --resource-path=static -o temp/ergebnis.pdf
@echo "adding title page"
@pdfunite titelblatt.pdf temp/ergebnis.pdf public/leitfaden-opendata.pdf
......
......@@ -8,6 +8,8 @@ The following versions exist:
- A PDF document generated directly from the source via [pandoc](https://pandoc.org) (and additional processing - see [Makefile](/Makefile) for details).
- An HTML version generated directly from the source via the static website generator [Hugo](https://gohugo.io) - available online here: https://opendata.zitsh.de/leitfaden/
**The main content file is [leitfaden-opendata.md](leitfaden-opendata.md).**
## Building
You need a few prerequisites to build the _Open-Data-Leitfaden Schleswig-Holstein_.
......@@ -18,12 +20,13 @@ On a *Ubuntu 20.04 LTS* system the following packages have to be installed:
sudo apt install make librsvg2-bin poppler-utils pandoc pdflatex hugo
```
On a *Alpine Linux edge* system the build environment can be prepared this way:
On a *Alpine Linux 3.18.4* system the build environment can be prepared this way:
```bash
apk add ruby texlive make librsvg hugo texmf-dist-fontsextra poppler-utils
wget https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-linux-amd64.tar.gz
cp pandoc-2.18/bin/pandoc /usr/local/bin/
wget https://github.com/jgm/pandoc/releases/download/3.1.9/pandoc-3.1.9-linux-amd64.tar.gz
tar xfz pandoc-3.1.9-linux-amd64.tar.gz
cp pandoc-3.1.9/bin/pandoc /usr/local/bin/
```
You can create the PDF document:
......@@ -48,9 +51,16 @@ The resulting HTML files can be found in the `public/` directory.
You can also run Hugo in _live mode_ and serve the content at http://localhost:1313/leitfaden/ by using the command `make serve-web`.
## Commons errors
```
File template/listings-setup.tex not found in resource path
```
## License
The text, all markdown sources and PDF artifacts of the _Open-Data-Leitfaden Schleswig-Holstien_ are published under [Creative Commons Namensnennung 4.0 International Lizenz](https://creativecommons.org/licenses/by/4.0/deed.de) (CC BY 4.0).
The text, all markdown sources and PDF artifacts of the _Open-Data-Leitfaden Schleswig-Holstein_ are published under [Creative Commons Namensnennung 4.0 International Lizenz](https://creativecommons.org/licenses/by/4.0/deed.de) (CC BY 4.0).
For the licenses to the images contained in the _Open-Data-Leitfaden Schleswig-Holstein_, please refer to the [Bildverzeichnis](https://berlinonline.github.io/open-data-handbuch/#bildverzeichnis).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment