@docusaurus/theme-classic 0.0.0-4943 → 0.0.0-4946
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/index.js +2 -2
- package/lib/theme-classic.d.ts +16 -9
- package/package.json +13 -13
- package/src/index.ts +2 -2
- package/src/theme-classic.d.ts +16 -9
package/lib/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.AnnouncementBarDismissStorageKey = void 0;
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = themeClassic;
|
|
8
8
|
Object.defineProperty(exports, "getSwizzleConfig", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function () {
|
|
@@ -108,7 +108,7 @@ function getInfimaCSSFile(direction) {
|
|
|
108
108
|
return `infima/dist/css/default/default${direction === 'rtl' ? '-rtl' : ''}.css`;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
function
|
|
111
|
+
function themeClassic(context, options) {
|
|
112
112
|
const {
|
|
113
113
|
i18n: {
|
|
114
114
|
currentLocale,
|
package/lib/theme-classic.d.ts
CHANGED
|
@@ -21,9 +21,16 @@
|
|
|
21
21
|
// in their tsconfig.
|
|
22
22
|
|
|
23
23
|
declare module '@docusaurus/theme-classic' {
|
|
24
|
+
import type {LoadContext, Plugin} from '@docusaurus/types';
|
|
25
|
+
|
|
24
26
|
export type Options = {
|
|
25
27
|
customCss?: string | string[];
|
|
26
28
|
};
|
|
29
|
+
|
|
30
|
+
export default function themeClassic(
|
|
31
|
+
context: LoadContext,
|
|
32
|
+
options: Options,
|
|
33
|
+
): Plugin<undefined>;
|
|
27
34
|
}
|
|
28
35
|
|
|
29
36
|
declare module '@theme/Admonition' {
|
|
@@ -47,10 +54,10 @@ declare module '@theme/BackToTopButton' {
|
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
declare module '@theme/BlogListPaginator' {
|
|
50
|
-
import type {
|
|
57
|
+
import type {BlogPaginatedMetadata} from '@docusaurus/plugin-content-blog';
|
|
51
58
|
|
|
52
59
|
export interface Props {
|
|
53
|
-
readonly metadata:
|
|
60
|
+
readonly metadata: BlogPaginatedMetadata;
|
|
54
61
|
}
|
|
55
62
|
export default function BlogListPaginator(props: Props): JSX.Element;
|
|
56
63
|
}
|
|
@@ -1057,7 +1064,7 @@ declare module '@theme/Details' {
|
|
|
1057
1064
|
}
|
|
1058
1065
|
|
|
1059
1066
|
declare module '@theme/TOCItems' {
|
|
1060
|
-
import type {TOCItem} from '@docusaurus/
|
|
1067
|
+
import type {TOCItem} from '@docusaurus/mdx-loader';
|
|
1061
1068
|
|
|
1062
1069
|
export interface Props {
|
|
1063
1070
|
readonly toc: readonly TOCItem[];
|
|
@@ -1085,7 +1092,7 @@ declare module '@theme/TOCItems/Tree' {
|
|
|
1085
1092
|
}
|
|
1086
1093
|
|
|
1087
1094
|
declare module '@theme/TOC' {
|
|
1088
|
-
import type {TOCItem} from '@docusaurus/
|
|
1095
|
+
import type {TOCItem} from '@docusaurus/mdx-loader';
|
|
1089
1096
|
|
|
1090
1097
|
// `minHeadingLevel` only comes from doc/post front matter, and won't have a
|
|
1091
1098
|
// default set by Joi. See TOC, TOCInline, TOCCollapsible for examples.
|
|
@@ -1100,7 +1107,7 @@ declare module '@theme/TOC' {
|
|
|
1100
1107
|
}
|
|
1101
1108
|
|
|
1102
1109
|
declare module '@theme/TOCInline' {
|
|
1103
|
-
import type {TOCItem} from '@docusaurus/
|
|
1110
|
+
import type {TOCItem} from '@docusaurus/mdx-loader';
|
|
1104
1111
|
|
|
1105
1112
|
export interface Props {
|
|
1106
1113
|
readonly toc: readonly TOCItem[];
|
|
@@ -1112,7 +1119,7 @@ declare module '@theme/TOCInline' {
|
|
|
1112
1119
|
}
|
|
1113
1120
|
|
|
1114
1121
|
declare module '@theme/TOCCollapsible' {
|
|
1115
|
-
import type {TOCItem} from '@docusaurus/
|
|
1122
|
+
import type {TOCItem} from '@docusaurus/mdx-loader';
|
|
1116
1123
|
|
|
1117
1124
|
export interface Props {
|
|
1118
1125
|
readonly className?: string;
|
|
@@ -1236,7 +1243,7 @@ declare module '@theme/IconExternalLink' {
|
|
|
1236
1243
|
}
|
|
1237
1244
|
|
|
1238
1245
|
declare module '@theme/TagsListByLetter' {
|
|
1239
|
-
import type {TagsListItem} from '@docusaurus/
|
|
1246
|
+
import type {TagsListItem} from '@docusaurus/utils';
|
|
1240
1247
|
|
|
1241
1248
|
export interface Props {
|
|
1242
1249
|
readonly tags: readonly TagsListItem[];
|
|
@@ -1245,7 +1252,7 @@ declare module '@theme/TagsListByLetter' {
|
|
|
1245
1252
|
}
|
|
1246
1253
|
|
|
1247
1254
|
declare module '@theme/TagsListInline' {
|
|
1248
|
-
import type {Tag} from '@docusaurus/
|
|
1255
|
+
import type {Tag} from '@docusaurus/utils';
|
|
1249
1256
|
|
|
1250
1257
|
export interface Props {
|
|
1251
1258
|
readonly tags: readonly Tag[];
|
|
@@ -1254,7 +1261,7 @@ declare module '@theme/TagsListInline' {
|
|
|
1254
1261
|
}
|
|
1255
1262
|
|
|
1256
1263
|
declare module '@theme/Tag' {
|
|
1257
|
-
import type {TagsListItem} from '@docusaurus/
|
|
1264
|
+
import type {TagsListItem} from '@docusaurus/utils';
|
|
1258
1265
|
import type {Optional} from 'utility-types';
|
|
1259
1266
|
|
|
1260
1267
|
export interface Props extends Optional<TagsListItem, 'count'> {}
|
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-4946",
|
|
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-4946",
|
|
25
|
+
"@docusaurus/plugin-content-blog": "0.0.0-4946",
|
|
26
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4946",
|
|
27
|
+
"@docusaurus/plugin-content-pages": "0.0.0-4946",
|
|
28
|
+
"@docusaurus/theme-common": "0.0.0-4946",
|
|
29
|
+
"@docusaurus/theme-translations": "0.0.0-4946",
|
|
30
|
+
"@docusaurus/utils": "0.0.0-4946",
|
|
31
|
+
"@docusaurus/utils-common": "0.0.0-4946",
|
|
32
|
+
"@docusaurus/utils-validation": "0.0.0-4946",
|
|
33
33
|
"@mdx-js/react": "^1.6.22",
|
|
34
34
|
"clsx": "^1.1.1",
|
|
35
35
|
"copy-text-to-clipboard": "^3.0.1",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@babel/cli": "^7.17.10",
|
|
47
47
|
"@babel/core": "^7.17.10",
|
|
48
48
|
"@babel/preset-typescript": "^7.16.7",
|
|
49
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
50
|
-
"@docusaurus/types": "0.0.0-
|
|
49
|
+
"@docusaurus/module-type-aliases": "0.0.0-4946",
|
|
50
|
+
"@docusaurus/types": "0.0.0-4946",
|
|
51
51
|
"@types/mdx-js__react": "^1.5.5",
|
|
52
52
|
"@types/nprogress": "^0.2.0",
|
|
53
53
|
"@types/prismjs": "^1.26.0",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=14"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "01073ce535af35aa33c1b221e2adb99ac993d589"
|
|
68
68
|
}
|
package/src/index.ts
CHANGED
|
@@ -91,10 +91,10 @@ function getInfimaCSSFile(direction: string) {
|
|
|
91
91
|
}.css`;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
export default function
|
|
94
|
+
export default function themeClassic(
|
|
95
95
|
context: LoadContext,
|
|
96
96
|
options: Options,
|
|
97
|
-
): Plugin<
|
|
97
|
+
): Plugin<undefined> {
|
|
98
98
|
const {
|
|
99
99
|
i18n: {currentLocale, localeConfigs},
|
|
100
100
|
} = context;
|
package/src/theme-classic.d.ts
CHANGED
|
@@ -21,9 +21,16 @@
|
|
|
21
21
|
// in their tsconfig.
|
|
22
22
|
|
|
23
23
|
declare module '@docusaurus/theme-classic' {
|
|
24
|
+
import type {LoadContext, Plugin} from '@docusaurus/types';
|
|
25
|
+
|
|
24
26
|
export type Options = {
|
|
25
27
|
customCss?: string | string[];
|
|
26
28
|
};
|
|
29
|
+
|
|
30
|
+
export default function themeClassic(
|
|
31
|
+
context: LoadContext,
|
|
32
|
+
options: Options,
|
|
33
|
+
): Plugin<undefined>;
|
|
27
34
|
}
|
|
28
35
|
|
|
29
36
|
declare module '@theme/Admonition' {
|
|
@@ -47,10 +54,10 @@ declare module '@theme/BackToTopButton' {
|
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
declare module '@theme/BlogListPaginator' {
|
|
50
|
-
import type {
|
|
57
|
+
import type {BlogPaginatedMetadata} from '@docusaurus/plugin-content-blog';
|
|
51
58
|
|
|
52
59
|
export interface Props {
|
|
53
|
-
readonly metadata:
|
|
60
|
+
readonly metadata: BlogPaginatedMetadata;
|
|
54
61
|
}
|
|
55
62
|
export default function BlogListPaginator(props: Props): JSX.Element;
|
|
56
63
|
}
|
|
@@ -1057,7 +1064,7 @@ declare module '@theme/Details' {
|
|
|
1057
1064
|
}
|
|
1058
1065
|
|
|
1059
1066
|
declare module '@theme/TOCItems' {
|
|
1060
|
-
import type {TOCItem} from '@docusaurus/
|
|
1067
|
+
import type {TOCItem} from '@docusaurus/mdx-loader';
|
|
1061
1068
|
|
|
1062
1069
|
export interface Props {
|
|
1063
1070
|
readonly toc: readonly TOCItem[];
|
|
@@ -1085,7 +1092,7 @@ declare module '@theme/TOCItems/Tree' {
|
|
|
1085
1092
|
}
|
|
1086
1093
|
|
|
1087
1094
|
declare module '@theme/TOC' {
|
|
1088
|
-
import type {TOCItem} from '@docusaurus/
|
|
1095
|
+
import type {TOCItem} from '@docusaurus/mdx-loader';
|
|
1089
1096
|
|
|
1090
1097
|
// `minHeadingLevel` only comes from doc/post front matter, and won't have a
|
|
1091
1098
|
// default set by Joi. See TOC, TOCInline, TOCCollapsible for examples.
|
|
@@ -1100,7 +1107,7 @@ declare module '@theme/TOC' {
|
|
|
1100
1107
|
}
|
|
1101
1108
|
|
|
1102
1109
|
declare module '@theme/TOCInline' {
|
|
1103
|
-
import type {TOCItem} from '@docusaurus/
|
|
1110
|
+
import type {TOCItem} from '@docusaurus/mdx-loader';
|
|
1104
1111
|
|
|
1105
1112
|
export interface Props {
|
|
1106
1113
|
readonly toc: readonly TOCItem[];
|
|
@@ -1112,7 +1119,7 @@ declare module '@theme/TOCInline' {
|
|
|
1112
1119
|
}
|
|
1113
1120
|
|
|
1114
1121
|
declare module '@theme/TOCCollapsible' {
|
|
1115
|
-
import type {TOCItem} from '@docusaurus/
|
|
1122
|
+
import type {TOCItem} from '@docusaurus/mdx-loader';
|
|
1116
1123
|
|
|
1117
1124
|
export interface Props {
|
|
1118
1125
|
readonly className?: string;
|
|
@@ -1236,7 +1243,7 @@ declare module '@theme/IconExternalLink' {
|
|
|
1236
1243
|
}
|
|
1237
1244
|
|
|
1238
1245
|
declare module '@theme/TagsListByLetter' {
|
|
1239
|
-
import type {TagsListItem} from '@docusaurus/
|
|
1246
|
+
import type {TagsListItem} from '@docusaurus/utils';
|
|
1240
1247
|
|
|
1241
1248
|
export interface Props {
|
|
1242
1249
|
readonly tags: readonly TagsListItem[];
|
|
@@ -1245,7 +1252,7 @@ declare module '@theme/TagsListByLetter' {
|
|
|
1245
1252
|
}
|
|
1246
1253
|
|
|
1247
1254
|
declare module '@theme/TagsListInline' {
|
|
1248
|
-
import type {Tag} from '@docusaurus/
|
|
1255
|
+
import type {Tag} from '@docusaurus/utils';
|
|
1249
1256
|
|
|
1250
1257
|
export interface Props {
|
|
1251
1258
|
readonly tags: readonly Tag[];
|
|
@@ -1254,7 +1261,7 @@ declare module '@theme/TagsListInline' {
|
|
|
1254
1261
|
}
|
|
1255
1262
|
|
|
1256
1263
|
declare module '@theme/Tag' {
|
|
1257
|
-
import type {TagsListItem} from '@docusaurus/
|
|
1264
|
+
import type {TagsListItem} from '@docusaurus/utils';
|
|
1258
1265
|
import type {Optional} from 'utility-types';
|
|
1259
1266
|
|
|
1260
1267
|
export interface Props extends Optional<TagsListItem, 'count'> {}
|