File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11/**
22 * Unsafe swizzle = might break in future minor upgrades.
33 * Run "yarn swizzle @docusaurus/theme-classic DocItem/Layout --eject --danger" and compare the diff.
4- *
4+ *
55 * Our customizations are marked with comments below
66 */
77
@@ -17,6 +17,7 @@ import DocItemTOCMobile from '@theme/DocItem/TOC/Mobile';
1717import DocItemTOCDesktop from '@theme/DocItem/TOC/Desktop' ;
1818import DocItemContent from '@theme/DocItem/Content' ;
1919import DocBreadcrumbs from '@theme/DocBreadcrumbs' ;
20+ import Unlisted from '@theme/Unlisted' ;
2021import styles from './styles.module.css' ;
2122/* Customization start */
2223import { GiscusHead , GiscusComponent } from '../../../components/Giscus' ;
@@ -43,9 +44,13 @@ function useDocTOC() {
4344}
4445export default function DocItemLayout ( { children } ) {
4546 const docTOC = useDocTOC ( ) ;
47+ const {
48+ metadata : { unlisted } ,
49+ } = useDoc ( ) ;
4650 return (
4751 < div className = "row" >
4852 < div className = { clsx ( 'col' , ! docTOC . hidden && styles . docItemCol ) } >
53+ { unlisted && < Unlisted /> }
4954 < DocVersionBanner />
5055 < div className = { styles . docItemContainer } >
5156 < article >
You can’t perform that action at this time.
0 commit comments