Skip to content

Commit

Permalink
chore(website): support to generate api folders in monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
mortalYoung committed Apr 7, 2022
1 parent 3c997c3 commit 9fd7f46
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 10 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/molecule/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@dtinsight/molecule",
"version": "0.9.0-beta.4.2",
"description": "A Web IDE UI Framework built with React.js, inspired by VSCode.",
"module": "./index.d.ts",
"typings": "./index.d.ts",
"module": "./molecule.d.ts",
"typings": "./molecule.d.ts",
"scripts": {},
"keywords": [
"react.js",
Expand Down
14 changes: 14 additions & 0 deletions packages/molecule/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "es6",
"target": "es6",
"declaration": true,
"preserveConstEnums": true,
"sourceMap": false,
"outDir": "./",
"rootDir": "./",
"baseUrl": "./"
},
"include": ["./"]
}
8 changes: 6 additions & 2 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
'docusaurus-plugin-typedoc',
// Plugin / TypeDoc options
{
entryPoints: ['../src/index.ts'],
tsconfig: '../tsconfig.json',
entryPoints: [
'../packages/molecule/molecule.d.ts',
'../packages/molecule/ui.d.ts',
'../packages/molecule/monaco.d.ts',
],
tsconfig: '../packages/molecule/tsconfig.json',
name: 'Molecule',
readme: 'none',
excludeExternals: true,
Expand Down
21 changes: 15 additions & 6 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,26 @@ module.exports = {
],
api: [
'api/index',
'api/namespaces/molecule',
{
type: 'category',
label: 'Modules',
collapsed: false,
items: [
{
type: 'autogenerated',
dirName: 'api/modules',
},
],
},
{
type: 'category',
label: 'Namespaces',
collapsed: false,
items: [
'api/namespaces/molecule.component',
'api/namespaces/molecule.model',
'api/namespaces/molecule.react',
'api/namespaces/molecule.event',
'api/namespaces/molecule.monaco',
{
type: 'autogenerated',
dirName: 'api/namespaces',
},
],
},
{
Expand Down

0 comments on commit 9fd7f46

Please sign in to comment.