Skip to content

Commit

Permalink
[fix](build): don't need input directory (#120)
Browse files Browse the repository at this point in the history
* [fix](build): don't need input directory 

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

* [fix](build): don't need all those options. Jekyll converts to html

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

---------

Signed-off-by: Ralph Hightower <[email protected]>
  • Loading branch information
RalphHightower authored Jan 8, 2025
1 parent 71cb362 commit 6e0a952
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/pandoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,14 @@ jobs:
echo "::set-output name=smart_flag;--smart"
fi
- name: Build HTML
run: |
for f in markdown/*.md; do
FILE_NAME=$(basename "$f" | sed 's/.md//g')
pandoc --standalone \ # --include-in-header styles/chmduquesne.css \
--lua-filter=pdc-links-target-blank.lua \
--from markdown --to html \
--output output/${FILE_NAME}.html markdown/$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 \
--from markdown --to context \
--variable papersize=letter \
--output output/${FILE_NAME}.tex markdown/$f
--output output/${FILE_NAME}.tex $f
mtxrun --path=output --result=${FILE_NAME}.pdf --script context ${FILE_NAME}.tex
git add ${FILE_NAME}.pdf
done
Expand All @@ -61,15 +49,15 @@ jobs:
run: |
for f in markdown/*.md; do
FILE_NAME=$(basename "$f" | sed 's/.md//g')
pandoc --standalone ${{ steps.version.outputs.smart_flag }} markdown/$f --output output/${FILE_NAME}.docx
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 }} markdown/$f --output output/${FILE_NAME}.rtf
pandoc --standalone ${{ steps.version.outputs.smart_flag }} $f --output output/${FILE_NAME}.rtf
git add output/${FILE_NAME}.rtf
done
Expand Down

0 comments on commit 6e0a952

Please sign in to comment.