Docs theme (#4042)

* docs theme

* vuepress-theme-cosmos

* version bump

* changes to docs

* more code changes

* sidebar order fix

* moar changes

* fixed dev sessions title

* fixed dev sessions title, again

* specs should show up in sidebar

* contents cards

* version bump

* sidebar, rpc

* version bump

* custom footer and super naive search

* version

* minor change to vuepress

* move swagger file

* pre and post scripts

* build

* changed docs build process

* added deployment config

* updated versions file and added deployment filters
This commit is contained in:
Denis Fadeev
2019-10-11 18:07:58 +02:00
committed by Marko
parent 3e5fa20f4c
commit aaa060fda4
69 changed files with 19291 additions and 640 deletions
+20 -24
View File
@@ -11,7 +11,7 @@ executors:
machine: true
docs:
docker:
- image: tendermintdev/jq_curl
- image: tendermintdev/docker-website-deployment
environment:
AWS_REGION: us-east-1
@@ -191,30 +191,13 @@ jobs:
deploy_docs:
executor: docs
steps:
- restore_cache:
name: "Restore source code cache"
keys:
- go-src-v1-{{ .Revision }}
- checkout
- run:
name: Trigger website build
command: |
curl --silent \
--show-error \
-X POST \
--header "Content-Type: application/json" \
-d "{\"branch\": \"$CIRCLE_BRANCH\"}" \
"https://circleci.com/api/v1.1/project/github/$CIRCLE_PROJECT_USERNAME/$WEBSITE_REPO_NAME/build?circle-token=$TENDERBOT_API_TOKEN" > response.json
RESULT=`jq -r '.status' response.json`
MESSAGE=`jq -r '.message' response.json`
if [[ ${RESULT} == "null" ]] || [[ ${RESULT} -ne "200" ]]; then
echo "CircleCI API call failed: $MESSAGE"
exit 1
else
echo "Website build started"
fi
name: "Build docs"
command: make build-docs
- run:
name: "Sync to S3"
command: make sync-docs
prepare_build:
executor: golang
@@ -398,10 +381,23 @@ workflows:
test-suite:
jobs:
- deploy_docs:
context: tendermint-docs-staging
filters:
branches:
only:
- master
- /.*/
tags:
ignore:
- /^v.*/
- deploy_docs:
context: tendermint-docs
filters:
branches:
ignore:
- /.*/
tags:
only:
- /^v.*/
- setup_dependencies
- test_abci_apps:
requires: