mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-03 12:17:20 +02:00
99 lines
2.2 KiB
TypeScript
99 lines
2.2 KiB
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 to document
|
|
*/
|
|
|
|
export {
|
|
useThemeConfig,
|
|
type ThemeConfig,
|
|
type UserThemeConfig,
|
|
type Navbar,
|
|
type NavbarItem,
|
|
type NavbarLogo,
|
|
type MultiColumnFooter,
|
|
type SimpleFooter,
|
|
type Footer,
|
|
type FooterLogo,
|
|
type FooterLinkItem,
|
|
type ColorModeConfig,
|
|
} from './utils/useThemeConfig';
|
|
|
|
export {
|
|
createStorageSlot,
|
|
useStorageSlot,
|
|
listStorageKeys,
|
|
} from './utils/storageUtils';
|
|
|
|
export {useContextualSearchFilters} from './utils/searchUtils';
|
|
|
|
export {
|
|
useCurrentSidebarCategory,
|
|
filterDocCardListItems,
|
|
} from './utils/docsUtils';
|
|
|
|
export {usePluralForm} from './utils/usePluralForm';
|
|
|
|
export {useCollapsible, Collapsible} from './components/Collapsible';
|
|
|
|
export {ThemeClassNames} from './utils/ThemeClassNames';
|
|
|
|
export {
|
|
useIsomorphicLayoutEffect,
|
|
useEvent,
|
|
usePrevious,
|
|
composeProviders,
|
|
ReactContextError,
|
|
} from './utils/reactUtils';
|
|
|
|
export {PageMetadata, HtmlClassNameProvider} from './utils/metadataUtils';
|
|
|
|
export {useColorMode, type ColorMode} from './contexts/colorMode';
|
|
|
|
export {
|
|
NavbarSecondaryMenuFiller,
|
|
type NavbarSecondaryMenuComponent,
|
|
} from './contexts/navbarSecondaryMenu/content';
|
|
|
|
export {useWindowSize} from './hooks/useWindowSize';
|
|
|
|
/*
|
|
* APIs kept undocumented, on purpose
|
|
* Note: we still guarantee retro-compatibility on those
|
|
*/
|
|
|
|
export {
|
|
translateTagsPageTitle,
|
|
listTagsByLetters,
|
|
type TagLetterEntry,
|
|
} from './utils/tagsUtils';
|
|
|
|
export {isMultiColumnFooterLinks} from './utils/footerUtils';
|
|
|
|
export {isRegexpStringMatch} from './utils/regexpUtils';
|
|
|
|
export {duplicates, uniq} from './utils/jsUtils';
|
|
|
|
export {usePrismTheme} from './hooks/usePrismTheme';
|
|
|
|
export {useDocsPreferredVersion} from './contexts/docsPreferredVersion';
|
|
|
|
export {processAdmonitionProps} from './utils/admonitionUtils';
|
|
|
|
export {
|
|
SkipToContentFallbackId,
|
|
SkipToContentLink,
|
|
} from './utils/skipToContentUtils';
|
|
|
|
export {
|
|
UnlistedBannerTitle,
|
|
UnlistedBannerMessage,
|
|
UnlistedMetadata,
|
|
} from './utils/unlistedUtils';
|
|
|
|
export {ErrorBoundaryTryAgainButton} from './utils/errorBoundaryUtils';
|