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:
Joshua Chen 2022-04-09 17:08:57 +08:00 committed by GitHub
parent 7d44961d8b
commit 96fbcb3f51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 618 additions and 698 deletions

View file

@ -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';