···11# mdbook-permalinks
22+33+An [mdBook] [preprocessor] that lets you link to files in your Git repository using
44+paths instead of hard-coded URLs.
55+66+You simply write ...
77+88+```md
99+Here is a link to the project's [Cargo.toml](../Cargo.toml).
1010+```
1111+1212+... and the preprocessor will convert the link to a versioned permalink during build.
1313+Supports GitHub or
1414+[your Git remote of choice](https://tonywu6.github.io/mdbookkit/permalinks/configuration#repo-url-template).
1515+1616+## To see it in action, [read the book!][book]
1717+1818+<!-- prettier-ignore-start -->
1919+2020+**Quick access**
2121+| [Install](https://tonywu6.github.io/mdbookkit/permalinks/getting-started#install)
2222+| [Quickstart](https://tonywu6.github.io/mdbookkit/permalinks/getting-started#configure)
2323+| [Features](https://tonywu6.github.io/mdbookkit/permalinks/features)
2424+| [Options](https://tonywu6.github.io/mdbookkit/permalinks/configuration)
2525+2626+<!-- prettier-ignore-end -->
2727+2828+```sh
2929+cargo install mdbook-permalinks
3030+```
3131+3232+<!-- prettier-ignore-start -->
3333+3434+[mdBook]: https://rust-lang.github.io/mdBook/
3535+[preprocessor]: https://rust-lang.github.io/mdBook/format/configuration/preprocessors.html
3636+[book]: https://tonywu6.github.io/mdbookkit/permalinks
3737+3838+<!-- prettier-ignore-end -->
+53
crates/mdbook-rustdoc-links/README.md
···11# mdbook-rustdoc-links
22+33+An [mdBook] [preprocessor] that lets you link to Rust API docs by name,
44+[_rustdoc_-style][rustdoc]
55+66+Instead of manually sourcing URLs from [docs.rs](https://docs.rs), you simply write ...
77+88+```md
99+The [`tokio::time`] module provides utilities for tracking time and scheduling work.
1010+This includes functions for setting [timeouts][tokio::time::timeout] for tasks,
1111+[sleeping][tokio::time::sleep] work to run in the future, or [repeating an operation at
1212+an interval][tokio::time::interval].
1313+```
1414+1515+.. and you get:
1616+1717+<!-- (generated by running `cargo run -- markdown < README.md`) -->
1818+1919+<!-- prettier-ignore-start -->
2020+2121+> The [`tokio::time`](https://docs.rs/tokio/1.44.2/tokio/time/index.html "tokio::time") module provides utilities for tracking time and scheduling work.
2222+> This includes functions for setting [timeouts](https://docs.rs/tokio/1.44.2/tokio/time/timeout/fn.timeout.html "tokio::time::timeout") for tasks,
2323+> [sleeping](https://docs.rs/tokio/1.44.2/tokio/time/sleep/fn.sleep.html "tokio::time::sleep") work to run in the future, or [repeating an operation at
2424+an interval](https://docs.rs/tokio/1.44.2/tokio/time/interval/fn.interval.html "tokio::time::interval"). [^1]
2525+2626+<!-- prettier-ignore-end -->
2727+2828+## To see it in action, [read the book!][book]
2929+3030+<!-- prettier-ignore-start -->
3131+3232+**Quick access**
3333+| [Install](https://tonywu6.github.io/mdbookkit/rustdoc-links/getting-started#install)
3434+| [Quickstart](https://tonywu6.github.io/mdbookkit/rustdoc-links/getting-started#configure)
3535+| [Features](https://tonywu6.github.io/mdbookkit/rustdoc-links/supported-syntax)
3636+| [Options](https://tonywu6.github.io/mdbookkit/rustdoc-links/configuration)
3737+3838+<!-- prettier-ignore-end -->
3939+4040+```sh
4141+cargo install mdbook-rustdoc-links
4242+```
4343+4444+[^1]: Text adapted from [<cite>A Tour of Tokio</cite>][tour]
4545+4646+<!-- prettier-ignore-start -->
4747+4848+[mdBook]: https://rust-lang.github.io/mdBook/
4949+[preprocessor]: https://rust-lang.github.io/mdBook/format/configuration/preprocessors.html
5050+[rustdoc]: https://doc.rust-lang.org/rustdoc/write-documentation/linking-to-items-by-name.html
5151+[book]: https://tonywu6.github.io/mdbookkit/rustdoc-links
5252+[tour]: https://docs.rs/tokio/1.44.2/tokio/index.html#working-with-tasks
5353+5454+<!-- prettier-ignore-end -->
+1-1
crates/mdbook-rustdoc-links/src/sync.rs
···9494/// Listens to events over an [`mpsc::Receiver<Poll<T>>`] and [notifies][Notify]
9595/// subscribers of [`Poll::Ready`], but only if they are not "immediately"
9696/// followed by more [`Poll::Pending`], the timing of which is determined by a
9797-/// configured [buffering time][EventSampling::buffer].
9797+/// configured [buffering time][Debouncing::debounce].
9898///
9999/// [debouncing]: https://developer.mozilla.org/en-US/docs/Glossary/Debounce
100100#[derive(Debug, Clone)]
+15
crates/mdbookkit/README.md
···11# mdbookkit
22+33+Support library for [mdBook] [preprocessors] in the
44+[`mdbookkit`](https://github.com/tonywu6/mdbokkkit) project.
55+66+You may be looking for:
77+88+- [`mdbook-rustdoc-links`](https://tonywu6.github.io/mdbookkit/rustdoc-links/)
99+- [`mdbook-permalinks`](https://tonywu6.github.io/mdbookkit/permalinks/)
1010+1111+<!-- prettier-ignore-start -->
1212+1313+[mdBook]: https://rust-lang.github.io/mdBook/
1414+[preprocessors]: https://rust-lang.github.io/mdBook/format/configuration/preprocessors.html
1515+1616+<!-- prettier-ignore-end -->
+1
crates/mdbookkit/src/lib.rs
···11#![warn(clippy::unwrap_used)]
22+#![doc = include_str!("../README.md")]
2334pub mod book;
45pub mod diagnostics;
···11+# INTERNAL
22+33+> [!NOTE]
44+>
55+> This page is included only for validation purposes during page build and is not
66+> intended for reading. See [mdbook-permalinks](../permalinks/index.md) instead.
77+88+{{#include ../../../crates/mdbook-permalinks/README.md}}
+8
docs/src/_internal/mdbook-rustdoc-links-README.md
···11+# INTERNAL
22+33+> [!NOTE]
44+>
55+> This page is included only for validation purposes during page build and is not
66+> intended for reading. See [mdbook-rustdoc-links](../rustdoc-links/index.md) instead.
77+88+{{#include ../../../crates/mdbook-rustdoc-links/README.md}}
+8
docs/src/_internal/mdbookkit-README.md
···11+# INTERNAL
22+33+> [!NOTE]
44+>
55+> This page is included only for validation purposes during page build and is not
66+> intended for reading.
77+88+{{#include ../../../crates/mdbookkit/README.md}}
+1-1
docs/src/permalinks/index.md
···33Create permalinks to files in your Git repository using paths.
4455Link to source code, examples, configuration files, etc., in your [mdBook]
66-documentation, without having to hardcode URLs or worry about broken links. You simply
66+documentation, without having to hard-code URLs or worry about broken links. You simply
77write ...
8899```md
+2-2
docs/src/permalinks/more-ways-to-link.md
···2020 external : The link points to ...
2121 relativePath : Use a relative path
2222 absolutePath : Use an absolute path
2323- bookUrl : Hardcode the URL to your <br>book's website
2424- repoUrl : Hardcode the URL to your <br>Git remote
2323+ bookUrl : Hard-code the URL to your <br>book's website
2424+ repoUrl : Hard-code the URL to your <br>Git remote
25252626 start --> included: Yes
2727 start --> relativePath: No