Skip to content

Commit 1c12ca0

Browse files
authored
chore: update mdbook and mermaid (#1977)
chore: update mdbook and mermaid
1 parent 0cca7c7 commit 1c12ca0

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/publish-docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
env:
17-
MDBOOK_ENV: 0.4.51 # Current mdbook version. See `https://crates.io/crates/mdbook`.
18-
MERMAID_ENV: 0.15.0 # For crate `mdbook-mermaid`. See: `https://github.com/badboy/mdBook-mermaid/`.
17+
MDBOOK_ENV: 0.5 # Current `mdbook` version. See `https://crates.io/crates/mdbook`.
18+
MERMAID_ENV: 0.17.0 # For crate `mdbook-mermaid`. See: `https://github.com/badboy/mdBook-mermaid/`. Always check version compatibility with mdbook.
1919
DEST_DIR: /home/runner/.cargo/bin
2020
steps:
2121
- uses: actions/checkout@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Syncstorage-rs
44

55
Mozilla Sync Storage built with [Rust](https://rust-lang.org).
6-
For full documentation, please navigate to the service docs *WIP* [here](https://mozilla-services.github.io/syncstorage-rs/) or in the documentation directory in [docs/src](docs/src/). Our documentation is generated using [mdBook](https://rust-lang.github.io/mdBook/index.html) and published to GitHub Pages.
6+
For full documentation, please navigate to the service docs [here](https://mozilla-services.github.io/syncstorage-rs/) or in the documentation directory in [docs/src](docs/src/). Our documentation is generated using [mdBook](https://rust-lang.github.io/mdBook/index.html) and published to GitHub Pages.
77

88
[mpl-svg]: https://img.shields.io/badge/License-MPL%202.0-blue.svg
99
[mpl]: https://opensource.org/licenses/MPL-2.0

docs/src/doc-notes.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,21 @@ To build the documentation, install mdBook:
1010
cargo install mdbook
1111
```
1212

13+
For mermaid diagram support, you also have to install [mdbook-mermaid](https://github.com/badboy/mdbook-mermaid).
14+
Then you need to run an install command to create two minified `js` files `["mermaid.min.js", "mermaid-init.js"]` to render mermaid diagrams:
15+
16+
```bash
17+
cargo install mdbook-mermaid
18+
mdbook-mermaid install path/to/book
19+
```
20+
1321
To have a live interactive instance when working with docs, you can use mdBook's `watch` feature.
1422

1523
```bash
1624
mdbook watch path/to/book
1725
```
1826

19-
Or use the Makefile utility `make doc-watch` from the rood.
27+
Or use the Makefile utility `make doc-watch` from the root of syncstorage-rs.
2028

2129
To build documentation locally, run:
2230

0 commit comments

Comments
 (0)