Compare commits
No commits in common. "b1a13911c2a308783edca8cd2dca2a22f570e4bd" and "bdef0b5d4223e22b5df1378f52e8f2d6fc77abb7" have entirely different histories.
b1a13911c2
...
bdef0b5d42
4 changed files with 3 additions and 39 deletions
|
@ -30,8 +30,7 @@
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"Gruntfuggly.todo-tree",
|
"Gruntfuggly.todo-tree",
|
||||||
"mhutchie.git-graph",
|
"mhutchie.git-graph"
|
||||||
"timonwong.shellcheck"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
25
Dockerfile
25
Dockerfile
|
@ -1,25 +0,0 @@
|
||||||
FROM docker.io/ldericher/autodoc:0.8-diagram
|
|
||||||
|
|
||||||
# install pdfa tools as per https://stackoverflow.com/a/39420880
|
|
||||||
COPY --chown=root:root \
|
|
||||||
deploy/pdfa \
|
|
||||||
/opt/pdfa
|
|
||||||
|
|
||||||
# install TeXoffice
|
|
||||||
COPY --chown=root:root \
|
|
||||||
deploy/texoffice \
|
|
||||||
/opt/texlive/texdir/texmf-dist/tex/latex/texoffice
|
|
||||||
|
|
||||||
# install lenaisten directory
|
|
||||||
COPY --chown=root:root \
|
|
||||||
src/lenaisten \
|
|
||||||
/opt/lenaisten
|
|
||||||
|
|
||||||
# install pandoc templates
|
|
||||||
COPY --chown=root:root \
|
|
||||||
src/lev-protokoll.latex \
|
|
||||||
/usr/local/share/pandoc/templates
|
|
||||||
|
|
||||||
RUN set -ex; \
|
|
||||||
# reindex TeXlive (installed TeXoffice)
|
|
||||||
/opt/texlive/texdir/bin/default/texconfig rehash;
|
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
script="$( readlink -f "${0}" )"
|
|
||||||
script_dir="$( dirname "${script}" )"
|
|
||||||
|
|
||||||
docker buildx build \
|
|
||||||
--pull --push \
|
|
||||||
--tag "code.lenaisten.de/lenaisten/lev-templates:latest" \
|
|
||||||
--platform "linux/amd64" \
|
|
||||||
"${script_dir}/.."
|
|
|
@ -15,8 +15,8 @@ txt = Path(args.file).read_text()
|
||||||
|
|
||||||
# redaction syntax
|
# redaction syntax
|
||||||
import re
|
import re
|
||||||
inlinepat = re.compile(r"\(\(\((?:(.+?):::)?(.+?)\)\)\)", re.MULTILINE|re.DOTALL)
|
inlinepat = re.compile(r"\(\(\((([^>]*?):::)?(.*?)\)\)\)", re.MULTILINE|re.DOTALL)
|
||||||
tokenpat = re.compile(r"\[redact(:::(.+?))?\](.+?)\[\/redact\]", re.MULTILINE|re.DOTALL)
|
tokenpat = re.compile(r"\[redact(:::(.*?))?\](.*?)\[\/redact\]", re.MULTILINE|re.DOTALL)
|
||||||
|
|
||||||
# match handling
|
# match handling
|
||||||
def subredact(match):
|
def subredact(match):
|
||||||
|
|
Loading…
Reference in a new issue