Make generated docs self-contained #42
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
name: Pandoc Document Converter | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Pandoc build | |
uses: docker://pandoc/core:2.9 | |
with: | |
args: >- | |
--from=markdown | |
--to=html | |
--embed-resources=true | |
--standalone | |
--css=../assets/main.css | |
--metadata pagetitle="Bookmarklets" | |
--output=docs/index.html | |
readme.md | |
- run: | | |
sed -i -e 's/<!--//g' docs/index.html | |
sed -i -e 's/-->//g' docs/index.html | |
- name: Add & Commit | |
uses: EndBug/add-and-commit@v4.1.0 | |
with: | |
message: 'Generate HTML documentation' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |