-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
31 additions
and
33 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
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
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,20 +1,9 @@ | ||
# Dependencies | ||
/node_modules | ||
node_modules | ||
|
||
# Production | ||
/build | ||
build | ||
|
||
# Generated files | ||
.docusaurus | ||
.cache-loader | ||
|
||
# Misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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 @@ | ||
site/docs/ |
File renamed without changes.
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,29 +1,36 @@ | ||
version: "3" | ||
|
||
vars: | ||
BUILD_DIR: "../build" | ||
|
||
tasks: | ||
setup: | ||
desc: Setup Docusaurus locally | ||
cmds: | ||
- npm install | ||
|
||
gen: | ||
desc: Generate CLI documentation | ||
dir: "{{.ROOT_DIR}}" | ||
cmds: | ||
- go run cmd/docs/main.go ./docs/pages/api.md | ||
|
||
start: | ||
desc: Start website | ||
aliases: [run] | ||
vars: | ||
PORT: '{{default "3001" .PORT}}' | ||
deps: [gen] | ||
cmds: | ||
- npx docusaurus start --no-open --port={{.PORT}} | ||
|
||
build: | ||
desc: Build website | ||
deps: [gen] | ||
cmds: | ||
- npx docusaurus build | ||
- npx docusaurus build --out-dir {{.BUILD_DIR}} | ||
|
||
clean: | ||
desc: Clean temp directories | ||
cmds: | ||
- rm -rf ./build | ||
|
||
deploy: | ||
desc: Build and deploy Docusaurus. Requires GIT_USER and GIT_PASS envs to be previous set | ||
cmds: | ||
- npx docusaurus deploy | ||
- rm -rf {{.BUILD_DIR}} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes