Skip to content

Commit

Permalink
Fix mdbook compile target
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Jun 4, 2023
1 parent ed4b2b6 commit adab3bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book
publish_dir: ./target/book
3 changes: 3 additions & 0 deletions docs/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ multilingual = false
src = "src"
title = "Martin Tile Server Documentation"

[build]
build-dir = "../target/book"

[output.html]
curly-quotes = true
git-repository-url = "https://github.com/maplibre/martin"
Expand Down
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ test-int: clean-test
#!/usr/bin/env bash
set -euo pipefail
tests/test.sh
if ( ! diff --brief --recursive --new-file tests/output tests/expected ); then
@if ( ! diff --brief --recursive --new-file tests/output tests/expected ); then
echo "** Expected output does not match actual output"
echo "** If this is expected, run 'just bless' to update expected output"
exit 1
Expand All @@ -101,7 +101,7 @@ mdbook:
echo "mdbook could not be found. Installing..." ;\
cargo install mdbook ;\
fi
mdbook serve docs --open
mdbook serve docs --open --port 8321

# Build and open code documentation
docs:
Expand All @@ -115,7 +115,7 @@ coverage FORMAT='html':
echo "grcov could not be found. Installing..." ;\
cargo install grcov ;\
fi
if ! rustup component list | grep llvm-tools-preview &> /dev/null; then \
@if ! rustup component list | grep llvm-tools-preview &> /dev/null; then \
echo "llvm-tools-preview could not be found. Installing..." ;\
rustup component add llvm-tools-preview ;\
fi
Expand Down

0 comments on commit adab3bc

Please sign in to comment.