Skip to content

Commit

Permalink
fix(docs): updated paths
Browse files Browse the repository at this point in the history
  • Loading branch information
allardy committed Nov 1, 2018
1 parent aaf6969 commit 1abe1be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/guide/buildspec.yml
Expand Up @@ -8,22 +8,22 @@ phases:
pre_build:
commands:
- yarn
- chmod +x ./build/source_version.sh
- export PACKAGE_VERSION=$(./build/source_version.sh)
- chmod +x ./build/docs/source_version.sh
- export PACKAGE_VERSION=$(./build/docs/source_version.sh)

build:
commands:
- yarn build:reference

# Build doc for the current version number
- node build/docs/set_docusaurus_url.js "/docs/$PACKAGE_VERSION"
- node build/docs/set_docusaurus_url.js "/docs/$PACKAGE_VERSION/"
- yarn build:guide
- aws s3 sync docs/guide/website/build/botpress-docs s3://botpress-docs/$PACKAGE_VERSION
- aws s3 sync docs/reference/ s3://botpress-docs/$PACKAGE_VERSION/reference

# Build doc for the latest version
- export PACKAGE_VERSION=$(if [ -z ${GITHUB_BRANCH+x} ]; then echo "latest"; else echo "$GITHUB_BRANCH"; fi)
- node build/docs/set_docusaurus_url.js "/docs/$PACKAGE_VERSION"
- node build/docs/set_docusaurus_url.js "/docs/$PACKAGE_VERSION/"
- yarn build:guide
- aws s3 sync docs/guide/website/build/botpress-docs/ s3://botpress-docs/$PACKAGE_VERSION
- aws s3 sync docs/reference/ s3://botpress-docs/$PACKAGE_VERSION/reference
Expand All @@ -32,5 +32,5 @@ phases:
aws s3 ls s3://botpress-docs/ --recursive
| grep -Eio '\s([0-9.A-Za-z]+)\/index\.html'
| sed 's!/index.html!!g' > versions.txt
- node build/versions_builder.js > versions.json
- node build/docs/versions_builder.js > versions.json
- aws s3 cp versions.json s3://botpress-docs/

0 comments on commit 1abe1be

Please sign in to comment.