Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Remove the Solidity docs build
Browse files Browse the repository at this point in the history
Also removed the outdated LaTeX and TikZ cruft. Refs #690
  • Loading branch information
mhluongo committed Jun 25, 2020
1 parent 42d8432 commit 0256734
Showing 1 changed file with 0 additions and 96 deletions.
96 changes: 0 additions & 96 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,99 +65,6 @@ jobs:
name: Run NPM tests
working_directory: ~/project/solidity
command: npm run test:quick
generate_pngs:
docker:
- image: keepnetwork/texlive:15
steps:
- checkout
- run:
name: Generate TeX-based PNGs
working_directory: ~/project/docs
command: |
mkdir -p /tmp/build/docs/img
make pngs
cp -r img/generated /tmp/build/docs/img/generated
- persist_to_workspace:
root: /tmp
paths:
- ./build/docs/img/generated/*.png
generate_docs_tex:
docker:
- image: keepnetwork/texlive:15
steps:
- checkout
- run:
name: Generate TeX Document Files
working_directory: ~/project/docs
command: |
mkdir -p /tmp/build/docs
make build.pdf
cp *.pdf /tmp/build/docs
- persist_to_workspace:
root: /tmp
paths:
- ./build/docs/*.pdf
generate_docs_solidity:
executor: docker-node
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Generate solidity docs
command: |
cd solidity/docs
mkdir -p output
node generate-api-docs.js > output/index.adoc
mkdir -p /tmp/build/docs
cp -r output /tmp/build/docs/solidity
- persist_to_workspace:
root: /tmp
paths:
- ./build/docs/solidity/*
generate_docs_asciidoctor:
docker:
- image: asciidoctor/docker-asciidoctor
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Generate Asciidoctor PDF/HTML Files
working_directory: ~/project/docs
command: |
set -ex
shopt -s extglob globstar nullglob
cp -r ../build/docs/img ./
asciidoctor -a revdate=`date +%Y-%m-%d` --failure-level=ERROR *.adoc **/*.adoc
for a in $(ls *.html **/*.html); do set +x; mkdir -p /tmp/build/docs/$(dirname $a); cp $a /tmp/build/docs/$(dirname $a)/; done
set -x
asciidoctor-pdf -a revdate=`date +%Y-%m-%d` *.adoc **/*.adoc
for a in $(ls *.pdf **/*.pdf); do set +x; mkdir -p /tmp/build/docs/$(dirname $a); cp $a /tmp/build/docs/$(dirname $a)/; done
- persist_to_workspace:
root: /tmp
paths:
- ./build/docs
upload_docs:
docker:
- image: google/cloud-sdk:slim
steps:
- attach_workspace:
at: /tmp
- gcp-cli/initialize:
google-project-id: GOOGLE_PROJECT_ID
google-compute-zone: GOOGLE_COMPUTE_ZONE_A
# This param doesn't actually set anything, leaving here as a reminder to check when they fix it.
gcloud-service-key: GCLOUD_SERVICE_KEY_DOC_UPLOAD
- run:
name: Upload Document Files to docs.keep.network
command: |
cd /tmp/build/docs
export DIR=$(test $CIRCLE_BRANCH != master && echo $CIRCLE_BRANCH/)
gsutil -m cp -r * gs://docs.keep.network/tbtc/$DIR
migrate_contracts:
executor: docker-thesis-buildpack
steps:
Expand Down Expand Up @@ -308,9 +215,6 @@ workflows:
- unit_test_contracts:
requires:
- compile_contracts
docs:
jobs:
- compile_contracts
build_publish_keep_dev:
jobs:
- compile_contracts
Expand Down

0 comments on commit 0256734

Please sign in to comment.