@docusaurus/theme-classic 3.2.0 → 3.3.0
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/getSwizzleConfig.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/options.d.ts +1 -0
- package/lib/theme/Admonition/Icon/Danger.d.ts +1 -0
- package/lib/theme/Admonition/Icon/Info.d.ts +1 -0
- package/lib/theme/Admonition/Icon/Note.d.ts +1 -0
- package/lib/theme/Admonition/Icon/Tip.d.ts +1 -0
- package/lib/theme/Admonition/Icon/Warning.d.ts +1 -0
- package/lib/theme/Admonition/Layout/index.d.ts +1 -0
- package/lib/theme/Admonition/Layout/index.js +1 -1
- package/lib/theme/Admonition/Type/Caution.d.ts +1 -0
- package/lib/theme/Admonition/Type/Danger.d.ts +1 -0
- package/lib/theme/Admonition/Type/Info.d.ts +1 -0
- package/lib/theme/Admonition/Type/Note.d.ts +1 -0
- package/lib/theme/Admonition/Type/Tip.d.ts +1 -0
- package/lib/theme/Admonition/Type/Warning.d.ts +1 -0
- package/lib/theme/Admonition/index.d.ts +1 -0
- package/lib/theme/AnnouncementBar/CloseButton/index.d.ts +1 -0
- package/lib/theme/AnnouncementBar/Content/index.d.ts +1 -0
- package/lib/theme/BlogLayout/index.d.ts +1 -0
- package/lib/theme/BlogListPaginator/index.d.ts +1 -0
- package/lib/theme/BlogPostItem/Container/index.d.ts +1 -0
- package/lib/theme/BlogPostItem/Content/index.d.ts +1 -0
- package/lib/theme/BlogPostItem/Footer/ReadMoreLink/index.d.ts +1 -0
- package/lib/theme/BlogPostItem/Header/Author/index.d.ts +1 -0
- package/lib/theme/BlogPostItem/Header/Authors/index.d.ts +1 -0
- package/lib/theme/BlogPostItem/Header/Info/index.d.ts +1 -0
- package/lib/theme/BlogPostItem/Header/Title/index.d.ts +1 -0
- package/lib/theme/BlogPostItem/index.d.ts +1 -0
- package/lib/theme/BlogPostItems/index.d.ts +1 -0
- package/lib/theme/BlogPostPaginator/index.d.ts +1 -0
- package/lib/theme/BlogSidebar/Desktop/index.d.ts +1 -0
- package/lib/theme/BlogSidebar/Mobile/index.d.ts +1 -0
- package/lib/theme/BlogSidebar/index.d.ts +1 -0
- package/lib/theme/CodeBlock/Content/Element.d.ts +1 -0
- package/lib/theme/CodeBlock/Content/String.d.ts +1 -0
- package/lib/theme/CodeBlock/CopyButton/index.d.ts +1 -0
- package/lib/theme/CodeBlock/Line/index.d.ts +1 -0
- package/lib/theme/CodeBlock/Line/index.js +1 -1
- package/lib/theme/CodeBlock/WordWrapButton/index.d.ts +1 -0
- package/lib/theme/CodeBlock/index.d.ts +1 -0
- package/lib/theme/CodeInline/index.d.ts +1 -0
- package/lib/theme/ColorModeToggle/index.d.ts +1 -0
- package/lib/theme/Details/index.d.ts +1 -0
- package/lib/theme/DocCard/index.d.ts +1 -0
- package/lib/theme/DocCardList/index.d.ts +1 -0
- package/lib/theme/DocItem/Content/index.d.ts +1 -0
- package/lib/theme/DocItem/Layout/index.d.ts +1 -0
- package/lib/theme/DocPaginator/index.d.ts +1 -0
- package/lib/theme/DocRoot/Layout/Main/index.d.ts +1 -0
- package/lib/theme/DocRoot/Layout/Sidebar/ExpandButton/index.d.ts +1 -0
- package/lib/theme/DocRoot/Layout/Sidebar/index.d.ts +1 -0
- package/lib/theme/DocRoot/Layout/index.d.ts +1 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.d.ts +1 -0
- package/lib/theme/DocSidebar/Desktop/Content/index.d.ts +1 -0
- package/lib/theme/DocSidebar/Desktop/index.d.ts +1 -0
- package/lib/theme/DocSidebar/Mobile/index.d.ts +1 -0
- package/lib/theme/DocSidebar/index.d.ts +1 -0
- package/lib/theme/DocSidebarItem/Category/index.d.ts +1 -0
- package/lib/theme/DocSidebarItem/Html/index.d.ts +1 -0
- package/lib/theme/DocSidebarItem/Link/index.d.ts +1 -0
- package/lib/theme/DocSidebarItem/index.d.ts +1 -0
- package/lib/theme/DocSidebarItems/index.d.ts +1 -0
- package/lib/theme/DocVersionBadge/index.d.ts +1 -0
- package/lib/theme/DocVersionBanner/index.d.ts +1 -0
- package/lib/theme/EditMetaRow/index.d.ts +1 -0
- package/lib/theme/EditThisPage/index.d.ts +1 -0
- package/lib/theme/Footer/Copyright/index.d.ts +1 -0
- package/lib/theme/Footer/Layout/index.d.ts +1 -0
- package/lib/theme/Footer/LinkItem/index.d.ts +1 -0
- package/lib/theme/Footer/Links/MultiColumn/index.d.ts +1 -0
- package/lib/theme/Footer/Links/Simple/index.d.ts +1 -0
- package/lib/theme/Footer/Links/index.d.ts +1 -0
- package/lib/theme/Footer/Logo/index.d.ts +1 -0
- package/lib/theme/Heading/index.d.ts +1 -0
- package/lib/theme/Icon/Arrow/index.d.ts +1 -0
- package/lib/theme/Icon/Close/index.d.ts +1 -0
- package/lib/theme/Icon/Copy/index.d.ts +1 -0
- package/lib/theme/Icon/DarkMode/index.d.ts +1 -0
- package/lib/theme/Icon/Edit/index.d.ts +1 -0
- package/lib/theme/Icon/ExternalLink/index.d.ts +1 -0
- package/lib/theme/Icon/Home/index.d.ts +1 -0
- package/lib/theme/Icon/Language/index.d.ts +1 -0
- package/lib/theme/Icon/LightMode/index.d.ts +1 -0
- package/lib/theme/Icon/Menu/index.d.ts +1 -0
- package/lib/theme/Icon/Success/index.d.ts +1 -0
- package/lib/theme/Icon/WordWrap/index.d.ts +1 -0
- package/lib/theme/LastUpdated/index.d.ts +1 -0
- package/lib/theme/Layout/Provider/index.d.ts +1 -0
- package/lib/theme/Layout/index.d.ts +2 -0
- package/lib/theme/Logo/index.d.ts +1 -0
- package/lib/theme/MDXComponents/A.d.ts +1 -0
- package/lib/theme/MDXComponents/Code.d.ts +1 -0
- package/lib/theme/MDXComponents/Details.d.ts +1 -0
- package/lib/theme/MDXComponents/Heading.d.ts +1 -0
- package/lib/theme/MDXComponents/Img/index.d.ts +1 -0
- package/lib/theme/MDXComponents/Li.d.ts +1 -0
- package/lib/theme/MDXComponents/Pre.d.ts +1 -0
- package/lib/theme/MDXComponents/Ul/index.d.ts +1 -0
- package/lib/theme/MDXComponents/index.d.ts +1 -0
- package/lib/theme/MDXComponents/index.js +1 -1
- package/lib/theme/MDXContent/index.d.ts +1 -0
- package/lib/theme/MDXPage/index.js +22 -1
- package/lib/theme/Mermaid.d.ts +1 -0
- package/lib/theme/Navbar/ColorModeToggle/index.d.ts +1 -0
- package/lib/theme/Navbar/Layout/index.d.ts +1 -0
- package/lib/theme/Navbar/MobileSidebar/Layout/index.d.ts +1 -0
- package/lib/theme/Navbar/Search/index.d.ts +1 -0
- package/lib/theme/Navbar/Search/styles.module.css +2 -9
- package/lib/theme/NavbarItem/ComponentTypes.d.ts +1 -0
- package/lib/theme/NavbarItem/DefaultNavbarItem.d.ts +1 -0
- package/lib/theme/NavbarItem/DocNavbarItem.d.ts +1 -0
- package/lib/theme/NavbarItem/DocSidebarNavbarItem.d.ts +1 -0
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.d.ts +1 -0
- package/lib/theme/NavbarItem/DocsVersionNavbarItem.d.ts +1 -0
- package/lib/theme/NavbarItem/DropdownNavbarItem/index.d.ts +1 -0
- package/lib/theme/NavbarItem/HtmlNavbarItem.d.ts +1 -0
- package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.d.ts +1 -0
- package/lib/theme/NavbarItem/NavbarNavLink.d.ts +1 -0
- package/lib/theme/NavbarItem/SearchNavbarItem.d.ts +1 -0
- package/lib/theme/NavbarItem/index.d.ts +1 -0
- package/lib/theme/NotFound/Content/index.d.ts +1 -0
- package/lib/theme/PaginatorNavLink/index.d.ts +1 -0
- package/lib/theme/SearchBar.d.ts +1 -0
- package/lib/theme/SearchMetadata/index.d.ts +1 -0
- package/lib/theme/TOC/index.d.ts +1 -0
- package/lib/theme/TOCCollapsible/CollapseButton/index.d.ts +1 -0
- package/lib/theme/TOCCollapsible/index.d.ts +1 -0
- package/lib/theme/TOCInline/index.d.ts +1 -0
- package/lib/theme/TOCItems/Tree.d.ts +1 -0
- package/lib/theme/TOCItems/index.d.ts +1 -0
- package/lib/theme/TabItem/index.d.ts +1 -0
- package/lib/theme/Tabs/index.d.ts +1 -0
- package/lib/theme/Tabs/index.js +2 -2
- package/lib/theme/Tag/index.d.ts +1 -0
- package/lib/theme/TagsListByLetter/index.d.ts +1 -0
- package/lib/theme/TagsListInline/index.d.ts +1 -0
- package/lib/theme/ThemedImage/index.d.ts +1 -0
- package/lib/theme/Unlisted/index.d.ts +1 -0
- package/package.json +14 -14
- package/src/theme/Admonition/Layout/index.tsx +1 -1
- package/src/theme/CodeBlock/Line/index.tsx +1 -1
- package/src/theme/MDXPage/index.tsx +23 -1
- package/src/theme/Navbar/Search/styles.module.css +2 -9
- package/src/theme/Tabs/index.tsx +2 -2
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/EditThisPage';
|
|
9
10
|
export default function EditThisPage({ editUrl }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Footer/Copyright';
|
|
9
10
|
export default function FooterCopyright({ copyright }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Footer/Layout';
|
|
9
10
|
export default function FooterLayout({ style, links, logo, copyright, }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Footer/LinkItem';
|
|
9
10
|
export default function FooterLinkItem({ item }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Footer/Links/MultiColumn';
|
|
9
10
|
export default function FooterLinksMultiColumn({ columns }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Footer/Links/Simple';
|
|
9
10
|
export default function FooterLinksSimple({ links }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Footer/Links';
|
|
9
10
|
export default function FooterLinks({ links }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Footer/Logo';
|
|
9
10
|
export default function FooterLogo({ logo }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Heading';
|
|
9
10
|
export default function Heading({ as: As, id, ...props }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Icon/Arrow';
|
|
9
10
|
export default function IconArrow(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Icon/Close';
|
|
9
10
|
export default function IconClose({ width, height, color, strokeWidth, className, ...restProps }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Icon/Copy';
|
|
9
10
|
export default function IconCopy(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Icon/DarkMode';
|
|
9
10
|
export default function IconDarkMode(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Icon/Edit';
|
|
9
10
|
export default function IconEdit({ className, ...restProps }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Icon/ExternalLink';
|
|
9
10
|
export default function IconExternalLink({ width, height, }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Icon/Home';
|
|
9
10
|
export default function IconHome(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Icon/Language';
|
|
9
10
|
export default function IconLanguage({ width, height, ...props }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Icon/LightMode';
|
|
9
10
|
export default function IconLightMode(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Icon/Menu';
|
|
9
10
|
export default function IconMenu({ width, height, className, ...restProps }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Icon/Success';
|
|
9
10
|
export default function IconSuccess(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Icon/WordWrap';
|
|
9
10
|
export default function IconWordWrap(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/LastUpdated';
|
|
9
10
|
export default function LastUpdated({ lastUpdatedAt, lastUpdatedBy, }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Layout/Provider';
|
|
9
10
|
export default function LayoutProvider({ children }: Props): JSX.Element;
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
9
|
+
/// <reference types="@docusaurus/module-type-aliases" />
|
|
8
10
|
import type { Props } from '@theme/Layout';
|
|
9
11
|
export default function Layout(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Logo';
|
|
9
10
|
export default function Logo(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/MDXComponents/A';
|
|
9
10
|
export default function MDXA(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/MDXComponents/Code';
|
|
9
10
|
export default function MDXCode(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/MDXComponents/Details';
|
|
9
10
|
export default function MDXDetails(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/MDXComponents/Heading';
|
|
9
10
|
export default function MDXHeading(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/MDXComponents/Img';
|
|
9
10
|
export default function MDXImg(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
import { type ReactNode } from 'react';
|
|
8
9
|
import type { Props } from '@theme/MDXComponents/Li';
|
|
9
10
|
export default function MDXLi(props: Props): ReactNode | undefined;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
import { type ReactNode } from 'react';
|
|
8
9
|
import type { Props } from '@theme/MDXComponents/Pre';
|
|
9
10
|
export default function MDXPre(props: Props): ReactNode | undefined;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/MDXComponents/Ul';
|
|
9
10
|
export default function MDXUl(props: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
import type { MDXComponentsObject } from '@theme/MDXComponents';
|
|
8
9
|
declare const MDXComponents: MDXComponentsObject;
|
|
9
10
|
export default MDXComponents;
|
|
@@ -18,7 +18,7 @@ import Admonition from '@theme/Admonition';
|
|
|
18
18
|
import Mermaid from '@theme/Mermaid';
|
|
19
19
|
const MDXComponents = {
|
|
20
20
|
Head,
|
|
21
|
-
details: MDXDetails,
|
|
21
|
+
details: MDXDetails, // For MD mode support, see https://github.com/facebook/docusaurus/issues/9092#issuecomment-1602902274
|
|
22
22
|
Details: MDXDetails,
|
|
23
23
|
code: MDXCode,
|
|
24
24
|
a: MDXA,
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/MDXContent';
|
|
9
10
|
export default function MDXContent({ children }: Props): JSX.Element;
|
|
@@ -15,11 +15,20 @@ import Layout from '@theme/Layout';
|
|
|
15
15
|
import MDXContent from '@theme/MDXContent';
|
|
16
16
|
import TOC from '@theme/TOC';
|
|
17
17
|
import Unlisted from '@theme/Unlisted';
|
|
18
|
+
import EditMetaRow from '@theme/EditMetaRow';
|
|
18
19
|
import styles from './styles.module.css';
|
|
19
20
|
export default function MDXPage(props) {
|
|
20
21
|
const {content: MDXPageContent} = props;
|
|
21
22
|
const {
|
|
22
|
-
metadata: {
|
|
23
|
+
metadata: {
|
|
24
|
+
title,
|
|
25
|
+
editUrl,
|
|
26
|
+
description,
|
|
27
|
+
frontMatter,
|
|
28
|
+
unlisted,
|
|
29
|
+
lastUpdatedBy,
|
|
30
|
+
lastUpdatedAt,
|
|
31
|
+
},
|
|
23
32
|
assets,
|
|
24
33
|
} = MDXPageContent;
|
|
25
34
|
const {
|
|
@@ -28,6 +37,7 @@ export default function MDXPage(props) {
|
|
|
28
37
|
hide_table_of_contents: hideTableOfContents,
|
|
29
38
|
} = frontMatter;
|
|
30
39
|
const image = assets.image ?? frontMatter.image;
|
|
40
|
+
const canDisplayEditMetaRow = !!(editUrl || lastUpdatedAt || lastUpdatedBy);
|
|
31
41
|
return (
|
|
32
42
|
<HtmlClassNameProvider
|
|
33
43
|
className={clsx(
|
|
@@ -50,6 +60,17 @@ export default function MDXPage(props) {
|
|
|
50
60
|
<MDXPageContent />
|
|
51
61
|
</MDXContent>
|
|
52
62
|
</article>
|
|
63
|
+
{canDisplayEditMetaRow && (
|
|
64
|
+
<EditMetaRow
|
|
65
|
+
className={clsx(
|
|
66
|
+
'margin-top--sm',
|
|
67
|
+
ThemeClassNames.pages.pageFooterEditMetaRow,
|
|
68
|
+
)}
|
|
69
|
+
editUrl={editUrl}
|
|
70
|
+
lastUpdatedAt={lastUpdatedAt}
|
|
71
|
+
lastUpdatedBy={lastUpdatedBy}
|
|
72
|
+
/>
|
|
73
|
+
)}
|
|
53
74
|
</div>
|
|
54
75
|
{!hideTableOfContents && MDXPageContent.toc.length > 0 && (
|
|
55
76
|
<div className="col col--2">
|
package/lib/theme/Mermaid.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Navbar/ColorModeToggle';
|
|
9
10
|
export default function NavbarColorModeToggle({ className, }: Props): JSX.Element | null;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Navbar/Layout';
|
|
9
10
|
export default function NavbarLayout({ children }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Navbar/MobileSidebar/Layout';
|
|
9
10
|
export default function NavbarMobileSidebarLayout({ header, primaryMenu, secondaryMenu, }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/Navbar/Search';
|
|
9
10
|
export default function NavbarSearch({ children, className, }: Props): JSX.Element;
|
|
@@ -9,15 +9,8 @@
|
|
|
9
9
|
Workaround to avoid rendering empty search container
|
|
10
10
|
See https://github.com/facebook/docusaurus/pull/9385
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
only needed for Firefox < 121
|
|
15
|
-
see https://github.com/facebook/docusaurus/issues/9527#issuecomment-1805272379
|
|
16
|
-
*/
|
|
17
|
-
@supports selector(:has(*)) {
|
|
18
|
-
.navbarSearchContainer:not(:has(> *)) {
|
|
19
|
-
display: none;
|
|
20
|
-
}
|
|
12
|
+
.navbarSearchContainer:empty {
|
|
13
|
+
display: none;
|
|
21
14
|
}
|
|
22
15
|
|
|
23
16
|
@media (max-width: 996px) {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
import type { ComponentTypesObject } from '@theme/NavbarItem/ComponentTypes';
|
|
8
9
|
declare const ComponentTypes: ComponentTypesObject;
|
|
9
10
|
export default ComponentTypes;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/NavbarItem/DefaultNavbarItem';
|
|
9
10
|
export default function DefaultNavbarItem({ mobile, position, // Need to destructure position from props so that it doesn't get passed on.
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/NavbarItem/DocNavbarItem';
|
|
9
10
|
export default function DocNavbarItem({ docId, label: staticLabel, docsPluginId, ...props }: Props): JSX.Element | null;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/NavbarItem/DocSidebarNavbarItem';
|
|
9
10
|
export default function DocSidebarNavbarItem({ sidebarId, label, docsPluginId, ...props }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/NavbarItem/DocsVersionDropdownNavbarItem';
|
|
9
10
|
export default function DocsVersionDropdownNavbarItem({ mobile, docsPluginId, dropdownActiveClassDisabled, dropdownItemsBefore, dropdownItemsAfter, ...props }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/NavbarItem/DocsVersionNavbarItem';
|
|
9
10
|
export default function DocsVersionNavbarItem({ label: staticLabel, to: staticTo, docsPluginId, ...props }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/NavbarItem/DropdownNavbarItem';
|
|
9
10
|
export default function DropdownNavbarItem({ mobile, ...props }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/NavbarItem/HtmlNavbarItem';
|
|
9
10
|
export default function HtmlNavbarItem({ value, className, mobile, isDropdownItem, }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/NavbarItem/LocaleDropdownNavbarItem';
|
|
9
10
|
export default function LocaleDropdownNavbarItem({ mobile, dropdownItemsBefore, dropdownItemsAfter, queryString, ...props }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/NavbarItem/NavbarNavLink';
|
|
9
10
|
export default function NavbarNavLink({ activeBasePath, activeBaseRegex, to, href, label, html, isDropdownLink, prependBaseUrlToHref, ...props }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/NavbarItem/SearchNavbarItem';
|
|
9
10
|
export default function SearchNavbarItem({ mobile, className, }: Props): JSX.Element | null;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/NavbarItem';
|
|
9
10
|
export default function NavbarItem({ type, ...props }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/NotFound/Content';
|
|
9
10
|
export default function NotFoundContent({ className }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/PaginatorNavLink';
|
|
9
10
|
export default function PaginatorNavLink(props: Props): JSX.Element;
|
package/lib/theme/SearchBar.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/SearchMetadata';
|
|
9
10
|
export default function SearchMetadata({ locale, version, tag, }: Props): JSX.Element;
|
package/lib/theme/TOC/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/TOC';
|
|
9
10
|
export default function TOC({ className, ...props }: Props): JSX.Element;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
7
8
|
/// <reference types="react" />
|
|
8
9
|
import type { Props } from '@theme/TOCCollapsible/CollapseButton';
|
|
9
10
|
export default function TOCCollapsibleCollapseButton({ collapsed, ...props }: Props): JSX.Element;
|