-
-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (35 loc) · 999 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: docs
on:
push:
branches: main
permissions:
contents: write
jobs:
publish-gh-page:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: pandoc markdown to html
uses: docker://pandoc/latex:3.1
with:
args: >-
--katex
--from markdown+tex_math_single_backslash
--to html5+smart
--template="./scripts/template.html5"
--css="/panvimdoc/css/theme.css"
--css="/panvimdoc/css/skylighting-solarized-theme.css"
--toc
--wrap=none
--metadata title="panvimdoc"
doc/panvimdoc.md
--lua-filter=scripts/include-files.lua
--lua-filter=scripts/skip-blocks.lua
-t html
-o public/index.html
- name: deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: public