Skip to content

Commit 6e0a952

Browse files
[fix](build): don't need input directory (#120)
* [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]>
1 parent 71cb362 commit 6e0a952

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/pandoc.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,14 @@ jobs:
3333
echo "::set-output name=smart_flag;--smart"
3434
fi
3535
36-
- name: Build HTML
37-
run: |
38-
for f in markdown/*.md; do
39-
FILE_NAME=$(basename "$f" | sed 's/.md//g')
40-
pandoc --standalone \ # --include-in-header styles/chmduquesne.css \
41-
--lua-filter=pdc-links-target-blank.lua \
42-
--from markdown --to html \
43-
--output output/${FILE_NAME}.html markdown/$f \
44-
--metadata pagetitle=$FILE_NAME
45-
git add output/${FILE_NAME}.html
46-
done
47-
4836
- name: Build PDF
4937
run: |
5038
for f in markdown/*.md; do
5139
FILE_NAME=$(basename "$f" | sed 's/.md//g')
5240
pandoc --standalone \ # --template styles/chmduquesne.tex \
5341
--from markdown --to context \
5442
--variable papersize=letter \
55-
--output output/${FILE_NAME}.tex markdown/$f
43+
--output output/${FILE_NAME}.tex $f
5644
mtxrun --path=output --result=${FILE_NAME}.pdf --script context ${FILE_NAME}.tex
5745
git add ${FILE_NAME}.pdf
5846
done
@@ -61,15 +49,15 @@ jobs:
6149
run: |
6250
for f in markdown/*.md; do
6351
FILE_NAME=$(basename "$f" | sed 's/.md//g')
64-
pandoc --standalone ${{ steps.version.outputs.smart_flag }} markdown/$f --output output/${FILE_NAME}.docx
52+
pandoc --standalone ${{ steps.version.outputs.smart_flag }} $f --output output/${FILE_NAME}.docx
6553
git add output/${FILE_NAME}.docx
6654
done
6755
6856
- name: Build RTF
6957
run: |
7058
for f in markdown/*.md; do
7159
FILE_NAME=$(basename "$f" | sed 's/.md//g')
72-
pandoc --standalone ${{ steps.version.outputs.smart_flag }} markdown/$f --output output/${FILE_NAME}.rtf
60+
pandoc --standalone ${{ steps.version.outputs.smart_flag }} $f --output output/${FILE_NAME}.rtf
7361
git add output/${FILE_NAME}.rtf
7462
done
7563

0 commit comments

Comments
 (0)