-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 00630-eslint
Signed-off-by: Jeromy Cannon <[email protected]>
- Loading branch information
Showing
19 changed files
with
240 additions
and
740 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
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,93 @@ | ||
version: 3 | ||
output: prefixed | ||
dotenv: | ||
- .env | ||
silent: false | ||
|
||
env: | ||
HUGO_ENVIRONMENT: production | ||
HUGO_ENV: production | ||
HUGO_BASE_URL: https://hashgraph.github.io/solo | ||
HUGO_ORIGIN: https://hashgraph.github.io | ||
HUGO_HOST: hashgraph.github.io | ||
HUGO_BASEPATH: /solo | ||
|
||
tasks: | ||
default: | ||
cmds: | ||
- task: "check-doc-dir" | ||
- task: "clean" | ||
- task: "install" | ||
- task: "build" | ||
|
||
start: | ||
cmds: | ||
- task: "default" | ||
- hugo server | ||
|
||
check-doc-dir: | ||
status: | ||
- | | ||
if [ "$(basename "$PWD")" != "docs" ]; then | ||
exit 1 | ||
fi | ||
cmds: | ||
- | | ||
echo "Error: Must be in the 'docs' directory." | ||
exit 1 | ||
clean: | ||
cmds: | ||
- rm -Rf content/Classes | ||
- rm -f content/Developer/DEV.md | ||
- rm -f content/User/README.md | ||
- rm -Rf public | ||
- rm -Rf themes | ||
- rm -f .hugo_build.lock | ||
|
||
build: | ||
cmds: | ||
- task: "build:jsdoc" | ||
- task: "build:copy" | ||
- task: "build:hugo" | ||
|
||
build:hugo: | ||
cmds: | ||
- echo "base_url $HUGO_BASE_URL" | ||
- echo "origin $HUGO_ORIGIN" | ||
- echo "host $HUGO_HOST" | ||
- echo "base_path $HUGO_BASEPATH" | ||
- mkdir -p themes/hugo-geekdoc | ||
- curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C themes/hugo-geekdoc/ --strip-components=1 | ||
- hugo version | ||
- hugo config | ||
- hugo --gc --config hugo.toml --minify --baseURL "$HUGO_BASE_URL/" | ||
|
||
build:jsdoc: | ||
cmds: | ||
- jsdoc -c jsdoc.conf.json | ||
|
||
build:copy: | ||
cmds: | ||
- mkdir -p content/Developer | ||
- cp ../DEV.md content/Developer/DEV.md | ||
- mkdir -p content/User | ||
- cp ../README.md content/User/README.md | ||
|
||
install: | ||
cmds: | ||
- task: "install:hugo" | ||
- task: "install:jsdoc" | ||
|
||
install:hugo: | ||
status: | ||
- command -v hugo | ||
cmds: | ||
- go install github.com/gohugoio/[email protected] | ||
|
||
install:jsdoc: | ||
status: | ||
- command -v jsdoc | ||
cmds: | ||
- npm i -g jsdoc | ||
- jsdoc --version |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.