File tree Expand file tree Collapse file tree 12 files changed +30
-30
lines changed
docusaurus-theme-classic/src
docusaurus-theme-common/src
docusaurus-theme-translations/locales/base Expand file tree Collapse file tree 12 files changed +30
-30
lines changed Original file line number Diff line number Diff line change @@ -1602,20 +1602,20 @@ declare module '@theme/Tag' {
1602
1602
export default function Tag ( props : Props ) : JSX . Element ;
1603
1603
}
1604
1604
1605
- declare module '@theme/Unlisted' {
1605
+ declare module '@theme/ContentVisibility/ Unlisted' {
1606
1606
export interface Props {
1607
1607
className ?: string ;
1608
1608
}
1609
1609
1610
1610
export default function Unlisted ( props : Props ) : JSX . Element ;
1611
1611
}
1612
1612
1613
- declare module '@theme/Drafted ' {
1613
+ declare module '@theme/ContentVisibility/Draft ' {
1614
1614
export interface Props {
1615
1615
className ?: string ;
1616
1616
}
1617
1617
1618
- export default function Unlisted ( props : Props ) : JSX . Element ;
1618
+ export default function Draft ( props : Props ) : JSX . Element ;
1619
1619
}
1620
1620
1621
1621
declare module '@theme/prism-include-languages' {
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ import BlogPostPageMetadata from '@theme/BlogPostPage/Metadata';
19
19
import BlogPostPageStructuredData from '@theme/BlogPostPage/StructuredData' ;
20
20
import TOC from '@theme/TOC' ;
21
21
import type { Props } from '@theme/BlogPostPage' ;
22
- import Unlisted from '@theme/Unlisted' ;
23
- import Drafted from '@theme/Drafted ' ;
22
+ import Unlisted from '@theme/ContentVisibility/ Unlisted' ;
23
+ import Draft from '@theme/ContentVisibility/Draft ' ;
24
24
import type { BlogSidebar } from '@docusaurus/plugin-content-blog' ;
25
25
26
26
function BlogPostPageContent ( {
@@ -50,7 +50,7 @@ function BlogPostPageContent({
50
50
) : undefined
51
51
} >
52
52
{ ( unlisted || frontMatter . unlisted ) && < Unlisted /> }
53
- { frontMatter . draft && < Drafted /> }
53
+ { frontMatter . draft && < Draft /> }
54
54
55
55
< BlogPostItem > { children } </ BlogPostItem >
56
56
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import BlogListPaginator from '@theme/BlogListPaginator';
20
20
import SearchMetadata from '@theme/SearchMetadata' ;
21
21
import type { Props } from '@theme/BlogTagsPostsPage' ;
22
22
import BlogPostItems from '@theme/BlogPostItems' ;
23
- import Unlisted from '@theme/Unlisted' ;
23
+ import Unlisted from '@theme/ContentVisibility/ Unlisted' ;
24
24
import Heading from '@theme/Heading' ;
25
25
26
26
function BlogTagsPostsPageMetadata ( { tag} : Props ) : JSX . Element {
Original file line number Diff line number Diff line change @@ -9,19 +9,19 @@ import React from 'react';
9
9
import clsx from 'clsx' ;
10
10
import {
11
11
ThemeClassNames ,
12
- DraftedBannerTitle ,
13
- DraftedBannerMessage ,
12
+ DraftBannerTitle ,
13
+ DraftBannerMessage ,
14
14
} from '@docusaurus/theme-common' ;
15
15
import Admonition from '@theme/Admonition' ;
16
- import type { Props } from '@theme/Drafted ' ;
16
+ import type { Props } from '@theme/ContentVisibility/Draft ' ;
17
17
18
- export default function Drafted ( { className} : Props ) : JSX . Element | null {
18
+ export default function Draft ( { className} : Props ) : JSX . Element | null {
19
19
return (
20
20
< Admonition
21
21
type = "caution"
22
- title = { < DraftedBannerTitle /> }
23
- className = { clsx ( className , ThemeClassNames . common . draftedBanner ) } >
24
- < DraftedBannerMessage />
22
+ title = { < DraftBannerTitle /> }
23
+ className = { clsx ( className , ThemeClassNames . common . draftBanner ) } >
24
+ < DraftBannerMessage />
25
25
</ Admonition >
26
26
) ;
27
27
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
UnlistedMetadata ,
15
15
} from '@docusaurus/theme-common' ;
16
16
import Admonition from '@theme/Admonition' ;
17
- import type { Props } from '@theme/Unlisted' ;
17
+ import type { Props } from '@theme/ContentVisibility/ Unlisted' ;
18
18
19
19
function UnlistedBanner ( { className} : Props ) {
20
20
return (
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ 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
+ import Unlisted from '@theme/ContentVisibility/Unlisted' ;
21
+ import Draft from '@theme/ContentVisibility/Draft' ;
21
22
import type { Props } from '@theme/DocItem/Layout' ;
22
23
23
- import Drafted from '@theme/Drafted' ;
24
24
import styles from './styles.module.css' ;
25
25
26
26
/**
@@ -56,7 +56,7 @@ export default function DocItemLayout({children}: Props): JSX.Element {
56
56
< div className = "row" >
57
57
< div className = { clsx ( 'col' , ! docTOC . hidden && styles . docItemCol ) } >
58
58
{ ( unlisted || frontMatter . unlisted ) && < Unlisted /> }
59
- { frontMatter . draft && < Drafted /> }
59
+ { frontMatter . draft && < Draft /> }
60
60
< DocVersionBanner />
61
61
< div className = { styles . docItemContainer } >
62
62
< article >
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
17
17
import Translate , { translate } from '@docusaurus/Translate' ;
18
18
import SearchMetadata from '@theme/SearchMetadata' ;
19
19
import type { Props } from '@theme/DocTagDocListPage' ;
20
- import Unlisted from '@theme/Unlisted' ;
20
+ import Unlisted from '@theme/ContentVisibility/ Unlisted' ;
21
21
import Heading from '@theme/Heading' ;
22
22
23
23
// Very simple pluralization: probably good enough for now
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ import {
15
15
import Layout from '@theme/Layout' ;
16
16
import MDXContent from '@theme/MDXContent' ;
17
17
import TOC from '@theme/TOC' ;
18
- import Unlisted from '@theme/Unlisted' ;
18
+ import Unlisted from '@theme/ContentVisibility/Unlisted' ;
19
+ import Draft from '@theme/ContentVisibility/Draft' ;
19
20
import type { Props } from '@theme/MDXPage' ;
20
21
21
22
import EditMetaRow from '@theme/EditMetaRow' ;
22
- import Drafted from '@theme/Drafted' ;
23
23
import styles from './styles.module.css' ;
24
24
25
25
export default function MDXPage ( props : Props ) : JSX . Element {
@@ -62,7 +62,7 @@ export default function MDXPage(props: Props): JSX.Element {
62
62
< div className = { clsx ( 'row' , styles . mdxPageWrapper ) } >
63
63
< div className = { clsx ( 'col' , ! hideTableOfContents && 'col--8' ) } >
64
64
{ ( unlisted || frontMatter . unlisted ) && < Unlisted /> }
65
- { frontMatter . draft && < Drafted /> }
65
+ { frontMatter . draft && < Draft /> }
66
66
< article >
67
67
< MDXContent >
68
68
< MDXPageContent />
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export {
125
125
UnlistedMetadata ,
126
126
} from './utils/unlistedUtils' ;
127
127
128
- export { DraftedBannerTitle , DraftedBannerMessage } from './utils/draftedUtils ' ;
128
+ export { DraftBannerTitle , DraftBannerMessage } from './utils/draftUtils ' ;
129
129
130
130
export {
131
131
ErrorBoundaryTryAgainButton ,
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export const ThemeClassNames = {
43
43
codeBlock : 'theme-code-block' ,
44
44
admonition : 'theme-admonition' ,
45
45
unlistedBanner : 'theme-unlisted-banner' ,
46
- draftedBanner : 'theme-drafted-banner' ,
46
+ draftBanner : 'theme-drafted-banner' ,
47
47
48
48
admonitionType : ( type : string ) => `theme-admonition-${ type } ` ,
49
49
} ,
You can’t perform that action at this time.
0 commit comments