Skip to content

Commit

Permalink
Add GitHub-ish template for GitHub-ish files (#35)
Browse files Browse the repository at this point in the history
<!-- LIST CHANGES HERE -->
  • Loading branch information
norwd authored Nov 19, 2024
2 parents b27cb97 + 7a82040 commit 18496d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
- name: "Install tools"
run: sudo apt install tidy pandoc

- name: "Install templates"
run: |
mkdir -p ~/.pandoc/templates
curl -sSL 'https://github.com/tajmone/pandoc-goodies/raw/refs/heads/master/templates/html5/github/GitHub.html5' -o ~/.pandoc/templates/GitHub.html5
- name: "Retrieve Code of Conduct"
run: curl --header "${MEDIA_TYPE_HEADER}" --header "${AUTH_TOKEN_HEADER}" --create-dirs --output code-of-conduct.md "${CONTENTS_ENDPOINT}/CODE_OF_CONDUCT.md"
env:
Expand Down Expand Up @@ -71,9 +76,10 @@ jobs:
make -f - << \EOF
all: $(patsubst %.md,%.html,$(wildcard *.md */*.md */*/*.md))
rm -f header.html
%.html: %.md
pandoc --from markdown+yaml_metadata_block+backtick_code_blocks+fenced_code_attributes+inline_notes+emoji --to html --standalone $< --output $@
pandoc --metadata-file=authors.yaml --template=GitHub.html5 --include-in-header=header.html --from markdown+yaml_metadata_block+backtick_code_blocks+fenced_code_attributes+inline_notes+emoji --to html --standalone $< --output $@
EOF
Expand Down
5 changes: 5 additions & 0 deletions header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<meta name="keywords" content="jira, stopwatch, stop watch, time logging, time tracking, worklog, timesheet" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett" />
<link rel="icon" href="favicon.ico">
<link href="css/main.css" rel="stylesheet">

0 comments on commit 18496d9

Please sign in to comment.