Skip to content

Commit

Permalink
review: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
aatifsyed committed May 24, 2023
1 parent 19875cf commit ccf8c2a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
1 change: 0 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO(aatifsyed): remove this file once we have a dev/ci container
[build]
incremental = true

Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,9 @@ jobs:
RUSTFLAGS: "-Cstrip=symbols"
- name: Execute MDBook
run: make mdbook-build
- name: Build rustdoc
run: |-
rustup toolchain install $toolchain
cargo +$toolchain doc --workspace --no-deps
- name: Build vendored docs
run: make vendored-docs
env:
# When you visit https://chainsafe.github.io/forest/rustdoc you get an index.html
# listing all crates that are documented (copied out below).
# This isn't included by default, so we use the unstable `--enable-index-page` option
# https://doc.rust-lang.org/nightly/rustdoc/unstable-features.html#--index-page-provide-a-top-level-landing-page-for-docs
toolchain: nightly-2023-04-19
RUSTDOCFLAGS: -Dwarnings -Zunstable-options --enable-index-page
CC: "sccache clang"
CXX: "sccache clang++"
- name: Link Checker (Docs)
Expand Down
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SER_TESTS = "tests/serialization_tests"
VENDORED_DOCS_TOOLCHAIN := "nightly-2023-04-19"

# Using https://github.com/tonistiigi/xx
# Use in Docker images when cross-compiling.
Expand Down Expand Up @@ -168,4 +169,15 @@ mdbook:
mdbook-build:
mdbook build ./documentation

.PHONY: clean clean-all lint lint-docker lint-clippy build release test test-all test-all-release test-release license test-vectors run-vectors pull-serialization-tests install-cli install-daemon install install-deps install-lint-tools docs run-serialization-vectors rustdoc

# When you visit https://chainsafe.github.io/forest/rustdoc you get an index.html
# listing all crates that are documented (which is then published in CI).
# This isn't included by default, so we use a nightly toolchain, and the
# (unstable) `--enable-index-page` option.
# https://doc.rust-lang.org/nightly/rustdoc/unstable-features.html#--index-page-provide-a-top-level-landing-page-for-docs
vendored-docs:
rustup toolchain install $(VENDORED_DOCS_TOOLCHAIN)
RUSTDOCFLAGS="-Dwarnings -Zunstable-options --enable-index-page" \
cargo +$(VENDORED_DOCS_TOOLCHAIN) doc --workspace --no-deps

.PHONY: clean clean-all lint lint-docker lint-clippy build release test test-all test-all-release test-release license test-vectors run-vectors pull-serialization-tests install-cli install-daemon install install-deps install-lint-tools docs run-serialization-vectors vendored-docs

0 comments on commit ccf8c2a

Please sign in to comment.