File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* Unsafe swizzle = might break in future minor upgrades.
3
3
* Run "yarn swizzle @docusaurus/theme-classic DocItem/Layout --eject --danger" and compare the diff.
4
- *
4
+ *
5
5
* Our customizations are marked with comments below
6
6
*/
7
7
@@ -17,6 +17,7 @@ import DocItemTOCMobile from '@theme/DocItem/TOC/Mobile';
17
17
import DocItemTOCDesktop from '@theme/DocItem/TOC/Desktop' ;
18
18
import DocItemContent from '@theme/DocItem/Content' ;
19
19
import DocBreadcrumbs from '@theme/DocBreadcrumbs' ;
20
+ import Unlisted from '@theme/Unlisted' ;
20
21
import styles from './styles.module.css' ;
21
22
/* Customization start */
22
23
import { GiscusHead , GiscusComponent } from '../../../components/Giscus' ;
@@ -43,9 +44,13 @@ function useDocTOC() {
43
44
}
44
45
export default function DocItemLayout ( { children } ) {
45
46
const docTOC = useDocTOC ( ) ;
47
+ const {
48
+ metadata : { unlisted } ,
49
+ } = useDoc ( ) ;
46
50
return (
47
51
< div className = "row" >
48
52
< div className = { clsx ( 'col' , ! docTOC . hidden && styles . docItemCol ) } >
53
+ { unlisted && < Unlisted /> }
49
54
< DocVersionBanner />
50
55
< div className = { styles . docItemContainer } >
51
56
< article >
You can’t perform that action at this time.
0 commit comments