Skip to content

Commit

Permalink
book: use mkdocs instead of mdbook
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Sep 29, 2023
1 parent ff380a1 commit 2d640ca
Show file tree
Hide file tree
Showing 17 changed files with 966 additions and 476 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
.PHONY: book

precommit:
@bash .githooks/pre-push

clean:
cargo clean

book:
cd book && make build

loc:
@echo "--- Counting lines of .rs files (LOC):" && find crates/ bindings/ -type f -name "*.rs" -exec cat {} \; | wc -l
2 changes: 1 addition & 1 deletion book/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
book
site/
8 changes: 4 additions & 4 deletions book/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
init:
cargo install mdbook --version 0.4.34 --locked
cargo install mdbook-admonish --version 1.12.1 --locked
pip install -U poetry
poetry install

build:
mdbook build
poetry run mkdocs build --strict --clean --verbose

serve:
mdbook serve
mkdocs serve
21 changes: 0 additions & 21 deletions book/README.md

This file was deleted.

Loading

0 comments on commit 2d640ca

Please sign in to comment.