V8.03.139.2025.06.02
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -104,32 +104,32 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y pandoc
|
||||
|
||||
- name: Ensure .html/ directory exists.
|
||||
shell: bash
|
||||
run:
|
||||
mkdir -p .html
|
||||
#- name: Ensure .html/ directory exists.
|
||||
# shell: bash
|
||||
# run:
|
||||
# mkdir -p .html
|
||||
|
||||
- name: Render *.md to full standalone HTML.
|
||||
shell: bash
|
||||
run: |
|
||||
find . \( -path "*/.*" -prune \) -o -type f -name "*.md" -print | while read file; do
|
||||
out=$(basename "${file%.md}.html")
|
||||
pandoc -s "${file}" \
|
||||
--metadata title="${file}" \
|
||||
--metadata lang=en \
|
||||
-f gfm+footnotes \
|
||||
-t html5 \
|
||||
--no-highlight \
|
||||
--strip-comments \
|
||||
--wrap=none \
|
||||
--lua-filter=.gitea/properties/lua/linkfix.lua \
|
||||
-o .html/"${out}"
|
||||
done
|
||||
#- name: Render *.md to full standalone HTML.
|
||||
# shell: bash
|
||||
# run: |
|
||||
# find . \( -path "*/.*" -prune \) -o -type f -name "*.md" -print | while read file; do
|
||||
# out=$(basename "${file%.md}.html")
|
||||
# pandoc -s "${file}" \
|
||||
# --metadata title="${file}" \
|
||||
# --metadata lang=en \
|
||||
# -f gfm+footnotes \
|
||||
# -t html5 \
|
||||
# --no-highlight \
|
||||
# --strip-comments \
|
||||
# --wrap=none \
|
||||
# --lua-filter=.gitea/properties/lua/linkfix.lua \
|
||||
# -o .html/"${out}"
|
||||
# done
|
||||
|
||||
- name: Extract HTML fragment for Gitea for *.md.
|
||||
shell: bash
|
||||
run: |
|
||||
find . \( -path "*/.*" -prune \) -o -type f -name "*.md" -print | while read file; do
|
||||
find . \( -path "*/.*" -prune \) -o -type f -name "README.md" -print | while read file; do
|
||||
out="${file%.md}.html"
|
||||
pandoc "${file}" \
|
||||
-f gfm+footnotes \
|
||||
|
||||
Reference in New Issue
Block a user