Add rustdoc flag to sort modules by XEP number

`--sort-modules-by-appearance` needs to be passed to rustdoc for this to
happen. I haven't found a way to make it so that we don't have to add
this flag manually each time we build locally. This config option should
at least fix it for docs.rs.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-02-04 16:05:05 +00:00 committed by Emmanuel Gil Peyrot
parent 637c3eadd7
commit a076221c9a

View file

@ -30,3 +30,6 @@ try_from = "0.3.2"
component = []
# Disable validation of unknown attributes.
disable-validation = []
[package.metadata.docs.rs]
rustdoc-args = [ "--sort-modules-by-appearance", "-Z unstable-options" ]