Skip to content

Commit

Permalink
Updated rules_rust_mdbook docs (#3108)
Browse files Browse the repository at this point in the history
A miss from #3105
  • Loading branch information
UebelAndre authored Dec 16, 2024
1 parent c263575 commit 8cedb93
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions docs/src/rust_mdbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ Bazel rules for [mdBook](https://github.com/rust-lang/mdBook).

## Setup

### bzlmod

```python
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
bazel_dep(name = "rules_rust_mdbook", version = "{SEE_RELEASE_NOTES}")
```

# See releases for urls and checksums
http_archive(
name = "rules_mdbook",
integrity = "{integrity}",
urls = ["https://github.com/abrisco/rules_mdbook/releases/download/{version}/rules_mdbook-{version}.tar.gz"],
)
### WORKSPACE

```python
load("@rules_rust_mdbook//:repositories.bzl", "mdbook_register_toolchains", "rules_mdbook_dependencies")

rules_mdbook_dependencies()
Expand Down
13 changes: 6 additions & 7 deletions extensions/mdbook/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ Bazel rules for [mdBook](https://github.com/rust-lang/mdBook).
## Setup
### bzlmod
```python
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
bazel_dep(name = "rules_rust_mdbook", version = "{SEE_RELEASE_NOTES}")
```
# See releases for urls and checksums
http_archive(
name = "rules_mdbook",
integrity = "{integrity}",
urls = ["https://github.com/abrisco/rules_mdbook/releases/download/{version}/rules_mdbook-{version}.tar.gz"],
)
### WORKSPACE
```python
load("@rules_rust_mdbook//:repositories.bzl", "mdbook_register_toolchains", "rules_mdbook_dependencies")
rules_mdbook_dependencies()
Expand Down

0 comments on commit 8cedb93

Please sign in to comment.