Skip to content

Commit

Permalink
hardcoded file names
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoern-js committed Jul 31, 2024
1 parent 38d7a16 commit 8630fea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,10 @@ jobs:
run: |
sudo apt-get install texlive-latex-base texlive-latex-extra texlive-fonts-recommended pandoc -y
- name: Verify files
run: |
cd docs
ls -la ./
for file in $(cat pandoc_order.txt); do
if [ ! -f "$file" ]; then
echo "File $file not found!"
exit 1
fi
done
- name: Generate HTML from markdown
run: |
cd docs
pandoc $(cat pandoc_order.txt) metadata.yaml --include-before-body=version.md -s -o developer_handbook.html --toc --number-sections --wrap=none
pandoc css.md sections/01_introduction/README.md sections/02_code_of_conduct/README.md sections/03_programming_languages/README.md sections/04_code_styles/README.md sections/05_editors/README.md sections/06_version_control/README.md sections/07_project_setup/README.md sections/08_testing/README.md sections/09_ci_cd/README.md sections/10_documentation/README.md sections/11_security/README.md sections/12_performance/README.md sections/13_accessibility/README.md sections/99_learning_resources/README.md sections/999_appendix/README.md ISO27001.md metadata.yaml --include-before-body=version.md -s -o developer_handbook.html --toc --number-sections --wrap=none
- name: Generate PDF from HTML
run: |
Expand Down
6 changes: 3 additions & 3 deletions make.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mkdir dist
cd docs

pandoc $(cat pandoc_order.txt) metadata.yaml --include-before-body=version.md -s -o dist/developer_handbook.html --toc --number-sections --wrap=none
pandoc $(cat pandoc_order.txt) metadata.yaml --include-before-body=version.md -s -o developer_handbook.html --toc --number-sections --wrap=none

pandoc dist/developer_handbook.html -s --pdf-engine=xelatex -o dist/developer_handbook.pdf
pandoc docs/developer_handbook.html -s --pdf-engine=xelatex -o docs/developer_handbook.pdf

0 comments on commit 8630fea

Please sign in to comment.