Skip to content

Commit

Permalink
[setup](doc): add output to GitHub (#118)
Browse files Browse the repository at this point in the history
* [setup](doc): add output to GitHub

Signed-off-by: Ralph Hightower <[email protected]>

* [docs](doc): PDF - papersize = letter

Signed-off-by: Ralph Hightower <[email protected]>

---------

Signed-off-by: Ralph Hightower <[email protected]>
  • Loading branch information
RalphHightower authored Jan 8, 2025
1 parent df51631 commit 610cdca
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/pandoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,38 +37,46 @@ jobs:
run: |
for f in markdown/*.md; do
FILE_NAME=$(basename "$f" | sed 's/.md//g')
pandoc --standalone --include-in-header styles/chmduquesne.css \
pandoc --standalone \ # --include-in-header styles/chmduquesne.css \
--lua-filter=pdc-links-target-blank.lua \
--from markdown --to html \
--output output/${FILE_NAME}.html $f \
--metadata pagetitle=$FILE_NAME
git add output/${FILE_NAME}.html
done
- name: Build PDF
run: |
for f in markdown/*.md; do
FILE_NAME=$(basename "$f" | sed 's/.md//g')
pandoc --standalone --template styles/chmduquesne.tex \
pandoc --standalone \ # --template styles/chmduquesne.tex \
--from markdown --to context \
--variable papersize=A4 \
--variable papersize=letter \
--output output/${FILE_NAME}.tex $f
mtxrun --path=output --result=${FILE_NAME}.pdf --script context ${FILE_NAME}.tex
git add ${FILE_NAME}.pdf
done
- name: Build DOCX
run: |
for f in markdown/*.md; do
FILE_NAME=$(basename "$f" | sed 's/.md//g')
pandoc --standalone ${{ steps.version.outputs.smart_flag }} $f --output output/${FILE_NAME}.docx
git add output/${FILE_NAME}.docx
done
- name: Build RTF
run: |
for f in markdown/*.md; do
FILE_NAME=$(basename "$f" | sed 's/.md//g')
pandoc --standalone ${{ steps.version.outputs.smart_flag }} $f --output output/${FILE_NAME}.rtf
git add output/${FILE_NAME}.rtf
done
- name: Check in documents
run : |
git commit -m "[docs](doc): adding output to GitHub"
- name: Upload output
uses: actions/[email protected]
with:
Expand Down

0 comments on commit 610cdca

Please sign in to comment.