Skip to content

Commit

Permalink
.circleci: Build and push mdbook (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Olivero authored Oct 21, 2021
1 parent 35392d4 commit c96c0af
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ jobs:
- run:
name: Build Docs
command: cargo doc --no-deps
- run:
name: Install MdBook
command: cargo install mdbook
- run:
name: Compile MdBook
command: mdbook build ./documentation
- run:
name: Publish Docs
command: bash ./scripts/build-rust-docs.sh
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,7 @@ docs:
mdbook:
mdbook serve documentation

mdbook-build:
mdbook build ./documentation

.PHONY: clean clean-all lint build release test test-all test-release license test-vectors run-vectors pull-serialization-tests install docs run-serialization-vectors run-conformance-vectors
3 changes: 1 addition & 2 deletions scripts/build-rust-docs.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/bash

cd target/doc
cd documentation/book
git init
echo '<meta http-equiv="refresh" content="0; url=https://chainsafe.github.io/forest/forest_vm/index.html">' > index.html
git add .
git config --global -l
git -c user.name='ci' -c user.email='ci' commit -m 'Deploy documentation'
Expand Down

0 comments on commit c96c0af

Please sign in to comment.