@docusaurus/theme-classic 0.0.0-5010 → 0.0.0-5012
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -2
- package/lib-next/theme/BlogArchivePage/index.js +1 -1
- package/lib-next/theme/BlogListPage/index.js +4 -4
- package/lib-next/theme/BlogPostItem/index.js +2 -2
- package/lib-next/theme/BlogPostPage/index.js +4 -4
- package/lib-next/theme/BlogSidebar/index.js +1 -1
- package/lib-next/theme/BlogTagsListPage/index.js +3 -3
- package/lib-next/theme/BlogTagsPostsPage/index.js +5 -4
- package/lib-next/theme/CodeBlock/Content/Element.js +1 -1
- package/lib-next/theme/CodeBlock/Content/String.js +1 -1
- package/lib-next/theme/CodeBlock/index.js +1 -1
- package/lib-next/theme/ColorModeToggle/index.js +1 -1
- package/lib-next/theme/DocBreadcrumbs/index.js +3 -3
- package/lib-next/theme/DocCard/index.js +2 -2
- package/lib-next/theme/DocCardList/index.js +1 -1
- package/lib-next/theme/DocCategoryGeneratedIndexPage/index.js +1 -1
- package/lib-next/theme/DocItem/index.js +7 -7
- package/lib-next/theme/DocItemFooter/index.js +1 -1
- package/lib-next/theme/DocPage/Layout/Main/index.js +1 -1
- package/lib-next/theme/DocPage/Layout/Sidebar/ExpandButton/index.js +1 -1
- package/lib-next/theme/DocPage/Layout/Sidebar/index.js +4 -4
- package/lib-next/theme/DocPage/Layout/index.js +1 -1
- package/lib-next/theme/DocPage/index.js +2 -2
- package/lib-next/theme/DocSidebar/Desktop/CollapseButton/index.js +1 -1
- package/lib-next/theme/DocSidebarItem/Category/index.js +3 -2
- package/lib-next/theme/DocSidebarItems/index.js +1 -1
- package/lib-next/theme/DocTagDocListPage/index.js +3 -2
- package/lib-next/theme/DocTagsListPage/index.js +2 -2
- package/lib-next/theme/DocVersionBadge/index.js +1 -1
- package/lib-next/theme/DocVersionBanner/index.js +1 -1
- package/lib-next/theme/EditThisPage/index.js +1 -1
- package/lib-next/theme/Footer/Logo/index.js +1 -1
- package/lib-next/theme/Layout/index.js +5 -5
- package/lib-next/theme/Logo/index.js +1 -1
- package/lib-next/theme/MDXComponents/Ul.js +2 -2
- package/lib-next/theme/MDXPage/index.js +3 -3
- package/lib-next/theme/Navbar/ColorModeToggle/index.js +1 -1
- package/lib-next/theme/Navbar/Content/index.js +3 -3
- package/lib-next/theme/Navbar/Layout/index.js +1 -1
- package/lib-next/theme/Navbar/MobileSidebar/Header/index.js +1 -1
- package/lib-next/theme/Navbar/MobileSidebar/PrimaryMenu/index.js +1 -1
- package/lib-next/theme/Navbar/MobileSidebar/Toggle/index.js +1 -1
- package/lib-next/theme/Navbar/MobileSidebar/index.js +2 -2
- package/lib-next/theme/NavbarItem/DocNavbarItem.js +3 -3
- package/lib-next/theme/NavbarItem/DocSidebarNavbarItem.js +3 -3
- package/lib-next/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +2 -2
- package/lib-next/theme/NavbarItem/DocsVersionNavbarItem.js +1 -1
- package/lib-next/theme/NavbarItem/LocaleDropdownNavbarItem/index.js +2 -2
- package/lib-next/theme/NavbarItem/NavbarNavLink.js +1 -1
- package/lib-next/theme/NotFound.js +1 -1
- package/lib-next/theme/SiteMetadata/index.js +2 -2
- package/lib-next/theme/TOCInline/index.js +1 -1
- package/lib-next/theme/TOCItems/index.js +1 -1
- package/lib-next/theme/Tabs/__tests__/index.test.js +2 -2
- package/lib-next/theme/Tabs/index.js +1 -1
- package/lib-next/theme/TagsListByLetter/index.js +1 -1
- package/package.json +13 -13
- package/src/index.ts +4 -4
- package/src/theme/BlogArchivePage/index.tsx +2 -2
- package/src/theme/BlogListPage/index.tsx +5 -5
- package/src/theme/BlogPostAuthors/index.tsx +1 -1
- package/src/theme/BlogPostItem/index.tsx +2 -2
- package/src/theme/BlogPostPage/index.tsx +5 -5
- package/src/theme/BlogSidebar/Desktop/index.tsx +1 -1
- package/src/theme/BlogSidebar/index.tsx +1 -1
- package/src/theme/BlogTagsListPage/index.tsx +4 -5
- package/src/theme/BlogTagsPostsPage/index.tsx +5 -6
- package/src/theme/CodeBlock/Content/Element.tsx +1 -1
- package/src/theme/CodeBlock/Content/String.tsx +1 -1
- package/src/theme/CodeBlock/Line/index.tsx +1 -0
- package/src/theme/CodeBlock/index.tsx +1 -1
- package/src/theme/ColorModeToggle/index.tsx +2 -2
- package/src/theme/Details/index.tsx +1 -0
- package/src/theme/DocBreadcrumbs/index.tsx +3 -2
- package/src/theme/DocCard/index.tsx +7 -6
- package/src/theme/DocCardList/index.tsx +2 -3
- package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +2 -2
- package/src/theme/DocItem/index.tsx +9 -8
- package/src/theme/DocItemFooter/index.tsx +2 -3
- package/src/theme/DocPage/Layout/Main/index.tsx +2 -3
- package/src/theme/DocPage/Layout/Sidebar/ExpandButton/index.tsx +1 -1
- package/src/theme/DocPage/Layout/Sidebar/index.tsx +4 -5
- package/src/theme/DocPage/Layout/index.tsx +2 -2
- package/src/theme/DocPage/index.tsx +3 -5
- package/src/theme/DocSidebar/Desktop/CollapseButton/index.tsx +1 -1
- package/src/theme/DocSidebar/index.tsx +1 -1
- package/src/theme/DocSidebarItem/Category/index.tsx +1 -3
- package/src/theme/DocSidebarItem/Link/index.tsx +0 -1
- package/src/theme/DocSidebarItems/index.tsx +1 -1
- package/src/theme/DocTagDocListPage/index.tsx +3 -4
- package/src/theme/DocTagsListPage/index.tsx +3 -4
- package/src/theme/DocVersionBadge/index.tsx +1 -1
- package/src/theme/DocVersionBanner/index.tsx +1 -1
- package/src/theme/EditThisPage/index.tsx +2 -3
- package/src/theme/Footer/Links/MultiColumn/index.tsx +1 -1
- package/src/theme/Footer/Links/Simple/index.tsx +1 -1
- package/src/theme/Footer/Links/index.tsx +1 -1
- package/src/theme/Footer/Logo/index.tsx +2 -2
- package/src/theme/Heading/index.tsx +1 -1
- package/src/theme/IconEdit/index.tsx +0 -1
- package/src/theme/LastUpdated/index.tsx +1 -1
- package/src/theme/Layout/index.tsx +6 -6
- package/src/theme/Logo/index.tsx +2 -3
- package/src/theme/MDXComponents/Img/index.tsx +1 -1
- package/src/theme/MDXComponents/Ul.tsx +2 -2
- package/src/theme/MDXPage/index.tsx +4 -4
- package/src/theme/Navbar/ColorModeToggle/index.tsx +1 -1
- package/src/theme/Navbar/Content/index.tsx +5 -4
- package/src/theme/Navbar/Layout/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/Header/index.tsx +1 -1
- package/src/theme/Navbar/MobileSidebar/Layout/index.tsx +1 -1
- package/src/theme/Navbar/MobileSidebar/PrimaryMenu/index.tsx +1 -1
- package/src/theme/Navbar/MobileSidebar/Toggle/index.tsx +1 -1
- package/src/theme/Navbar/MobileSidebar/index.tsx +2 -2
- package/src/theme/NavbarItem/DefaultNavbarItem.tsx +1 -4
- package/src/theme/NavbarItem/DocNavbarItem.tsx +3 -3
- package/src/theme/NavbarItem/DocSidebarNavbarItem.tsx +3 -4
- package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +3 -3
- package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/DropdownNavbarItem.tsx +2 -3
- package/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx +3 -3
- package/src/theme/NavbarItem/NavbarNavLink.tsx +2 -2
- package/src/theme/NavbarItem/SearchNavbarItem.tsx +1 -1
- package/src/theme/NavbarItem/index.tsx +1 -2
- package/src/theme/NotFound.tsx +1 -1
- package/src/theme/SiteMetadata/index.tsx +1 -1
- package/src/theme/TOC/index.tsx +2 -1
- package/src/theme/TOCCollapsible/index.tsx +1 -1
- package/src/theme/TOCInline/index.tsx +2 -1
- package/src/theme/TOCItems/index.tsx +2 -2
- package/src/theme/TabItem/index.tsx +1 -1
- package/src/theme/Tabs/index.tsx +1 -2
- package/src/theme/TagsListByLetter/index.tsx +1 -1
- package/src/theme/ThemedImage/index.tsx +0 -1
- package/src/translations.ts +2 -3
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import {useNavbarMobileSidebar, useThemeConfig} from '@docusaurus/theme-common';
|
|
9
|
-
import NavbarItem from '
|
|
9
|
+
import NavbarItem from '@theme/NavbarItem';
|
|
10
10
|
|
|
11
11
|
function useNavbarItems() {
|
|
12
12
|
// TODO temporary casting until ThemeConfig type is improved
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import IconMenu from '@theme/IconMenu';
|
|
9
8
|
import {useNavbarMobileSidebar} from '@docusaurus/theme-common';
|
|
9
|
+
import IconMenu from '@theme/IconMenu';
|
|
10
10
|
export default function MobileSidebarToggle() {
|
|
11
11
|
const mobileSidebar = useNavbarMobileSidebar();
|
|
12
12
|
return (
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import NavbarMobileSidebarLayout from '@theme/Navbar/MobileSidebar/Layout';
|
|
9
|
-
import NavbarMobileSidebarHeader from '@theme/Navbar/MobileSidebar/Header';
|
|
10
8
|
import {
|
|
11
9
|
useLockBodyScroll,
|
|
12
10
|
useNavbarMobileSidebar,
|
|
13
11
|
} from '@docusaurus/theme-common';
|
|
12
|
+
import NavbarMobileSidebarLayout from '@theme/Navbar/MobileSidebar/Layout';
|
|
13
|
+
import NavbarMobileSidebarHeader from '@theme/Navbar/MobileSidebar/Header';
|
|
14
14
|
import NavbarMobileSidebarPrimaryMenu from '@theme/Navbar/MobileSidebar/PrimaryMenu';
|
|
15
15
|
import NavbarMobileSidebarSecondaryMenu from '@theme/Navbar/MobileSidebar/SecondaryMenu';
|
|
16
16
|
export default function NavbarMobileSidebar() {
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
9
|
-
import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
|
|
10
8
|
import clsx from 'clsx';
|
|
11
|
-
import {
|
|
9
|
+
import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
|
|
12
10
|
import {useLayoutDoc} from '@docusaurus/theme-common';
|
|
11
|
+
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
12
|
+
import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
|
|
13
13
|
export default function DocNavbarItem({
|
|
14
14
|
docId,
|
|
15
15
|
label: staticLabel,
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
9
|
-
import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
|
|
10
8
|
import clsx from 'clsx';
|
|
11
|
-
import {
|
|
9
|
+
import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
|
|
12
10
|
import {useLayoutDocsSidebar} from '@docusaurus/theme-common';
|
|
11
|
+
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
12
|
+
import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
|
|
13
13
|
export default function DocSidebarNavbarItem({
|
|
14
14
|
sidebarId,
|
|
15
15
|
label,
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
9
|
-
import DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';
|
|
10
8
|
import {
|
|
11
9
|
useVersions,
|
|
12
10
|
useActiveDocContext,
|
|
@@ -16,6 +14,8 @@ import {
|
|
|
16
14
|
useDocsVersionCandidates,
|
|
17
15
|
} from '@docusaurus/theme-common';
|
|
18
16
|
import {translate} from '@docusaurus/Translate';
|
|
17
|
+
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
18
|
+
import DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';
|
|
19
19
|
|
|
20
20
|
const getVersionMainDoc = (version) =>
|
|
21
21
|
version.docs.find((doc) => doc.id === version.mainDocId);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
9
8
|
import {useDocsVersionCandidates} from '@docusaurus/theme-common';
|
|
9
|
+
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
10
10
|
|
|
11
11
|
const getVersionMainDoc = (version) =>
|
|
12
12
|
version.docs.find((doc) => doc.id === version.mainDocId);
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';
|
|
9
|
-
import IconLanguage from '@theme/IconLanguage';
|
|
10
8
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
11
9
|
import {useAlternatePageUtils} from '@docusaurus/theme-common';
|
|
12
10
|
import {translate} from '@docusaurus/Translate';
|
|
11
|
+
import DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';
|
|
12
|
+
import IconLanguage from '@theme/IconLanguage';
|
|
13
13
|
import styles from './styles.module.css';
|
|
14
14
|
export default function LocaleDropdownNavbarItem({
|
|
15
15
|
mobile,
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import Link from '@docusaurus/Link';
|
|
9
9
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
10
|
-
import IconExternalLink from '@theme/IconExternalLink';
|
|
11
10
|
import isInternalUrl from '@docusaurus/isInternalUrl';
|
|
12
11
|
import {isRegexpStringMatch} from '@docusaurus/theme-common';
|
|
12
|
+
import IconExternalLink from '@theme/IconExternalLink';
|
|
13
13
|
const dropdownLinkActiveClass = 'dropdown__link--active';
|
|
14
14
|
export default function NavbarNavLink({
|
|
15
15
|
activeBasePath,
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import Layout from '@theme/Layout';
|
|
9
8
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
10
9
|
import {PageMetadata} from '@docusaurus/theme-common';
|
|
10
|
+
import Layout from '@theme/Layout';
|
|
11
11
|
export default function NotFound() {
|
|
12
12
|
return (
|
|
13
13
|
<>
|
|
@@ -8,7 +8,6 @@ import React from 'react';
|
|
|
8
8
|
import Head from '@docusaurus/Head';
|
|
9
9
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
10
10
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
11
|
-
import SearchMetadata from '@theme/SearchMetadata';
|
|
12
11
|
import {
|
|
13
12
|
PageMetadata,
|
|
14
13
|
DEFAULT_SEARCH_TAG,
|
|
@@ -16,7 +15,8 @@ import {
|
|
|
16
15
|
useThemeConfig,
|
|
17
16
|
keyboardFocusedClassName,
|
|
18
17
|
} from '@docusaurus/theme-common';
|
|
19
|
-
import {useLocation} from '@docusaurus/router';
|
|
18
|
+
import {useLocation} from '@docusaurus/router';
|
|
19
|
+
import SearchMetadata from '@theme/SearchMetadata'; // TODO move to SiteMetadataDefaults or theme-common ?
|
|
20
20
|
// Useful for i18n/SEO
|
|
21
21
|
// See https://developers.google.com/search/docs/advanced/crawling/localized-versions
|
|
22
22
|
// See https://github.com/facebook/docusaurus/issues/3317
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import styles from './styles.module.css';
|
|
9
8
|
import TOCItems from '@theme/TOCItems';
|
|
9
|
+
import styles from './styles.module.css';
|
|
10
10
|
export default function TOCInline({toc, minHeadingLevel, maxHeadingLevel}) {
|
|
11
11
|
return (
|
|
12
12
|
<div className={styles.tableOfContentsInline}>
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React, {useMemo} from 'react';
|
|
8
|
-
import TOCItemTree from '@theme/TOCItems/Tree';
|
|
9
8
|
import {
|
|
10
9
|
useThemeConfig,
|
|
11
10
|
useTOCHighlight,
|
|
12
11
|
useFilteredAndTreeifiedTOC,
|
|
13
12
|
} from '@docusaurus/theme-common';
|
|
13
|
+
import TOCItemTree from '@theme/TOCItems/Tree';
|
|
14
14
|
export default function TOCItems({
|
|
15
15
|
toc,
|
|
16
16
|
className = 'table-of-contents table-of-contents__left-border',
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import renderer from 'react-test-renderer';
|
|
9
|
-
import Tabs from '../index';
|
|
10
|
-
import TabItem from '../../TabItem';
|
|
11
9
|
import {
|
|
12
10
|
TabGroupChoiceProvider,
|
|
13
11
|
ScrollControllerProvider,
|
|
14
12
|
} from '@docusaurus/theme-common';
|
|
13
|
+
import Tabs from '../index';
|
|
14
|
+
import TabItem from '../../TabItem';
|
|
15
15
|
describe('Tabs', () => {
|
|
16
16
|
it('rejects bad Tabs child', () => {
|
|
17
17
|
expect(() => {
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React, {useState, cloneElement, isValidElement} from 'react';
|
|
8
|
+
import clsx from 'clsx';
|
|
8
9
|
import useIsBrowser from '@docusaurus/useIsBrowser';
|
|
9
10
|
import {
|
|
10
11
|
useScrollPositionBlocker,
|
|
11
12
|
duplicates,
|
|
12
13
|
useTabGroupChoice,
|
|
13
14
|
} from '@docusaurus/theme-common';
|
|
14
|
-
import clsx from 'clsx';
|
|
15
15
|
import styles from './styles.module.css'; // A very rough duck type, but good enough to guard against mistakes while
|
|
16
16
|
// allowing customization
|
|
17
17
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import Tag from '@theme/Tag';
|
|
9
8
|
import {listTagsByLetters} from '@docusaurus/theme-common';
|
|
9
|
+
import Tag from '@theme/Tag';
|
|
10
10
|
import styles from './styles.module.css';
|
|
11
11
|
|
|
12
12
|
function TagLetterEntryItem({letterEntry}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5012",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@docusaurus/core": "0.0.0-
|
|
25
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
26
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
28
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
29
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
30
|
-
"@docusaurus/utils": "0.0.0-
|
|
31
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
32
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
24
|
+
"@docusaurus/core": "0.0.0-5012",
|
|
25
|
+
"@docusaurus/plugin-content-blog": "0.0.0-5012",
|
|
26
|
+
"@docusaurus/plugin-content-docs": "0.0.0-5012",
|
|
27
|
+
"@docusaurus/plugin-content-pages": "0.0.0-5012",
|
|
28
|
+
"@docusaurus/theme-common": "0.0.0-5012",
|
|
29
|
+
"@docusaurus/theme-translations": "0.0.0-5012",
|
|
30
|
+
"@docusaurus/utils": "0.0.0-5012",
|
|
31
|
+
"@docusaurus/utils-common": "0.0.0-5012",
|
|
32
|
+
"@docusaurus/utils-validation": "0.0.0-5012",
|
|
33
33
|
"@mdx-js/react": "^1.6.22",
|
|
34
34
|
"clsx": "^1.1.1",
|
|
35
35
|
"copy-text-to-clipboard": "^3.0.1",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@babel/cli": "^7.17.10",
|
|
47
47
|
"@babel/core": "^7.17.10",
|
|
48
48
|
"@babel/preset-typescript": "^7.16.7",
|
|
49
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
50
|
-
"@docusaurus/types": "0.0.0-
|
|
49
|
+
"@docusaurus/module-type-aliases": "0.0.0-5012",
|
|
50
|
+
"@docusaurus/types": "0.0.0-5012",
|
|
51
51
|
"@types/mdx-js__react": "^1.5.5",
|
|
52
52
|
"@types/nprogress": "^0.2.0",
|
|
53
53
|
"@types/prismjs": "^1.26.0",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=14"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "23b7a134145506adf6db87c8e81640e3633c13ec"
|
|
68
68
|
}
|
package/src/index.ts
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import path from 'path';
|
|
9
|
-
import type {LoadContext, Plugin} from '@docusaurus/types';
|
|
10
|
-
import type {ThemeConfig} from '@docusaurus/theme-common';
|
|
11
|
-
import {getTranslationFiles, translateThemeConfig} from './translations';
|
|
12
9
|
import {createRequire} from 'module';
|
|
13
|
-
import type {Plugin as PostCssPlugin} from 'postcss';
|
|
14
10
|
import rtlcss from 'rtlcss';
|
|
15
11
|
import {readDefaultCodeTranslationMessages} from '@docusaurus/theme-translations';
|
|
12
|
+
import {getTranslationFiles, translateThemeConfig} from './translations';
|
|
13
|
+
import type {LoadContext, Plugin} from '@docusaurus/types';
|
|
14
|
+
import type {ThemeConfig} from '@docusaurus/theme-common';
|
|
15
|
+
import type {Plugin as PostCssPlugin} from 'postcss';
|
|
16
16
|
import type {Options} from '@docusaurus/theme-classic';
|
|
17
17
|
import type webpack from 'webpack';
|
|
18
18
|
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import Layout from '@theme/Layout';
|
|
10
9
|
import Link from '@docusaurus/Link';
|
|
11
|
-
import type {ArchiveBlogPost, Props} from '@theme/BlogArchivePage';
|
|
12
10
|
import {translate} from '@docusaurus/Translate';
|
|
13
11
|
import {PageMetadata} from '@docusaurus/theme-common';
|
|
12
|
+
import Layout from '@theme/Layout';
|
|
13
|
+
import type {ArchiveBlogPost, Props} from '@theme/BlogArchivePage';
|
|
14
14
|
|
|
15
15
|
type YearProp = {
|
|
16
16
|
year: string;
|
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
+
import clsx from 'clsx';
|
|
9
10
|
|
|
10
11
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
11
|
-
import BlogLayout from '@theme/BlogLayout';
|
|
12
|
-
import BlogPostItem from '@theme/BlogPostItem';
|
|
13
|
-
import BlogListPaginator from '@theme/BlogListPaginator';
|
|
14
|
-
import type {Props} from '@theme/BlogListPage';
|
|
15
12
|
import {
|
|
16
13
|
PageMetadata,
|
|
17
14
|
HtmlClassNameProvider,
|
|
18
15
|
ThemeClassNames,
|
|
19
16
|
} from '@docusaurus/theme-common';
|
|
17
|
+
import BlogLayout from '@theme/BlogLayout';
|
|
18
|
+
import BlogPostItem from '@theme/BlogPostItem';
|
|
19
|
+
import BlogListPaginator from '@theme/BlogListPaginator';
|
|
20
20
|
import SearchMetadata from '@theme/SearchMetadata';
|
|
21
|
-
import
|
|
21
|
+
import type {Props} from '@theme/BlogListPage';
|
|
22
22
|
|
|
23
23
|
function BlogListPageMetadata(props: Props): JSX.Element {
|
|
24
24
|
const {metadata} = props;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
import type {Props} from '@theme/BlogPostAuthors';
|
|
11
10
|
import BlogPostAuthor from '@theme/BlogPostAuthor';
|
|
11
|
+
import type {Props} from '@theme/BlogPostAuthors';
|
|
12
12
|
|
|
13
13
|
import styles from './styles.module.css';
|
|
14
14
|
|
|
@@ -14,11 +14,11 @@ import {usePluralForm} from '@docusaurus/theme-common';
|
|
|
14
14
|
import {blogPostContainerID} from '@docusaurus/utils-common';
|
|
15
15
|
import MDXContent from '@theme/MDXContent';
|
|
16
16
|
import EditThisPage from '@theme/EditThisPage';
|
|
17
|
+
import TagsListInline from '@theme/TagsListInline';
|
|
18
|
+
import BlogPostAuthors from '@theme/BlogPostAuthors';
|
|
17
19
|
import type {Props} from '@theme/BlogPostItem';
|
|
18
20
|
|
|
19
21
|
import styles from './styles.module.css';
|
|
20
|
-
import TagsListInline from '@theme/TagsListInline';
|
|
21
|
-
import BlogPostAuthors from '@theme/BlogPostAuthors';
|
|
22
22
|
|
|
23
23
|
// Very simple pluralization: probably good enough for now
|
|
24
24
|
function useReadingTimePlural() {
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import
|
|
10
|
-
import BlogPostItem from '@theme/BlogPostItem';
|
|
11
|
-
import BlogPostPaginator from '@theme/BlogPostPaginator';
|
|
12
|
-
import type {Props} from '@theme/BlogPostPage';
|
|
9
|
+
import clsx from 'clsx';
|
|
13
10
|
import {
|
|
14
11
|
PageMetadata,
|
|
15
12
|
HtmlClassNameProvider,
|
|
16
13
|
ThemeClassNames,
|
|
17
14
|
} from '@docusaurus/theme-common';
|
|
15
|
+
import BlogLayout from '@theme/BlogLayout';
|
|
16
|
+
import BlogPostItem from '@theme/BlogPostItem';
|
|
17
|
+
import BlogPostPaginator from '@theme/BlogPostPaginator';
|
|
18
18
|
import TOC from '@theme/TOC';
|
|
19
|
-
import
|
|
19
|
+
import type {Props} from '@theme/BlogPostPage';
|
|
20
20
|
|
|
21
21
|
function BlogPostPageMetadata(props: Props): JSX.Element {
|
|
22
22
|
const {content: BlogPostContents} = props;
|
|
@@ -9,9 +9,9 @@ import React from 'react';
|
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import Link from '@docusaurus/Link';
|
|
11
11
|
import {translate} from '@docusaurus/Translate';
|
|
12
|
+
import type {Props} from '@theme/BlogSidebar/Desktop';
|
|
12
13
|
|
|
13
14
|
import styles from './styles.module.css';
|
|
14
|
-
import type {Props} from '@theme/BlogSidebar/Desktop';
|
|
15
15
|
|
|
16
16
|
export default function BlogSidebarDesktop({sidebar}: Props): JSX.Element {
|
|
17
17
|
return (
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
+
import {useWindowSize} from '@docusaurus/theme-common';
|
|
9
10
|
import BlogSidebarDesktop from '@theme/BlogSidebar/Desktop';
|
|
10
11
|
import BlogSidebarMobile from '@theme/BlogSidebar/Mobile';
|
|
11
|
-
import {useWindowSize} from '@docusaurus/theme-common';
|
|
12
12
|
import type {Props} from '@theme/BlogSidebar';
|
|
13
13
|
|
|
14
14
|
export default function BlogSidebar({sidebar}: Props): JSX.Element | null {
|
|
@@ -6,18 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
|
|
10
|
-
import BlogLayout from '@theme/BlogLayout';
|
|
11
|
-
import TagsListByLetter from '@theme/TagsListByLetter';
|
|
12
|
-
import type {Props} from '@theme/BlogTagsListPage';
|
|
9
|
+
import clsx from 'clsx';
|
|
13
10
|
import {
|
|
14
11
|
PageMetadata,
|
|
15
12
|
HtmlClassNameProvider,
|
|
16
13
|
ThemeClassNames,
|
|
17
14
|
translateTagsPageTitle,
|
|
18
15
|
} from '@docusaurus/theme-common';
|
|
16
|
+
import BlogLayout from '@theme/BlogLayout';
|
|
17
|
+
import TagsListByLetter from '@theme/TagsListByLetter';
|
|
18
|
+
import type {Props} from '@theme/BlogTagsListPage';
|
|
19
19
|
import SearchMetadata from '../SearchMetadata';
|
|
20
|
-
import clsx from 'clsx';
|
|
21
20
|
|
|
22
21
|
export default function BlogTagsListPage({tags, sidebar}: Props): JSX.Element {
|
|
23
22
|
const title = translateTagsPageTitle();
|
|
@@ -6,11 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
|
|
10
|
-
import Link from '@docusaurus/Link';
|
|
11
|
-
import BlogLayout from '@theme/BlogLayout';
|
|
12
|
-
import BlogPostItem from '@theme/BlogPostItem';
|
|
13
|
-
import type {Props} from '@theme/BlogTagsPostsPage';
|
|
9
|
+
import clsx from 'clsx';
|
|
14
10
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
15
11
|
import {
|
|
16
12
|
PageMetadata,
|
|
@@ -18,9 +14,12 @@ import {
|
|
|
18
14
|
ThemeClassNames,
|
|
19
15
|
usePluralForm,
|
|
20
16
|
} from '@docusaurus/theme-common';
|
|
17
|
+
import Link from '@docusaurus/Link';
|
|
18
|
+
import BlogLayout from '@theme/BlogLayout';
|
|
19
|
+
import BlogPostItem from '@theme/BlogPostItem';
|
|
21
20
|
import BlogListPaginator from '@theme/BlogListPaginator';
|
|
22
21
|
import SearchMetadata from '@theme/SearchMetadata';
|
|
23
|
-
import
|
|
22
|
+
import type {Props} from '@theme/BlogTagsPostsPage';
|
|
24
23
|
|
|
25
24
|
// Very simple pluralization: probably good enough for now
|
|
26
25
|
function useBlogPostsPlural() {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import Container from '@theme/CodeBlock/Container';
|
|
10
9
|
import clsx from 'clsx';
|
|
10
|
+
import Container from '@theme/CodeBlock/Container';
|
|
11
11
|
import type {Props} from '@theme/CodeBlock/Content/Element';
|
|
12
12
|
|
|
13
13
|
import styles from './styles.module.css';
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
+
import clsx from 'clsx';
|
|
9
10
|
import {
|
|
10
11
|
useThemeConfig,
|
|
11
12
|
parseCodeBlockTitle,
|
|
@@ -15,7 +16,6 @@ import {
|
|
|
15
16
|
usePrismTheme,
|
|
16
17
|
useCodeWordWrap,
|
|
17
18
|
} from '@docusaurus/theme-common';
|
|
18
|
-
import clsx from 'clsx';
|
|
19
19
|
import Highlight, {defaultProps, type Language} from 'prism-react-renderer';
|
|
20
20
|
import Line from '@theme/CodeBlock/Line';
|
|
21
21
|
import CopyButton from '@theme/CodeBlock/CopyButton';
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
import React, {isValidElement, type ReactNode} from 'react';
|
|
9
9
|
import useIsBrowser from '@docusaurus/useIsBrowser';
|
|
10
|
-
import type {Props} from '@theme/CodeBlock';
|
|
11
10
|
import ElementContent from '@theme/CodeBlock/Content/Element';
|
|
12
11
|
import StringContent from '@theme/CodeBlock/Content/String';
|
|
12
|
+
import type {Props} from '@theme/CodeBlock';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Best attempt to make the children a plain string so it is copyable. If there
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import
|
|
9
|
+
import clsx from 'clsx';
|
|
10
10
|
import useIsBrowser from '@docusaurus/useIsBrowser';
|
|
11
11
|
import {translate} from '@docusaurus/Translate';
|
|
12
12
|
import IconLightMode from '@theme/IconLightMode';
|
|
13
13
|
import IconDarkMode from '@theme/IconDarkMode';
|
|
14
|
+
import type {Props} from '@theme/ColorModeToggle';
|
|
14
15
|
|
|
15
|
-
import clsx from 'clsx';
|
|
16
16
|
import styles from './styles.module.css';
|
|
17
17
|
|
|
18
18
|
function ColorModeToggle({className, value, onChange}: Props): JSX.Element {
|
|
@@ -9,6 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {Details as DetailsGeneric} from '@docusaurus/theme-common/Details';
|
|
11
11
|
import type {Props} from '@theme/Details';
|
|
12
|
+
|
|
12
13
|
import styles from './styles.module.css';
|
|
13
14
|
|
|
14
15
|
// Should we have a custom details/summary comp in Infima instead of reusing
|
|
@@ -6,18 +6,19 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React, {type ReactNode} from 'react';
|
|
9
|
+
import clsx from 'clsx';
|
|
9
10
|
import {
|
|
10
11
|
ThemeClassNames,
|
|
11
12
|
useSidebarBreadcrumbs,
|
|
12
13
|
useHomePageRoute,
|
|
13
14
|
} from '@docusaurus/theme-common';
|
|
14
|
-
import styles from './styles.module.css';
|
|
15
|
-
import clsx from 'clsx';
|
|
16
15
|
import Link from '@docusaurus/Link';
|
|
17
16
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
18
17
|
import {translate} from '@docusaurus/Translate';
|
|
19
18
|
import IconHome from '@theme/IconHome';
|
|
20
19
|
|
|
20
|
+
import styles from './styles.module.css';
|
|
21
|
+
|
|
21
22
|
// TODO move to design system folder
|
|
22
23
|
function BreadcrumbsItemLink({
|
|
23
24
|
children,
|
|
@@ -6,17 +6,18 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React, {type ReactNode} from 'react';
|
|
9
|
+
import clsx from 'clsx';
|
|
9
10
|
import Link from '@docusaurus/Link';
|
|
11
|
+
import {findFirstCategoryLink, useDocById} from '@docusaurus/theme-common';
|
|
12
|
+
import isInternalUrl from '@docusaurus/isInternalUrl';
|
|
13
|
+
import {translate} from '@docusaurus/Translate';
|
|
14
|
+
import type {Props} from '@theme/DocCard';
|
|
15
|
+
|
|
16
|
+
import styles from './styles.module.css';
|
|
10
17
|
import type {
|
|
11
18
|
PropSidebarItemCategory,
|
|
12
19
|
PropSidebarItemLink,
|
|
13
20
|
} from '@docusaurus/plugin-content-docs';
|
|
14
|
-
import type {Props} from '@theme/DocCard';
|
|
15
|
-
import {findFirstCategoryLink, useDocById} from '@docusaurus/theme-common';
|
|
16
|
-
import clsx from 'clsx';
|
|
17
|
-
import styles from './styles.module.css';
|
|
18
|
-
import isInternalUrl from '@docusaurus/isInternalUrl';
|
|
19
|
-
import {translate} from '@docusaurus/Translate';
|
|
20
21
|
|
|
21
22
|
function CardContainer({
|
|
22
23
|
href,
|
|
@@ -7,11 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
|
|
11
|
-
import DocCard from '@theme/DocCard';
|
|
12
|
-
import type {PropSidebarItem} from '@docusaurus/plugin-content-docs';
|
|
13
10
|
import {findFirstCategoryLink} from '@docusaurus/theme-common';
|
|
11
|
+
import DocCard from '@theme/DocCard';
|
|
14
12
|
import type {Props} from '@theme/DocCardList';
|
|
13
|
+
import type {PropSidebarItem} from '@docusaurus/plugin-content-docs';
|
|
15
14
|
|
|
16
15
|
// Filter categories that don't have a link.
|
|
17
16
|
function filterItems(items: PropSidebarItem[]): PropSidebarItem[] {
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
PageMetadata,
|
|
11
11
|
useCurrentSidebarCategory,
|
|
12
12
|
} from '@docusaurus/theme-common';
|
|
13
|
-
import
|
|
13
|
+
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
14
14
|
import DocCardList from '@theme/DocCardList';
|
|
15
15
|
import DocPaginator from '@theme/DocPaginator';
|
|
16
16
|
import DocVersionBanner from '@theme/DocVersionBanner';
|
|
17
17
|
import DocVersionBadge from '@theme/DocVersionBadge';
|
|
18
18
|
import DocBreadcrumbs from '@theme/DocBreadcrumbs';
|
|
19
19
|
import Heading from '@theme/Heading';
|
|
20
|
-
import
|
|
20
|
+
import type {Props} from '@theme/DocCategoryGeneratedIndexPage';
|
|
21
21
|
|
|
22
22
|
import styles from './styles.module.css';
|
|
23
23
|
|