blob: 46a3f559cfc4a047a1b159f52b5ec89a173548ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
## Docs.rs Extensions
This directory includes some templates and styling to extend and modify [rustdoc]'s output
for Azalea's documentation on [docs.rs].
See [Bevy's documentation](https://github.com/bevyengine/bevy/tree/main/docs-rs) for more info on `trait-tags`.
## Local Testing
Building the documentation with the extensions enabled can be done like this:
```bash
RUSTDOCFLAGS="--html-after-content docs-rs/trait-tags.html --html-after-content docs-rs/arborium-header.html --cfg docsrs_dep" RUSTFLAGS="--cfg docsrs_dep" cargo doc --no-deps --package <package_name>
```
[rustdoc]: https://doc.rust-lang.org/rustdoc/what-is-rustdoc.html
[docs.rs]: https://docs.rs
|