Skip to content

Commit 610cdca

Browse files
[setup](doc): add output to GitHub (#118)
* [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]>
1 parent df51631 commit 610cdca

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/pandoc.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,38 +37,46 @@ jobs:
3737
run: |
3838
for f in markdown/*.md; do
3939
FILE_NAME=$(basename "$f" | sed 's/.md//g')
40-
pandoc --standalone --include-in-header styles/chmduquesne.css \
40+
pandoc --standalone \ # --include-in-header styles/chmduquesne.css \
4141
--lua-filter=pdc-links-target-blank.lua \
4242
--from markdown --to html \
4343
--output output/${FILE_NAME}.html $f \
4444
--metadata pagetitle=$FILE_NAME
45+
git add output/${FILE_NAME}.html
4546
done
4647
4748
- name: Build PDF
4849
run: |
4950
for f in markdown/*.md; do
5051
FILE_NAME=$(basename "$f" | sed 's/.md//g')
51-
pandoc --standalone --template styles/chmduquesne.tex \
52+
pandoc --standalone \ # --template styles/chmduquesne.tex \
5253
--from markdown --to context \
53-
--variable papersize=A4 \
54+
--variable papersize=letter \
5455
--output output/${FILE_NAME}.tex $f
5556
mtxrun --path=output --result=${FILE_NAME}.pdf --script context ${FILE_NAME}.tex
57+
git add ${FILE_NAME}.pdf
5658
done
5759
5860
- name: Build DOCX
5961
run: |
6062
for f in markdown/*.md; do
6163
FILE_NAME=$(basename "$f" | sed 's/.md//g')
6264
pandoc --standalone ${{ steps.version.outputs.smart_flag }} $f --output output/${FILE_NAME}.docx
65+
git add output/${FILE_NAME}.docx
6366
done
6467
6568
- name: Build RTF
6669
run: |
6770
for f in markdown/*.md; do
6871
FILE_NAME=$(basename "$f" | sed 's/.md//g')
6972
pandoc --standalone ${{ steps.version.outputs.smart_flag }} $f --output output/${FILE_NAME}.rtf
73+
git add output/${FILE_NAME}.rtf
7074
done
7175
76+
- name: Check in documents
77+
run : |
78+
git commit -m "[docs](doc): adding output to GitHub"
79+
7280
- name: Upload output
7381
uses: actions/[email protected]
7482
with:

0 commit comments

Comments
 (0)