Skip to content

Commit

Permalink
Merge pull request #210 from danyalprout/add-mdbook-check
Browse files Browse the repository at this point in the history
Add CI check for building book
  • Loading branch information
tynes authored May 28, 2024
2 parents dfd2dea + 15ac78b commit 68a6845
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
- run:
name: markdown toc
command: just lint-specs-toc-check
- run:
name: build book
command: just build
lint-links:
machine:
image: <<pipeline.parameters.base_image>>
Expand Down
4 changes: 4 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ default:

# Install required dependencies
deps:
cargo install mdbook mdbook-katex mdbook-linkcheck mdbook-mermaid
pnpm i --frozen-lockfile

# Lint the workspace for all available targets
Expand Down Expand Up @@ -36,6 +37,9 @@ lint-links:
--exclude twitter.com --exclude explorer.optimism.io --exclude linux-mips.org --exclude vitalik.ca \
--exclude-mail /input/README.md "/input/specs/**/*.md"

build:
mdbook build

# Serves the mdbook locally
serve *args='':
mdbook serve $@

0 comments on commit 68a6845

Please sign in to comment.