xtask: Disallow linking to the unstable spec
This can be re-enabled if a legitimate use case is found.
This commit is contained in:
parent
f159776f52
commit
5e6fe83d38
@ -27,8 +27,12 @@ impl Spec {
|
|||||||
&["https://matrix.org/docs/spec/index.html#complete-list-of-room-versions"];
|
&["https://matrix.org/docs/spec/index.html#complete-list-of-room-versions"];
|
||||||
|
|
||||||
/// Authorized versions in URLs pointing to the new specs.
|
/// Authorized versions in URLs pointing to the new specs.
|
||||||
const NEW_VERSION_WHITELIST: &'static [&'static str] =
|
const NEW_VERSION_WHITELIST: &'static [&'static str] = &[
|
||||||
&["v1.1", "v1.2", "v1.3", "v1.4", "v1.5", "latest", "unstable"];
|
"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`.
|
/// Get the start of the URLs pointing to this `Spec`.
|
||||||
const fn url_prefix(&self) -> &'static str {
|
const fn url_prefix(&self) -> &'static str {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user