docusaurus/packages/docusaurus-plugin-content-docs/src/server-export.ts
Sébastien Lorber 18b47fdfc1
refactor(docs): extract loadVersion() without changing the behavior (#11230)
* refactor, extract loadVersion() without changing behavior

* Add minimal test case for loadVersion()

* Add minimal test case for loadVersion()

* more refactor, rename index.ts to version.ts

* fix tests

* empty
2025-06-02 18:44:07 +02:00

26 lines
710 B
TypeScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// APIs available to Node.js
// Those are undocumented but used by some third-party plugins
// For this reason it's preferable to avoid doing breaking changes
// See also https://github.com/facebook/docusaurus/pull/6477
export {
CURRENT_VERSION_NAME,
VERSIONED_DOCS_DIR,
VERSIONED_SIDEBARS_DIR,
VERSIONS_JSON_FILE,
} from './constants';
export {
filterVersions,
getDefaultVersionBanner,
getVersionBadge,
getVersionBanner,
} from './versions/version';
export {readVersionNames} from './versions/files';