-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc!: reorganize all documentation (fix #144)
Documentation is now produced generated from three sources: - The README.md, automatically using panvimdoc - The Lua code (Emmy docs), automatically using lemmy-help - The options, manually (for now)
- Loading branch information
Showing
17 changed files
with
1,249 additions
and
1,113 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Generate docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- gen-docs | ||
paths: | ||
- '.github/**' | ||
- 'doc/**' | ||
- 'lua/**' | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
name: Generate Fidget documentation | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: API docs from code | ||
run: | | ||
curl -Lq https://github.com/numToStr/lemmy-help/releases/latest/download/lemmy-help-x86_64-unknown-linux-gnu.tar.gz | tar xz | ||
./lemmy-help -f -a -c -t lua/{fidget.lua,fidget/notification.lua,fidget/progress.lua,fidget/progress/lsp.lua,fidget/spinner.lua} > doc/fidget-api.txt | ||
- name: Usage docs from README (panvimdoc) | ||
uses: kdheepak/panvimdoc@main | ||
with: | ||
pandoc: README.md | ||
vimdoc: fidget | ||
description: Extensible UI for Neovim notifications and LSP progress messages. | ||
version: "NVIM v0.8.0" | ||
demojify: true | ||
treesitter: true | ||
shiftheadinglevelby: -1 | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "Auto generate docs" | ||
branch: ${{ github.head_ref }} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/.luarc.json | ||
/doc/tags |
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
Oops, something went wrong.