-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
86 lines (75 loc) · 2.55 KB
/
compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3'
x-anchor:
depends: &depends
condition: service_completed_successfully
service: &service
entrypoint: sh -e -c
network_mode: bridge
volumes: [.:/mnt/repo]
working_dir: /mnt/repo
services:
typedoc:
<<: *service
image: node:latest
command:
- |
cd $$(mktemp -d)
git clone -b $SGRUD_TAG $SGRUD_GIT .
npm pack /mnt/repo/res/typedoc-theme
npm install *.tgz && npm install
npx typedoc \
--githubPages false \
--gitRevision $SGRUD_TAG \
--plugin typedoc-plugin-markdown \
--plugin typedoc-plugin-mdn-links \
--plugin @sgrud/typedoc-plugin \
--plugin @sgrud/typedoc-theme \
--out /mnt/repo/dist
jest:
<<: *service
depends_on: {typedoc: *depends}
image: node:latest
command:
- |
cd $$(mktemp -d)
git clone -b $SGRUD_TAG $SGRUD_GIT .
npm install && npm run build
npx jest --coverage --testPathIgnorePatterns /worker/ | sed -E \
-e 's/^ /\\hspace{5mm}/g' -e 's/^ /\\hspace{2.5mm}/g' \
-e '1s/.*/\n\\newpage\n\n# Test Coverage\n/;$$d' \
>>/mnt/repo/dist/typedoc.md
citation-js:
<<: *service
depends_on: {jest: *depends}
image: node:latest
command:
- |
cd $$(mktemp -d)
npm pack /mnt/repo/res/bibtex-identifier
npm install *.tgz && npm install
npx citation-js \
--plugins bibtex-identifier \
--input /mnt/repo/CITATION.cff \
--output /mnt/repo/dist/thesis \
--output-style bibtex \
--output-type string
pandoc:
<<: *service
build: res/pandoc-custom
depends_on: {citation-js: *depends}
image: pandoc/latex:latest
command:
- |
apk add font-liberation
tlmgr install acro translations
FILES=$$(find src -name '*.md' | sort)
wget -O- github.com/kde/syntax-highlighting/archive/master.tar.gz \
| tar xz -C /opt --strip-components 2 --wildcards '*/data/syntax'
perl -lne'print"\\DeclareAcronym{@{[lc$$1]}}{short=$$1,long={$$2}}"
if/^\*\[([^]]+)\]: (.+)$/' $$FILES | sort | uniq >dist/thesis.acr
pandoc -d pandoc.typedoc.yml --verbose dist/typedoc.md
pandoc -d pandoc.thesis.yml -o dist/thesis.tex $$FILES
xelatex -no-pdf -output-directory dist dist/thesis.tex
xelatex -no-pdf -output-directory dist dist/thesis.tex
makeindex -i -l -r <dist/thesis.idx >>dist/typedoc.tex
pandoc -d pandoc.thesis.yml -o dist/thesis.pdf $$FILES