scrpit to push docs

This commit is contained in:
Dustin J. Mitchell 2020-11-26 23:01:44 -05:00
parent 2064057688
commit eb47cf4e7f
4 changed files with 27 additions and 1 deletions

View file

@ -24,5 +24,5 @@ There are three crates here:
## See Also
* [Documentation](docs/src/SUMMARY.md) (will be published as an mdbook eventually)
* [Documentation](https://djmitche.github.io/taskchampion/) (NOTE: temporary url)
* [Progress on the first version](https://github.com/djmitche/taskwarrior-rust/projects/1)

1
docs/.gitignore vendored
View file

@ -1 +1,2 @@
book
tmp

23
docs/build.sh Executable file
View file

@ -0,0 +1,23 @@
#! /bin/bash
REMOTE=origin
set -e
if ! [ -f "./src/SUMMARY.md" ]; then
echo "Run this from the docs/ dir"
exit 1
fi
if ! [ -d ./tmp ]; then
git worktree add tmp gh-pages
fi
(cd tmp && git pull $REMOTE gh-pages)
rm -rf tmp/*
mdbook build
cp -rp book/* tmp
(cd tmp && git add -A)
(cd tmp && git commit -am "update docs")
(cd tmp && git push $REMOTE gh-pages:gh-pages)

View file

@ -2,3 +2,5 @@
The main interface to your tasks is the `task` command, which supports various subcommands.
You can find a quick list of all subcommands with `task help`.
Note that the `task` interface does not match that of TaskWarrior.