From 4817d8c67f2f7d29bc630eebb454dceb1ae9e332 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Wed, 2 Jan 2019 13:42:06 -0200 Subject: [PATCH] Move documentation tasks to its own Taskfile --- Taskfile.yml | 13 +++---------- docs/Taskfile.yml | 12 ++++++++++++ 2 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 docs/Taskfile.yml diff --git a/Taskfile.yml b/Taskfile.yml index 88638d88..c85fd0ff 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -1,5 +1,8 @@ version: '2' +includes: + docs: ./docs + vars: GIT_COMMIT: sh: git log -n 1 --format=%h @@ -83,13 +86,3 @@ tasks: cmds: - echo '{{.GO_PACKAGES}}' silent: true - - docs:install: - desc: Installs docsify to work the on the documentation site - cmds: - - npm install docsify-cli -g - - docs:serve: - desc: Serves the documentation site locally - cmds: - - docsify serve docs diff --git a/docs/Taskfile.yml b/docs/Taskfile.yml new file mode 100644 index 00000000..e3fe3ef8 --- /dev/null +++ b/docs/Taskfile.yml @@ -0,0 +1,12 @@ +version: '2' + +tasks: + install: + desc: Installs docsify to work the on the documentation site + cmds: + - npm install docsify-cli -g + + serve: + desc: Serves the documentation site locally + cmds: + - docsify serve docs