Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/generate-pdfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9"

Expand All @@ -38,15 +38,15 @@ jobs:
python -m pip install -r ${PWD}/build_pdf/requirements.txt

- name: Build all
run: ${PWD}/build_pdf/build_all.sh
run: bash ${PWD}/build_pdf/build_all.sh

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: './build_pdf/pdf/*'
path: './build_pdf/pdf/'

deploy:
runs-on: ubuntu-latest
Expand Down
17 changes: 17 additions & 0 deletions build_pdf/build_en.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
cd $SCRIPTPATH

for book in admin_book ansible_book bash_book middlewares sed_awk_grep nvchad_book

do
for config_file in $(ls ${SCRIPTPATH}/${book}/en.yml)
do
echo "Building $config_file"
echo "---------------------"
VERSION=$(date +%Y/%m/%d) mkdocs build -q -f $config_file -d ${SCRIPTPATH}/site/
echo ""
done
done
rm -Rf ${SCRIPTPATH}/site/