diff --git a/.github/workflows/generate_pdf.yml b/.github/workflows/generate_pdf.yml index 059398e..bbc75b8 100644 --- a/.github/workflows/generate_pdf.yml +++ b/.github/workflows/generate_pdf.yml @@ -26,7 +26,7 @@ jobs: - name: Install Dependencies run: | sudo apt-get update -qq - sudo apt-get install texlive-fonts-recommended lmodern texlive-xetex texlive-fonts-extra pandoc + sudo apt-get install sed texlive-fonts-recommended lmodern texlive-xetex texlive-fonts-extra pandoc - name: Installing Pandoc run: | diff --git a/home.md b/home.md index f8ffe9a..2d4be20 100644 --- a/home.md +++ b/home.md @@ -6,6 +6,12 @@ date: 2023-07-12T23:46:25.501Z tags: home editor: markdown dateCreated: 2020-01-05T22:26:30.455Z +titlepage: true +titlepage-rule-height: 2 +titlepage-rule-color: 360049 +titlepage-background: offline/background1.pdf +logo: offline/logo.png +logo-width: 350 --- # Introduction diff --git a/make_pdf.sh b/make_pdf.sh index 26642f2..20b0b07 100755 --- a/make_pdf.sh +++ b/make_pdf.sh @@ -37,10 +37,17 @@ echo "Temp directory:" `pwd` git clone --depth=1 https://github.com/speeduino/wiki.js.git cd wiki.js -#Add a blank line on the top of each file to prevent issues with pandoc concatenation + for f in ${CHAPTERS} do + #Add a blank line on the top of each file to prevent issues with pandoc concatenation sed -s -i '1i\\' $f + + #Remove the css classes from highlighted notes + sed -i 's/{.is-success}//g' $f + sed -i 's/{.is-info}//g' $f + sed -i 's/{.is-warning}//g' $f + sed -i 's/{.is-danger}//g' $f done