Skip to content

Commit

Permalink
Convert to mdbook plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-bourne committed Dec 1, 2023
1 parent 64e1417 commit 9c3ed78
Show file tree
Hide file tree
Showing 10 changed files with 318 additions and 390 deletions.
40 changes: 23 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["Simon Bourne <[email protected]>"]
homepage = "https://github.com/simon-bourne/rust-book"
repository = "https://github.com/simon-bourne/rust-book"
homepage = "https://github.com/simon-bourne/mdbook-rust"
repository = "https://github.com/simon-bourne/mdbook-rust"

[workspace.dependencies]
rust-book = { version = "0.1.0", path = "packages/rust-book" }
mdbook-rust = { version = "0.1.0", path = "packages/mdbook-rust" }

anyhow = "1.0.75"
indoc = "2.0.4"
itertools = "0.12.0"
mdbook = "0.4.36"
ra_ap_syntax = "0.0.187"
thiserror = "1.0.50"
semver = "1.0.20"
serde_json = "1.0.108"
xtask-base = { git = "https://github.com/simon-bourne/rust-xtask-base" }
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Rust Book
# MDBook Rust

[![tests](https://github.com/simon-bourne/rust-book/actions/workflows/ci-tests.yml/badge.svg)](https://github.com/simon-bourne/rust-book/actions/workflows/ci-tests.yml)
[![crates.io](https://img.shields.io/crates/v/rust-book.svg)](https://crates.io/crates/rust-book)
[![Documentation](https://docs.rs/rust-book/badge.svg)](https://docs.rs/rust-book)
[![MIT/Apache-2 licensed](https://img.shields.io/crates/l/rust-book)](./LICENSE-APACHE)
[![tests](https://github.com/simon-bourne/mdbook-rust/actions/workflows/ci-tests.yml/badge.svg)](https://github.com/simon-bourne/mdbook-rust/actions/workflows/ci-tests.yml)
[![crates.io](https://img.shields.io/crates/v/mdbook-rust.svg)](https://crates.io/cratemdbook-rustok)
[![Documentation](https://docs.rs/mdbook-rust/badge.svg)](https://docs.rs/mdbook-rust)
[![MIT/Apache-2 licensed](https://img.shields.io/crates/l/mdbook-rust)](./LICENSE-APACHE)

Enhanced Rust support for MDBook.
5 changes: 1 addition & 4 deletions examples/book/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
[package]
name = "rust-book-example"
name = "mdbook-rust-example"
version = "0.0.0"
edition = { workspace = true }

[build-dependencies]
rust-book.workspace = true
2 changes: 2 additions & 0 deletions examples/book/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ title = "Rust Book Example"

[build]
create-missing = false

[preprocessor.rust]
3 changes: 0 additions & 3 deletions examples/book/build.rs

This file was deleted.

6 changes: 3 additions & 3 deletions examples/book/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Summary

[Lib](lib.md)
[Lib](lib.rs)

- [Chapter 1](./chapter1.md)
- [Chapter 1 - 1](./chapter1/chapter1_1.md)
- [Chapter 1](./chapter1.rs)
- [Chapter 1 - 1](./chapter1/chapter1_1.rs)
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
[package]
name = "rust-book"
name = "mdbook-rust"
version = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
authors = { workspace = true }
homepage = { workspace = true }
repository = { workspace = true }
description = "Rust Book"
description = "Enhanced Rust support for MDBook"
keywords = []
readme = "../../README.md"

[dependencies]
anyhow.workspace = true
indoc.workspace = true
itertools.workspace = true
mdbook.workspace = true
ra_ap_syntax.workspace = true
thiserror.workspace = true
semver.workspace = true
serde_json.workspace = true
Loading

0 comments on commit 9c3ed78

Please sign in to comment.