diff --git a/packages/docusaurus-theme-classic/src/theme/DocItem/index.js b/packages/docusaurus-theme-classic/src/theme/DocItem/index.js index ab764e379525..43b4f72a230c 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocItem/index.js +++ b/packages/docusaurus-theme-classic/src/theme/DocItem/index.js @@ -101,104 +101,106 @@ function DocItem(props) { )} {permalink && } -
-
-
-
-
-
- {version && ( -
- - Version: {version} - -
- )} - {!hideTitle && ( -
-

{title}

-
- )} -
- +
+
+
+
+
+ {version && ( +
+ + Version: {version} +
-
- {(editUrl || lastUpdatedAt || lastUpdatedBy) && ( -
-
-
- {editUrl && ( - - - - - - - Edit this page - - )} -
- {(lastUpdatedAt || lastUpdatedBy) && ( -
- - - Last updated{' '} - {lastUpdatedAt && ( - <> - on{' '} - - {lastUpdatedBy && ' '} - - )} - {lastUpdatedBy && ( - <> - by {lastUpdatedBy} - - )} - {process.env.NODE_ENV === 'development' && ( -
- - {' '} - (Simulated during dev for better perf) - -
- )} -
-
-
+ )} + {!hideTitle && ( +
+

{title}

+
+ )} +
+ +
+
+ {(editUrl || lastUpdatedAt || lastUpdatedBy) && ( +
+
+
+ {editUrl && ( + + + + + + + Edit this page + )}
+ {(lastUpdatedAt || lastUpdatedBy) && ( +
+ + + Last updated{' '} + {lastUpdatedAt && ( + <> + on{' '} + + {lastUpdatedBy && ' '} + + )} + {lastUpdatedBy && ( + <> + by {lastUpdatedBy} + + )} + {process.env.NODE_ENV === 'development' && ( +
+ + {' '} + (Simulated during dev for better perf) + +
+ )} +
+
+
+ )}
- )} -
-
+ )} +
+
- {!hideTableOfContents && DocContent.rightToc && ( - - )}
+ {!hideTableOfContents && DocContent.rightToc && ( + + )}