doc-render-sdk 0.0.5 → 0.0.7
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/bin/doc-render-sdk.js +9 -5
- package/dist/index.d.mts +6 -6
- package/package.json +1 -1
package/bin/doc-render-sdk.js
CHANGED
|
@@ -103,14 +103,17 @@ async function createProject(projectDir, template) {
|
|
|
103
103
|
name: path.basename(projectDir),
|
|
104
104
|
version: '1.0.0',
|
|
105
105
|
description: 'Documentation site built with Doc SDK',
|
|
106
|
-
main: 'index.
|
|
106
|
+
main: 'index.jsx',
|
|
107
107
|
scripts: {
|
|
108
108
|
dev: 'doc-render-sdk dev',
|
|
109
109
|
build: 'doc-render-sdk build',
|
|
110
|
-
|
|
110
|
+
// TODO
|
|
111
|
+
// preview: 'doc-render-sdk preview'
|
|
111
112
|
},
|
|
112
113
|
dependencies: {
|
|
113
|
-
'doc-render-sdk': sdkVersion
|
|
114
|
+
'doc-render-sdk': sdkVersion,
|
|
115
|
+
"react": "^18.2.0",
|
|
116
|
+
"react-dom": "^18.2.0"
|
|
114
117
|
},
|
|
115
118
|
devDependencies: {
|
|
116
119
|
vite: '^5.0.0',
|
|
@@ -221,7 +224,7 @@ docSdk.render('#app');
|
|
|
221
224
|
</head>
|
|
222
225
|
<body>
|
|
223
226
|
<div id="app"></div>
|
|
224
|
-
<script src="index.
|
|
227
|
+
<script src="index.jsx"></script>
|
|
225
228
|
</body>
|
|
226
229
|
</html>`;
|
|
227
230
|
|
|
@@ -285,7 +288,8 @@ function startDevServer(configPath, options) {
|
|
|
285
288
|
server: {
|
|
286
289
|
port: Number(options.port) || 8080,
|
|
287
290
|
host: options.host || 'localhost'
|
|
288
|
-
}
|
|
291
|
+
},
|
|
292
|
+
plugins: createVitePlugins()
|
|
289
293
|
});
|
|
290
294
|
|
|
291
295
|
await server.listen();
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/core/PluginManager.d.ts
|
|
5
5
|
/**
|
|
@@ -572,7 +572,7 @@ declare const Layout: ({
|
|
|
572
572
|
routerManager: any;
|
|
573
573
|
componentRegistry: any;
|
|
574
574
|
onRouteChange: any;
|
|
575
|
-
}) =>
|
|
575
|
+
}) => react_jsx_runtime3.JSX.Element;
|
|
576
576
|
//#endregion
|
|
577
577
|
//#region src/components/Navigation.d.ts
|
|
578
578
|
/**
|
|
@@ -592,7 +592,7 @@ declare const Navigation: ({
|
|
|
592
592
|
componentRegistry: any;
|
|
593
593
|
onNavigate: any;
|
|
594
594
|
compact?: boolean | undefined;
|
|
595
|
-
}) =>
|
|
595
|
+
}) => react_jsx_runtime3.JSX.Element;
|
|
596
596
|
//#endregion
|
|
597
597
|
//#region src/components/Demo.d.ts
|
|
598
598
|
/**
|
|
@@ -610,7 +610,7 @@ declare const Demo: ({
|
|
|
610
610
|
config: any;
|
|
611
611
|
theme: any;
|
|
612
612
|
renderer: any;
|
|
613
|
-
}) =>
|
|
613
|
+
}) => react_jsx_runtime3.JSX.Element;
|
|
614
614
|
//#endregion
|
|
615
615
|
//#region src/components/ApiDoc.d.ts
|
|
616
616
|
/**
|
|
@@ -626,7 +626,7 @@ declare const ApiDoc: ({
|
|
|
626
626
|
componentId: any;
|
|
627
627
|
config: any;
|
|
628
628
|
theme: any;
|
|
629
|
-
}) =>
|
|
629
|
+
}) => react_jsx_runtime3.JSX.Element;
|
|
630
630
|
//#endregion
|
|
631
631
|
//#region src/components/CodeBlock.d.ts
|
|
632
632
|
/**
|
|
@@ -646,7 +646,7 @@ declare const CodeBlock: ({
|
|
|
646
646
|
showLineNumbers?: boolean | undefined;
|
|
647
647
|
highlightLines?: never[] | undefined;
|
|
648
648
|
className?: string | undefined;
|
|
649
|
-
}) =>
|
|
649
|
+
}) => react_jsx_runtime3.JSX.Element;
|
|
650
650
|
//#endregion
|
|
651
651
|
//#region src/index.d.ts
|
|
652
652
|
declare class DocSDK {
|