mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 01:09:20 +02:00
refactor: new @docusaurus/plugin-content-docs/client interface (#6287)
This commit is contained in:
parent
3bc63b2b09
commit
024f2bf49b
20 changed files with 48 additions and 39 deletions
|
@ -16,7 +16,10 @@ import React, {
|
|||
import {useThemeConfig, type DocsVersionPersistence} from '../useThemeConfig';
|
||||
import {isDocsPluginEnabled} from '../docsUtils';
|
||||
|
||||
import {useAllDocsData, type GlobalPluginData} from '@theme/hooks/useDocs';
|
||||
import {
|
||||
useAllDocsData,
|
||||
type GlobalPluginData,
|
||||
} from '@docusaurus/plugin-content-docs/client';
|
||||
|
||||
import DocsPreferredVersionStorage from './DocsPreferredVersionStorage';
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
useAllDocsData,
|
||||
useDocsData,
|
||||
type GlobalVersion,
|
||||
} from '@theme/hooks/useDocs';
|
||||
} from '@docusaurus/plugin-content-docs/client';
|
||||
|
||||
import {DEFAULT_PLUGIN_ID} from '@docusaurus/constants';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import React, {createContext, type ReactNode, useContext} from 'react';
|
||||
import {useAllDocsData} from '@theme/hooks/useDocs';
|
||||
import {useAllDocsData} from '@docusaurus/plugin-content-docs/client';
|
||||
import type {
|
||||
PropSidebar,
|
||||
PropSidebarItem,
|
||||
|
|
|
@ -5,7 +5,10 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import {useAllDocsData, useActivePluginAndVersion} from '@theme/hooks/useDocs';
|
||||
import {
|
||||
useAllDocsData,
|
||||
useActivePluginAndVersion,
|
||||
} from '@docusaurus/plugin-content-docs/client';
|
||||
import {useDocsPreferredVersionByPluginId} from './docsPreferredVersion/useDocsPreferredVersion';
|
||||
import {docVersionSearchTag, DEFAULT_SEARCH_TAG} from './searchUtils';
|
||||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue