You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[2.0.0-alpha.73] Numeric value in subdirectory of DOCS yields issues with sideba #4653
Yes, this is a new "number prefix" feature that we introduced recently: by default it will try to parse patterns such as 001-MyDoc.md
I'm currently working to make this parsing logic configurable (allowing to disable this too) for your site. There's a frontmatter to disable this per doc already.
It probably makes sense to ignore patterns with consecutive numbers by default, like 2021-01 and 8.0.0, yet parse 8-MyDoc.md
It is a best-effort because it's hard to predic doc name patterns that users will use, and I think it's convenient to have this feature enabled by default as it easy adoption of Docusaurus for existing docs on github using number prefixes for doc ordering, as the newly introduced autogenerated sidebar would become ordered in the correct order by default.
Activity
slorber commentedon Apr 21, 2021
Yes, this is a new "number prefix" feature that we introduced recently: by default it will try to parse patterns such as
001-MyDoc.mdI'm currently working to make this parsing logic configurable (allowing to disable this too) for your site. There's a frontmatter to disable this per doc already.
It probably makes sense to ignore patterns with consecutive numbers by default, like
2021-01and8.0.0, yet parse8-MyDoc.mdIt is a best-effort because it's hard to predic doc name patterns that users will use, and I think it's convenient to have this feature enabled by default as it easy adoption of Docusaurus for existing docs on github using number prefixes for doc ordering, as the newly introduced autogenerated sidebar would become ordered in the correct order by default.
Closing as duplicate of #4640
Will release a fix very soon
TomPeirs commentedon Apr 21, 2021
Thank you for clarifying :-)
slorber commentedon Apr 21, 2021
np :)
PR is here: #4655
Will be released before the end of the week but you can try using the
@canarydist tag once it's merged.If you think of any other file/folder pattern using numbers that should not be stripped, let me know