Skip to content

Commit

Permalink
added mdpdf
Browse files Browse the repository at this point in the history
  • Loading branch information
stebo85 committed Jun 23, 2024
1 parent f7be023 commit cd6bec8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions recipes/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@ if ! command -v 7z &> /dev/null; then
sudo apt install -y p7zip
fi

if ! command -v pandoc &> /dev/null; then
sudo apt install -y pandoc
if ! command -v mdpdf &> /dev/null; then
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
source ~/.bashrc
nvm list-remote
nvm install v22.3.0
nvm list
npm install mdpdf -g
fi

# check docker version
python ../checkDockerVersion.py

# build pdf file
pandoc --from=gfm --to=pdf -o README.pdf README.md
# build pdf file from README.md
mdpdf README.md

# build zip file
python build.py

0 comments on commit cd6bec8

Please sign in to comment.