-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcreate-mkdocs-pdf-config.sh
executable file
·28 lines (25 loc) · 1.11 KB
/
create-mkdocs-pdf-config.sh
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
#!/usr/bin/env bash
# This script will assemble a mkdocs.yml
# file with plugins section suitable for
# PDF site generation.
# This script is used both in manual
# site compilation (via build-docs-html.sh)
# and via the github workflow for
# publishing the site to github pages
# .github/workflows/CompileMKDocsToPDF.yml
cat mkdocs-base.yml > mkdocs.yml
cat mkdocs-pdf.yml >> mkdocs.yml
cat mkdocs.yml > mkdocs-overview.yml
cat mkdocs-pdf-overview.yml >> mkdocs-overview.yml
cat mkdocs.yml > mkdocs-users.yml
cat mkdocs-pdf-users.yml >> mkdocs-users.yml
cat mkdocs.yml > mkdocs-administrators.yml
cat mkdocs-pdf-administrators.yml >> mkdocs-administrators.yml
cat mkdocs.yml > mkdocs-developers.yml
cat mkdocs-pdf-developers.yml >> mkdocs-developers.yml
cat mkdocs.yml > mkdocs-devops.yml
cat mkdocs-pdf-devops.yml >> mkdocs-devops.yml
# This is a kludge: I could not figure out
# how to reference image resources using a relative path in the scss...
cat templates/styles.scss.templ | sed "s?\[BASE_FOLDER\]?$PWD?g" > templates/styles.scss
cat templates/graphics.scss.templ | sed "s?\[BASE_FOLDER\]?$PWD?g" > templates/graphics.scss