diff --git a/packages/docusaurus-theme-classic/src/theme/DocItem/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocItem/index.tsx index d63d254c50..3a93804f52 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocItem/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocItem/index.tsx @@ -20,6 +20,7 @@ import TOCCollapsible from '@theme/TOCCollapsible'; import {MainHeading} from '@theme/Heading'; import styles from './styles.module.css'; +import {ThemeClassNames} from '@docusaurus/theme-common'; export default function DocItem(props: Props): JSX.Element { const {content: DocContent, versionMetadata} = props; @@ -67,7 +68,11 @@ export default function DocItem(props: Props): JSX.Element {
{showVersionBadge && ( - + Version: {versionMetadata.label} )} @@ -75,11 +80,15 @@ export default function DocItem(props: Props): JSX.Element { {canRenderTOC && ( )} -
+
{/* Title can be declared inside md content or declared through frontmatter and added manually To make both cases consistent, the added title is added under the same div.markdown block @@ -98,7 +107,10 @@ export default function DocItem(props: Props): JSX.Element {
{renderTocDesktop && (
- +
)}
diff --git a/packages/docusaurus-theme-classic/src/theme/DocItemFooter/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocItemFooter/index.tsx index 7f7fd01594..86f70ee722 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocItemFooter/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocItemFooter/index.tsx @@ -16,10 +16,15 @@ import TagsListInline, { } from '@theme/TagsListInline'; import styles from './styles.module.css'; +import {ThemeClassNames} from '@docusaurus/theme-common'; function TagsRow(props: TagsListInlineProps) { return ( -
+
@@ -38,7 +43,7 @@ function EditMetaRow({ formattedLastUpdatedAt, }: EditMetaRowProps) { return ( -
+
{editUrl && }
@@ -75,7 +80,8 @@ export default function DocItemFooter(props: Props): JSX.Element { } return ( -