xtask: Disallow linking to the unstable spec

This can be re-enabled if a legitimate use case is found.
This commit is contained in:
Kévin Commaille 2023-02-10 13:41:33 +01:00 committed by Kévin Commaille
parent f159776f52
commit 5e6fe83d38

View File

@ -27,8 +27,12 @@ impl Spec {
&["https://matrix.org/docs/spec/index.html#complete-list-of-room-versions"];
/// Authorized versions in URLs pointing to the new specs.
const NEW_VERSION_WHITELIST: &'static [&'static str] =
&["v1.1", "v1.2", "v1.3", "v1.4", "v1.5", "latest", "unstable"];
const NEW_VERSION_WHITELIST: &'static [&'static str] = &[
"v1.1", "v1.2", "v1.3", "v1.4", "v1.5",
"latest",
// This should only be enabled if a legitimate use case is found.
// "unstable",
];
/// Get the start of the URLs pointing to this `Spec`.
const fn url_prefix(&self) -> &'static str {