@docusaurus/plugin-content-docs 0.0.0-4730 → 0.0.0-4733
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/markdown/index.js +1 -1
- package/lib/translations.js +18 -20
- package/package.json +9 -9
- package/src/markdown/index.ts +1 -3
- package/src/translations.ts +18 -20
package/lib/markdown/index.js
CHANGED
|
@@ -11,6 +11,6 @@ function markdownLoader(source) {
|
|
|
11
11
|
const fileString = source;
|
|
12
12
|
const callback = this.async();
|
|
13
13
|
const options = this.getOptions();
|
|
14
|
-
return
|
|
14
|
+
return callback?.(null, (0, linkify_1.linkify)(fileString, this.resourcePath, options));
|
|
15
15
|
}
|
|
16
16
|
exports.default = markdownLoader;
|
package/lib/translations.js
CHANGED
|
@@ -84,26 +84,24 @@ function getSidebarTranslationFileContent(sidebar, sidebarName) {
|
|
|
84
84
|
description: `The label for category ${category.label} in sidebar ${sidebarName}`,
|
|
85
85
|
},
|
|
86
86
|
]);
|
|
87
|
-
if (category.link) {
|
|
88
|
-
if (category.link.
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
]);
|
|
106
|
-
}
|
|
87
|
+
if (category.link?.type === 'generated-index') {
|
|
88
|
+
if (category.link.title) {
|
|
89
|
+
entries.push([
|
|
90
|
+
`sidebar.${sidebarName}.category.${category.label}.link.generated-index.title`,
|
|
91
|
+
{
|
|
92
|
+
message: category.link.title,
|
|
93
|
+
description: `The generated-index page title for category ${category.label} in sidebar ${sidebarName}`,
|
|
94
|
+
},
|
|
95
|
+
]);
|
|
96
|
+
}
|
|
97
|
+
if (category.link.description) {
|
|
98
|
+
entries.push([
|
|
99
|
+
`sidebar.${sidebarName}.category.${category.label}.link.generated-index.description`,
|
|
100
|
+
{
|
|
101
|
+
message: category.link.description,
|
|
102
|
+
description: `The generated-index page description for category ${category.label} in sidebar ${sidebarName}`,
|
|
103
|
+
},
|
|
104
|
+
]);
|
|
107
105
|
}
|
|
108
106
|
}
|
|
109
107
|
return entries;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-content-docs",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4733",
|
|
4
4
|
"description": "Docs plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@docusaurus/core": "0.0.0-
|
|
27
|
-
"@docusaurus/logger": "0.0.0-
|
|
28
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
29
|
-
"@docusaurus/utils": "0.0.0-
|
|
30
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
26
|
+
"@docusaurus/core": "0.0.0-4733",
|
|
27
|
+
"@docusaurus/logger": "0.0.0-4733",
|
|
28
|
+
"@docusaurus/mdx-loader": "0.0.0-4733",
|
|
29
|
+
"@docusaurus/utils": "0.0.0-4733",
|
|
30
|
+
"@docusaurus/utils-validation": "0.0.0-4733",
|
|
31
31
|
"combine-promises": "^1.1.0",
|
|
32
32
|
"fs-extra": "^10.0.1",
|
|
33
33
|
"import-fresh": "^3.3.0",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"webpack": "^5.70.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
43
|
-
"@docusaurus/types": "0.0.0-
|
|
42
|
+
"@docusaurus/module-type-aliases": "0.0.0-4733",
|
|
43
|
+
"@docusaurus/types": "0.0.0-4733",
|
|
44
44
|
"@types/js-yaml": "^4.0.5",
|
|
45
45
|
"@types/picomatch": "^2.3.0",
|
|
46
46
|
"commander": "^5.1.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=14"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "b3f9b5a5da00e86eaaba2220c340d4ed81c3baea"
|
|
60
60
|
}
|
package/src/markdown/index.ts
CHANGED
|
@@ -16,7 +16,5 @@ export default function markdownLoader(
|
|
|
16
16
|
const fileString = source;
|
|
17
17
|
const callback = this.async();
|
|
18
18
|
const options = this.getOptions();
|
|
19
|
-
return (
|
|
20
|
-
callback && callback(null, linkify(fileString, this.resourcePath, options))
|
|
21
|
-
);
|
|
19
|
+
return callback?.(null, linkify(fileString, this.resourcePath, options));
|
|
22
20
|
}
|
package/src/translations.ts
CHANGED
|
@@ -118,26 +118,24 @@ function getSidebarTranslationFileContent(
|
|
|
118
118
|
},
|
|
119
119
|
]);
|
|
120
120
|
|
|
121
|
-
if (category.link) {
|
|
122
|
-
if (category.link.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
]);
|
|
140
|
-
}
|
|
121
|
+
if (category.link?.type === 'generated-index') {
|
|
122
|
+
if (category.link.title) {
|
|
123
|
+
entries.push([
|
|
124
|
+
`sidebar.${sidebarName}.category.${category.label}.link.generated-index.title`,
|
|
125
|
+
{
|
|
126
|
+
message: category.link.title,
|
|
127
|
+
description: `The generated-index page title for category ${category.label} in sidebar ${sidebarName}`,
|
|
128
|
+
},
|
|
129
|
+
]);
|
|
130
|
+
}
|
|
131
|
+
if (category.link.description) {
|
|
132
|
+
entries.push([
|
|
133
|
+
`sidebar.${sidebarName}.category.${category.label}.link.generated-index.description`,
|
|
134
|
+
{
|
|
135
|
+
message: category.link.description,
|
|
136
|
+
description: `The generated-index page description for category ${category.label} in sidebar ${sidebarName}`,
|
|
137
|
+
},
|
|
138
|
+
]);
|
|
141
139
|
}
|
|
142
140
|
}
|
|
143
141
|
|