Improve setup and build process, don't require new line at the end of each md file
This commit is contained in:
parent
19bd7e1a5b
commit
0c92b469e6
4
build.sh
Normal file → Executable file
4
build.sh
Normal file → Executable file
|
@ -43,7 +43,7 @@ function run_pandoc {
|
||||||
rm chapter/out.tex
|
rm chapter/out.tex
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat chapter/*.md > chapter/out.md
|
for f in chapter/*.md; do (cat "${f}"; echo) >> chapter/out.md; done
|
||||||
pandoc --lua-filter templates/germanquotes.lua --citeproc --filter pandoc-crossref \
|
pandoc --lua-filter templates/germanquotes.lua --citeproc --filter pandoc-crossref \
|
||||||
-M cref=true --top-level-division=chapter \
|
-M cref=true --top-level-division=chapter \
|
||||||
--bibliography library/library.bib --biblatex \
|
--bibliography library/library.bib --biblatex \
|
||||||
|
@ -91,4 +91,4 @@ case $1 in
|
||||||
*)
|
*)
|
||||||
echo $"Usage: $0 {clean|pandoc|latex}"
|
echo $"Usage: $0 {clean|pandoc|latex}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
1
setup.sh
1
setup.sh
|
@ -16,6 +16,7 @@ if [ $1 == "markdown" ]
|
||||||
then
|
then
|
||||||
#cp templates/markdown.gitlab-ci.yml ./.gitlab-ci.yml
|
#cp templates/markdown.gitlab-ci.yml ./.gitlab-ci.yml
|
||||||
cp templates/markdown/.drone.yml ./.drone.yml
|
cp templates/markdown/.drone.yml ./.drone.yml
|
||||||
|
mkdir -p .github/workflow
|
||||||
cp templates/markdown/github-workflow.yml ./.github/workflows/latex.yml
|
cp templates/markdown/github-workflow.yml ./.github/workflows/latex.yml
|
||||||
#cp templates/markdown/azure-pipelines.yml ./azure-pipelines.yml
|
#cp templates/markdown/azure-pipelines.yml ./azure-pipelines.yml
|
||||||
cp templates/markdown/tasks.json ./.vscode/tasks.json
|
cp templates/markdown/tasks.json ./.vscode/tasks.json
|
||||||
|
|
Loading…
Reference in New Issue
Block a user