mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-05 13:17:23 +02:00
* feat(v2): mobile TOC * Bug fixes and various improvements * Redesign * extract TOCCollapsible component * TS improvements * Assign sidebar name directly to the doc route => no need for either permalinkToSidebar or GlobalData * revert changes to useWindowSize, fix FOUC issues * extract DocSidebarDesktop component * remove now useless menu infima classes * TOCHeadings => rename + remove unused onClick prop * Extract DocSidebarItem * minor renaming * replace GlobalData usage by a React teleport system to render in the navbar mobile sidebar menu directly from the DocPage component * useWindowSize => simulate SSR size in dev to make FOUC issues more obvious * fix remaining sidebar layout shift * update docs snapshots * remove unused code translations * remove unused code translations * fix minor update-code-translations bug * Add more build-size paths to watch * Restyle back button * Add missing`menu` class * extract useShallowMemoizedObject * fix routes tests + better routes formatting * use Translate api for labels * use Translate api for labels * Update translations * Improve dark mode support for back button * Merge branch 'master' into lex111/inline-color-code # Conflicts: # packages/core/dist/css/default-dark/default-dark-rtl.min.css # packages/core/dist/css/default-dark/default-dark.min.css # packages/core/dist/css/default/default-rtl.min.css # packages/core/dist/css/default/default.min.css * replace useCollapse by new useCollapsible * Cleanup and use clean-btn for TOCCollapsible button * Make TOC links clickable over full width * Cleanup * fix uncollapsible sidebar that can be collapsed + create <Collapsible> component * dependency array typo * rollback sidebars community commit typo Co-authored-by: slorber <lorber.sebastien@gmail.com>
65 lines
1.7 KiB
TypeScript
65 lines
1.7 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.
|
|
*/
|
|
|
|
export {useThemeConfig} from './utils/useThemeConfig';
|
|
|
|
export type {
|
|
ThemeConfig,
|
|
Navbar,
|
|
NavbarItem,
|
|
NavbarLogo,
|
|
Footer,
|
|
FooterLinks,
|
|
FooterLinkItem,
|
|
} from './utils/useThemeConfig';
|
|
|
|
export {createStorageSlot, listStorageKeys} from './utils/storageUtils';
|
|
|
|
export {useAlternatePageUtils} from './utils/useAlternatePageUtils';
|
|
|
|
export {parseCodeBlockTitle} from './utils/codeBlockUtils';
|
|
|
|
export {docVersionSearchTag, DEFAULT_SEARCH_TAG} from './utils/searchUtils';
|
|
|
|
export {isDocsPluginEnabled} from './utils/docsUtils';
|
|
|
|
export {isSamePath} from './utils/pathUtils';
|
|
|
|
export {useTitleFormatter} from './utils/generalUtils';
|
|
|
|
export {usePluralForm} from './utils/usePluralForm';
|
|
|
|
export {useLocationChange} from './utils/useLocationChange';
|
|
|
|
export {usePrevious} from './utils/usePrevious';
|
|
|
|
export {useCollapsible, Collapsible} from './utils/useCollapsible';
|
|
export type {
|
|
UseCollapsibleConfig,
|
|
UseCollapsibleReturns,
|
|
} from './utils/useCollapsible';
|
|
|
|
export {
|
|
MobileSecondaryMenuProvider,
|
|
MobileSecondaryMenuFiller,
|
|
useMobileSecondaryMenuRenderer,
|
|
} from './utils/mobileSecondaryMenu';
|
|
export type {MobileSecondaryMenuComponent} from './utils/mobileSecondaryMenu';
|
|
|
|
export {
|
|
useDocsPreferredVersion,
|
|
useDocsPreferredVersionByPluginId,
|
|
} from './utils/docsPreferredVersion/useDocsPreferredVersion';
|
|
|
|
export {DocsPreferredVersionContextProvider} from './utils/docsPreferredVersion/DocsPreferredVersionProvider';
|
|
|
|
export {ThemeClassNames} from './utils/ThemeClassNames';
|
|
|
|
export {
|
|
AnnouncementBarProvider,
|
|
useAnnouncementBar,
|
|
} from './utils/announcementBarUtils';
|