From 610cdca14777ca581f8d7abde1840bc5f13f3900 Mon Sep 17 00:00:00 2001 From: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> Date: Tue, 7 Jan 2025 23:11:07 -0500 Subject: [PATCH] [setup](doc): add output to GitHub (#118) * [setup](doc): add output to GitHub Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> * [docs](doc): PDF - papersize = letter Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> --------- Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> --- .github/workflows/pandoc.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pandoc.yml b/.github/workflows/pandoc.yml index d0017e2c..508ba74b 100644 --- a/.github/workflows/pandoc.yml +++ b/.github/workflows/pandoc.yml @@ -37,22 +37,24 @@ 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 @@ -60,6 +62,7 @@ jobs: 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 @@ -67,8 +70,13 @@ jobs: 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/upload-artifact@v4.5.0 with: