Skip to content

Commit

Permalink
garden: move the guts of the doc command into a separate doc/build co…
Browse files Browse the repository at this point in the history
…mmand
  • Loading branch information
davvid committed Feb 19, 2024
1 parent a9b2aa0 commit bb35fa4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions garden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ trees:
- check/fmt
check/fmt: garden fmt -- --check
check/lua: luacheck lua/*
doc: |
doc>:
- doc/build
- doc/post
doc/build: |
panvimdoc.sh \
--description ' Search for Git worktree and open files or grep in them' \
--input-file README.md \
--project-name ${TREE_NAME} \
--toc false
doc>:
- doc/post
doc/post: |
sed -i -e 's/Generated by panvimdoc.*//' doc/${TREE_NAME}.txt
nvim +'helptags doc | exit'
Expand Down

0 comments on commit bb35fa4

Please sign in to comment.