docs: Merge changes from main branch #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: convert | |
on: | |
push: | |
jobs: | |
converttopdf: | |
name: Build PDF | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build book | |
run: |- | |
npm install -g md-to-pdf | |
mkdir -p _output | |
cd docs | |
echo; echo "Input Folder Listing" | |
ls | |
echo; echo "Generating PDF" | |
for f in *.md; do cat $f; echo; done | md-to-pdf --stylesheet "../theme/style.css" > ../_output/blue-paper.pdf | |
cd ../_output | |
echo; echo "Output Folder Listing" | |
ls | |
cd .. | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: output | |
path: _output |