mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-11-09 23:50:04 +00:00
Add automated actions for Wiki
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
378a2247ec
commit
1dcabc7153
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -2,6 +2,7 @@ default:
|
||||||
|
|
||||||
gendoc: .venv
|
gendoc: .venv
|
||||||
.venv/bin/python3 ci/gendoc.py $(shell grep -l '@module ' *.go) >wiki/Home.md
|
.venv/bin/python3 ci/gendoc.py $(shell grep -l '@module ' *.go) >wiki/Home.md
|
||||||
|
git add wiki/Home.md
|
||||||
|
|
||||||
.venv:
|
.venv:
|
||||||
python -m venv .venv
|
python -m venv .venv
|
||||||
|
@ -14,3 +15,8 @@ pull_wiki:
|
||||||
|
|
||||||
push_wiki:
|
push_wiki:
|
||||||
git subtree push --prefix=wiki https://github.com/Luzifer/discord-community.wiki.git master
|
git subtree push --prefix=wiki https://github.com/Luzifer/discord-community.wiki.git master
|
||||||
|
|
||||||
|
# --- Local dev
|
||||||
|
|
||||||
|
auto-hook-pre-commit: gendoc
|
||||||
|
auto-hook-post-push: push_wiki
|
||||||
|
|
Loading…
Reference in a new issue