Skip to content

Commit

Permalink
docs: Update documentation 馃摎
Browse files Browse the repository at this point in the history
  • Loading branch information
kdheepak committed Aug 13, 2023
1 parent 52f3630 commit cca68de
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
--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
Expand Down
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,55 @@ For an example of how this is used, see one of the following workflows:

Or see any of the packages here that depend on this action: <https://github.com/kdheepak/panvimdoc/network/dependents>

<summary>

If you are interested in making your vim plugin documentation available as a HTML page, check out [.github/workflows/docs.yml](./.github/workflows/docs.yml) file.

<details>

```yml
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
```

</details>

### Using it manually

The `./panvimdoc.sh` script runs `pandoc` along with all the filters and custom output writer.
Expand Down

0 comments on commit cca68de

Please sign in to comment.