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

Commit

Permalink
Re-enable the Solidity docs build
Browse files Browse the repository at this point in the history
Removed the outdated LaTeX and TikZ cruft while I was at it.

Refs #690
  • Loading branch information
mhluongo committed Jun 25, 2020
1 parent 42d8432 commit 9a75d4b
Showing 1 changed file with 6 additions and 57 deletions.
63 changes: 6 additions & 57 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,38 +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:
Expand All @@ -116,31 +84,6 @@ jobs:
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
Expand Down Expand Up @@ -311,6 +254,12 @@ workflows:
docs:
jobs:
- compile_contracts
- generate_docs_solidity
requires:
- compile_contracts
- upload_docs
requires:
- generate_docs_solidity
build_publish_keep_dev:
jobs:
- compile_contracts
Expand Down

0 comments on commit 9a75d4b

Please sign in to comment.