Skip to content

Commit 062fb4a

Browse files
committed
chore(website): support to generate api folders in monorepo
1 parent 199f6fb commit 062fb4a

File tree

5 files changed

+37
-10
lines changed

5 files changed

+37
-10
lines changed
File renamed without changes.

packages/molecule/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "@dtinsight/molecule",
33
"version": "0.9.0-beta.4.2",
44
"description": "A Web IDE UI Framework built with React.js, inspired by VSCode.",
5-
"module": "./index.d.ts",
6-
"typings": "./index.d.ts",
5+
"module": "./molecule.d.ts",
6+
"typings": "./molecule.d.ts",
77
"scripts": {},
88
"keywords": [
99
"react.js",

packages/molecule/tsconfig.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"module": "es6",
5+
"target": "es6",
6+
"declaration": true,
7+
"preserveConstEnums": true,
8+
"sourceMap": false,
9+
"outDir": "./",
10+
"rootDir": "./",
11+
"baseUrl": "./"
12+
},
13+
"include": ["./"]
14+
}

website/docusaurus.config.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
3333
'docusaurus-plugin-typedoc',
3434
// Plugin / TypeDoc options
3535
{
36-
entryPoints: ['../src/index.ts'],
37-
tsconfig: '../tsconfig.json',
36+
entryPoints: [
37+
'../packages/molecule/molecule.d.ts',
38+
'../packages/molecule/ui.d.ts',
39+
'../packages/molecule/monaco.d.ts',
40+
],
41+
tsconfig: '../packages/molecule/tsconfig.json',
3842
name: 'Molecule',
3943
readme: 'none',
4044
excludeExternals: true,

website/sidebars.js

+15-6
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,26 @@ module.exports = {
5050
],
5151
api: [
5252
'api/index',
53-
'api/namespaces/molecule',
53+
{
54+
type: 'category',
55+
label: 'Modules',
56+
collapsed: false,
57+
items: [
58+
{
59+
type: 'autogenerated',
60+
dirName: 'api/modules',
61+
},
62+
],
63+
},
5464
{
5565
type: 'category',
5666
label: 'Namespaces',
5767
collapsed: false,
5868
items: [
59-
'api/namespaces/molecule.component',
60-
'api/namespaces/molecule.model',
61-
'api/namespaces/molecule.react',
62-
'api/namespaces/molecule.event',
63-
'api/namespaces/molecule.monaco',
69+
{
70+
type: 'autogenerated',
71+
dirName: 'api/namespaces',
72+
},
6473
],
6574
},
6675
{

0 commit comments

Comments
 (0)