@docusaurus/theme-classic 0.0.0-4788 → 0.0.0-4792
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/theme-classic.d.ts +7 -0
- package/lib-next/theme/CodeBlock/styles.module.css +4 -3
- package/lib-next/theme/DocItem/index.js +1 -1
- package/package.json +13 -13
- package/src/theme/CodeBlock/styles.module.css +4 -3
- package/src/theme/DocItem/index.tsx +1 -1
- package/src/theme-classic.d.ts +7 -0
- package/lib/types.d.ts +0 -11
- package/src/types.d.ts +0 -11
package/lib/theme-classic.d.ts
CHANGED
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
/* eslint-disable @typescript-eslint/triple-slash-reference */
|
|
9
|
+
|
|
10
|
+
/// <reference types="@docusaurus/module-type-aliases" />
|
|
11
|
+
/// <reference types="@docusaurus/plugin-content-docs" />
|
|
12
|
+
/// <reference types="@docusaurus/plugin-content-blog" />
|
|
13
|
+
/// <reference types="@docusaurus/plugin-content-pages" />
|
|
14
|
+
|
|
8
15
|
declare module '@docusaurus/theme-classic' {
|
|
9
16
|
export type Options = {
|
|
10
17
|
customCss?: string | string[];
|
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
.codeBlockContainer {
|
|
9
9
|
margin-bottom: var(--ifm-leading);
|
|
10
10
|
box-shadow: var(--ifm-global-shadow-lw);
|
|
11
|
+
border-radius: var(--ifm-code-border-radius);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
.codeBlockContent {
|
|
14
15
|
position: relative;
|
|
15
16
|
/* rtl:ignore */
|
|
16
17
|
direction: ltr;
|
|
17
|
-
border-radius:
|
|
18
|
+
border-radius: inherit;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.codeBlockTitle {
|
|
@@ -22,8 +23,8 @@
|
|
|
22
23
|
font-size: var(--ifm-code-font-size);
|
|
23
24
|
font-weight: 500;
|
|
24
25
|
padding: 0.75rem var(--ifm-pre-padding);
|
|
25
|
-
border-top-left-radius:
|
|
26
|
-
border-top-right-radius:
|
|
26
|
+
border-top-left-radius: inherit;
|
|
27
|
+
border-top-right-radius: inherit;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
.codeBlock {
|
|
@@ -51,7 +51,7 @@ function DocItemContent(props) {
|
|
|
51
51
|
toc_max_heading_level: tocMaxHeadingLevel,
|
|
52
52
|
} = frontMatter;
|
|
53
53
|
const {title} = metadata; // We only add a title if:
|
|
54
|
-
// - user
|
|
54
|
+
// - user doesn't ask to hide it with front matter
|
|
55
55
|
// - the markdown content does not already contain a top-level h1 heading
|
|
56
56
|
|
|
57
57
|
const shouldAddTitle =
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4792",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@docusaurus/core": "0.0.0-
|
|
25
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
26
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
28
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
29
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
30
|
-
"@docusaurus/utils": "0.0.0-
|
|
31
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
32
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
24
|
+
"@docusaurus/core": "0.0.0-4792",
|
|
25
|
+
"@docusaurus/plugin-content-blog": "0.0.0-4792",
|
|
26
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4792",
|
|
27
|
+
"@docusaurus/plugin-content-pages": "0.0.0-4792",
|
|
28
|
+
"@docusaurus/theme-common": "0.0.0-4792",
|
|
29
|
+
"@docusaurus/theme-translations": "0.0.0-4792",
|
|
30
|
+
"@docusaurus/utils": "0.0.0-4792",
|
|
31
|
+
"@docusaurus/utils-common": "0.0.0-4792",
|
|
32
|
+
"@docusaurus/utils-validation": "0.0.0-4792",
|
|
33
33
|
"@mdx-js/react": "^1.6.22",
|
|
34
34
|
"clsx": "^1.1.1",
|
|
35
35
|
"copy-text-to-clipboard": "^3.0.1",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"rtlcss": "^3.5.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
46
|
-
"@docusaurus/types": "0.0.0-
|
|
45
|
+
"@docusaurus/module-type-aliases": "0.0.0-4792",
|
|
46
|
+
"@docusaurus/types": "0.0.0-4792",
|
|
47
47
|
"@types/mdx-js__react": "^1.5.5",
|
|
48
48
|
"@types/prismjs": "^1.26.0",
|
|
49
49
|
"@types/rtlcss": "^3.1.2",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=14"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "38eb1dcf25728a582b37f71e41ad5d21cc17db1f"
|
|
63
63
|
}
|
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
.codeBlockContainer {
|
|
9
9
|
margin-bottom: var(--ifm-leading);
|
|
10
10
|
box-shadow: var(--ifm-global-shadow-lw);
|
|
11
|
+
border-radius: var(--ifm-code-border-radius);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
.codeBlockContent {
|
|
14
15
|
position: relative;
|
|
15
16
|
/* rtl:ignore */
|
|
16
17
|
direction: ltr;
|
|
17
|
-
border-radius:
|
|
18
|
+
border-radius: inherit;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.codeBlockTitle {
|
|
@@ -22,8 +23,8 @@
|
|
|
22
23
|
font-size: var(--ifm-code-font-size);
|
|
23
24
|
font-weight: 500;
|
|
24
25
|
padding: 0.75rem var(--ifm-pre-padding);
|
|
25
|
-
border-top-left-radius:
|
|
26
|
-
border-top-right-radius:
|
|
26
|
+
border-top-left-radius: inherit;
|
|
27
|
+
border-top-right-radius: inherit;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
.codeBlock {
|
|
@@ -47,7 +47,7 @@ function DocItemContent(props: Props): JSX.Element {
|
|
|
47
47
|
const {title} = metadata;
|
|
48
48
|
|
|
49
49
|
// We only add a title if:
|
|
50
|
-
// - user
|
|
50
|
+
// - user doesn't ask to hide it with front matter
|
|
51
51
|
// - the markdown content does not already contain a top-level h1 heading
|
|
52
52
|
const shouldAddTitle =
|
|
53
53
|
!hideTitle && typeof DocContent.contentTitle === 'undefined';
|
package/src/theme-classic.d.ts
CHANGED
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
/* eslint-disable @typescript-eslint/triple-slash-reference */
|
|
9
|
+
|
|
10
|
+
/// <reference types="@docusaurus/module-type-aliases" />
|
|
11
|
+
/// <reference types="@docusaurus/plugin-content-docs" />
|
|
12
|
+
/// <reference types="@docusaurus/plugin-content-blog" />
|
|
13
|
+
/// <reference types="@docusaurus/plugin-content-pages" />
|
|
14
|
+
|
|
8
15
|
declare module '@docusaurus/theme-classic' {
|
|
9
16
|
export type Options = {
|
|
10
17
|
customCss?: string | string[];
|
package/lib/types.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/// <reference types="@docusaurus/module-type-aliases" />
|
|
9
|
-
/// <reference types="@docusaurus/plugin-content-blog" />
|
|
10
|
-
/// <reference types="@docusaurus/plugin-content-docs" />
|
|
11
|
-
/// <reference types="@docusaurus/plugin-content-pages" />
|
package/src/types.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/// <reference types="@docusaurus/module-type-aliases" />
|
|
9
|
-
/// <reference types="@docusaurus/plugin-content-blog" />
|
|
10
|
-
/// <reference types="@docusaurus/plugin-content-docs" />
|
|
11
|
-
/// <reference types="@docusaurus/plugin-content-pages" />
|