Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pandoc html gen #69

Merged
merged 4 commits into from
Mar 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/build-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ jobs:
- name: update package database
run: sudo apt-get update
- name: install required packages
run: sudo apt-get install pandoc php php-curl minify yui-compressor
run: sudo apt-get install cabal-install php php-curl minify yui-compressor
- name: update cabal
run: cabal update
- name: install pandoc
run: cabal install pandoc-3.1.12 pandoc-cli --installdir=/tmp/bin
- name: checkout code
uses: actions/[email protected]
- name: build the site
Expand All @@ -36,7 +40,11 @@ jobs:
- name: update package database
run: sudo apt-get update
- name: install required packages
run: sudo apt-get install minify pandoc php php-curl yui-compressor
run: sudo apt-get install cabal-install minify php php-curl yui-compressor
- name: update cabal
run: cabal update
- name: install pandoc
run: cabal install pandoc-3.1.12 pandoc-cli --installdir=/tmp/bin
- name: checkout code
uses: actions/[email protected]
- name: build the site
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ out_/%.html: %.md Makefile templates/easy_template.html
printf "<!DOCTYPE html><meta charset=\"utf-8\"><title>Redirecting to /$(@:out_/%=%)</title><meta http-equiv=\"refresh\" content=\"0; URL=/$(@:out_/%=%)\"><link rel=\"canonical\" href=\"/$(@:out_/%=%)\">" "$@" > $(subst -,_,$@)
printf "<!DOCTYPE html><meta charset=\"utf-8\"><title>Redirecting to /$(@:out_/%=%)</title><meta http-equiv=\"refresh\" content=\"0; URL=/$(@:out_/%=%)\"><link rel=\"canonical\" href=\"/$(@:out_/%=%)\">" "$@" > $(subst pattern/,patterns/,$@)
printf "<!DOCTYPE html><meta charset=\"utf-8\"><title>Redirecting to /$(@:out_/%=%)</title><meta http-equiv=\"refresh\" content=\"0; URL=/$(@:out_/%=%)\"><link rel=\"canonical\" href=\"/$(@:out_/%=%)\">" "$@" > $(subst -,_,$(subst pattern/,patterns/,$@))
pandoc -s -f markdown+footnotes-smart -t html --template=templates/easy_template.html -c "${style}" --highlight-style haddock "$<" > "$@" # | minify --type 'html' --html-keep-document-tags > "$@"
/tmp/bin/pandoc -s -f markdown+footnotes-smart -t html --template=templates/easy_template.html -c "${style}" --highlight-style haddock "$<" | minify --type 'html' --html-keep-document-tags > "$@"

out_/%.ico : media/%.ico
ln "$<" "$@"
Expand Down
Loading