docusaurus/packages/docusaurus-plugin-content-docs
Danny Lin 79031af16f
fix(v2): allow negative sidebar positions (#5074)
In some cases, negative sidebar positions can be useful for reversing
the sorting order with minimal maintenance overhead. For example, a docs
folder with changelogs for historical versions should be sorted in
reverse chronological order. This is easy to do for semantic version
numbers by converting them into a negative numerical representation,
e.g. 11.5.1 -> -110501.

The alternative is to make the first version start with a large position
number (e.g. 9999) and decrement it for each version. However, this
requires referring to older versions to get the current sequence number,
thus increasing maintenance overhead. It also makes the number less
intuitive and more prone to error.

Negative sidebar positions work great for this purpose, so make the
front matter validator allow them again as #4796 broke this use case.
2021-06-28 19:59:05 +02:00
..
src fix(v2): allow negative sidebar positions (#5074) 2021-06-28 19:59:05 +02:00
package.json chore(v2): prepare v2.0.0-beta.2 release (#5056) 2021-06-24 19:39:37 +02:00
README.md chore: rename v2.docusaurus.io urls after domain switch + redirect + cleanups (#4490) 2021-03-22 20:57:49 +01:00
tsconfig.json misc(v2): remove legacy from docs 2019-10-10 19:45:50 -07:00
types.d.ts chore(v2): fix several lint warnings, add missing types, cleanup (#3844) 2020-11-30 16:42:58 +01:00

@docusaurus/plugin-content-docs

Docs plugin for Docusaurus.

Usage

See plugin-content-docs documentation.