More Docs
This commit is contained in:
19
.github/workflows/pandoc-conversion.yml
vendored
19
.github/workflows/pandoc-conversion.yml
vendored
@@ -1,12 +1,17 @@
|
||||
name: Pandoc Conversion
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
gentype:
|
||||
description: 'Make Docs'
|
||||
required: true
|
||||
default: 'docx'
|
||||
type: choice
|
||||
options:
|
||||
- pdf
|
||||
- docx
|
||||
|
||||
|
||||
jobs:
|
||||
convert:
|
||||
@@ -24,7 +29,7 @@ jobs:
|
||||
- name: Convert Markdown to PDF
|
||||
run: |
|
||||
mkdir -p output
|
||||
for file in *.md; do
|
||||
for file in */*.md; do
|
||||
[ -f "$file" ] || continue
|
||||
pandoc "$file" -o "output/${file%.md}.pdf"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user