mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-18 02:32:28 +02:00
refactor(content-docs): split version handling into several files (#7140)
* refactor(content-docs): split version handling into several files * fix test * increase timeout
This commit is contained in:
parent
7d44961d8b
commit
96fbcb3f51
12 changed files with 618 additions and 698 deletions
|
@ -5,9 +5,11 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
// The name of the version at the root of your site (website/docs)
|
||||
/** The name of the version that's actively worked on (e.g. `website/docs`) */
|
||||
export const CURRENT_VERSION_NAME = 'current';
|
||||
|
||||
/** All doc versions are stored here by version names */
|
||||
export const VERSIONED_DOCS_DIR = 'versioned_docs';
|
||||
/** All doc versioned sidebars are stored here by version names */
|
||||
export const VERSIONED_SIDEBARS_DIR = 'versioned_sidebars';
|
||||
/** The version names. Should 1-1 map to the content of versioned docs dir. */
|
||||
export const VERSIONS_JSON_FILE = 'versions.json';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue