-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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]>
- Loading branch information
1 parent
df51631
commit 610cdca
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|