···552552 #[arg(long, value_name("FORMAT"), verbatim_doc_comment)]
553553 repo_url_template: Option<String>,
554554555555+ // TODO: cannot use `output.html.site-url` because it is always `/` during `mdbook serve`
555556 /// Specify the canonical URL at which you deploy your book.
556557 ///
557558 /// For example:
···1111```
12121313<permalinks-options>(auto-generated)</permalinks-options>
1414+1515+## `output.html.git-repository-url`
1616+1717+> [!NOTE]
1818+>
1919+> This option is configured under [mdBook's `[output.html]`
2020+> table][html-renderer-options].
2121+2222+If configured, this URL will be the prefix of the generated permalinks.
2323+2424+If not configured, the preprocessor will attempt to retrieve a URL from the Git remote
2525+with the name `origin`.
2626+2727+<!-- prettier-ignore-start -->
2828+[html-renderer-options]: https://rust-lang.github.io/mdBook/format/configuration/renderers.html#html-renderer-options
2929+<!-- prettier-ignore-end -->
+2
docs/src/permalinks/getting-started.md
···8899Alternatively, you may obtain precompiled binaries from [GitHub releases][gh-releases].
10101111+{{#include ../snippets/mdbook-0.4.md}}
1212+1113## Configure
12141315Configure your `book.toml` to use the installed program as a [preprocessor]:
+2-1
docs/src/rustdoc-links/getting-started.md
···55You will need to:
66771. Have [rust-analyzer].:
88-98 - If you already use the [VS Code extension][ra-extension], no setup is required: the
109 preprocessor automatically uses the server binary packaged with it.
1110 - Otherwise, [install][ra-install] rust-analyzer (e.g. via `rustup`) and make sure it
···2120 releases][gh-releases].
22212322 <!-- TODO: cargo binstall -->
2323+2424+{{#include ../snippets/mdbook-0.4.md}}
24252526## Configure
2627
+7
docs/src/snippets/mdbook-0.4.md
···11+> [!NOTE]
22+>
33+> This preprocessor supports mdBook **v0.5**.
44+>
55+> As of mdBook v0.5.2, it can also be used with mdBook v0.4. However, mdBook v0.4 is no
66+> longer supported and the preprocessor is not guaranteed to remain compatible with it
77+> in the future.