@xyd-js/cli 0.1.0-xyd.23 → 0.1.0-xyd.25
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/.cli/index.js
CHANGED
package/.cli/package.json
CHANGED
|
@@ -249,6 +249,14 @@ function mdxContent(code: string) {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
+
// TODO: below is a concept only
|
|
253
|
+
// const themeSettings = new ThemeSettings()
|
|
254
|
+
// .toc.hide()
|
|
255
|
+
// .sidebar({
|
|
256
|
+
// clientSideRouting: true
|
|
257
|
+
// })
|
|
258
|
+
// .layout.size("large")
|
|
259
|
+
|
|
252
260
|
// TODO: in the future more smoother loader - first fast server render then move to ideal position of client and then replace and 3 items at start
|
|
253
261
|
export default function APIReference({loaderData}: { loaderData: loaderData }) {
|
|
254
262
|
const content = mdxContent(loaderData.code)
|
|
@@ -267,9 +275,11 @@ export default function APIReference({loaderData}: { loaderData: loaderData }) {
|
|
|
267
275
|
<Theme
|
|
268
276
|
themeSettings={{
|
|
269
277
|
hideToc: true,
|
|
270
|
-
bigArticle: true,
|
|
271
278
|
sidebar: {
|
|
272
279
|
clientSideRouting: true
|
|
280
|
+
},
|
|
281
|
+
layout: {
|
|
282
|
+
size: "large"
|
|
273
283
|
}
|
|
274
284
|
}}
|
|
275
285
|
>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyd-js/cli",
|
|
3
|
-
"version": "0.1.0-xyd.
|
|
3
|
+
"version": "0.1.0-xyd.25",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": "",
|
|
6
6
|
"description": "",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
".cli",
|
|
14
14
|
"postinstall.js"
|
|
15
15
|
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsup",
|
|
18
|
+
"postinstall": "node postinstall.js"
|
|
19
|
+
},
|
|
16
20
|
"dependencies": {
|
|
17
21
|
"@xyd-js/react-router-dev": "7.1.1-xyd.4",
|
|
18
22
|
"arg": "^5.0.2",
|
|
@@ -57,15 +61,11 @@
|
|
|
57
61
|
"vite-tsconfig-paths": "^5.1.4"
|
|
58
62
|
},
|
|
59
63
|
"devDependencies": {
|
|
64
|
+
"@xyd-js/documan": "workspace:*",
|
|
60
65
|
"tsup": "^8.3.0",
|
|
61
66
|
"arg": "^5.0.2",
|
|
62
67
|
"colors": "^1.4.0",
|
|
63
68
|
"semver": "^7.6.3",
|
|
64
|
-
"vite-tsconfig-paths": "^5.1.4"
|
|
65
|
-
"@xyd-js/documan": "0.1.0-xyd.21"
|
|
66
|
-
},
|
|
67
|
-
"scripts": {
|
|
68
|
-
"build": "tsup",
|
|
69
|
-
"postinstall": "node postinstall.js"
|
|
69
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
70
70
|
}
|
|
71
71
|
}
|