mirror of https://github.com/speeduino/wiki.js.git
Improvements to PDF generation
This commit is contained in:
parent
fad7d7f3be
commit
ef2b300ed6
|
@ -26,7 +26,7 @@ jobs:
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -qq
|
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
|
- name: Installing Pandoc
|
||||||
run: |
|
run: |
|
||||||
|
|
6
home.md
6
home.md
|
@ -6,6 +6,12 @@ date: 2023-07-12T23:46:25.501Z
|
||||||
tags: home
|
tags: home
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2020-01-05T22:26:30.455Z
|
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
|
# Introduction
|
||||||
|
|
|
@ -37,10 +37,17 @@ echo "Temp directory:" `pwd`
|
||||||
git clone --depth=1 https://github.com/speeduino/wiki.js.git
|
git clone --depth=1 https://github.com/speeduino/wiki.js.git
|
||||||
cd wiki.js
|
cd wiki.js
|
||||||
|
|
||||||
#Add a blank line on the top of each file to prevent issues with pandoc concatenation
|
|
||||||
for f in ${CHAPTERS}
|
for f in ${CHAPTERS}
|
||||||
do
|
do
|
||||||
|
#Add a blank line on the top of each file to prevent issues with pandoc concatenation
|
||||||
sed -s -i '1i\\' $f
|
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
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue