Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: fix the OOM during docusaurus compilation (#683)
白熱f6a2fe9cb5b6
diff --git a/README-zh.md b/README-zh.mdindex db96f7ace1..4b378f4147 100644--- a/README-zh.md+++ b/README-zh.md@@ -3,7 +3,7 @@[](https://codecov.io/gh/dream-num/univer)-[](https://discord.gg/z3NKNT6D2f)+[](https://discord.gg/z3NKNT6D2f)简体中文 | [English](./README.md)diff --git a/README.md b/README.mdindex 7db7801c13..ceff6d46a6 100644--- a/README.md+++ b/README.md@@ -4,7 +4,7 @@[](https://codecov.io/gh/dream-num/univer)[](https://www.codefactor.io/repository/github/dream-num/univer/overview/dev)-[](https://discord.gg/z3NKNT6D2f)+[](https://discord.gg/z3NKNT6D2f)English | [简体中文](./README-zh.md)diff --git a/apps/docs/docusaurus.config.ts b/apps/docs/docusaurus.config.tsindex cfb4bd596d..70d3cfdbbf 100644--- a/apps/docs/docusaurus.config.ts+++ b/apps/docs/docusaurus.config.ts@@ -1,24 +1,11 @@import type * as Preset from '@docusaurus/preset-classic';import type { Config } from '@docusaurus/types';import { themes as prismThemes } from 'prism-react-renderer';+import rootTsConfig from '../../tsconfig.json';-const packages = [- 'core',- 'design',- 'docs',- 'docs-ui',- 'engine-formula',- 'engine-numfmt',- 'engine-render',- 'formula',- 'rpc',- 'sheets',- 'sheets-formula',- 'sheets-numfmt',- 'sheets-ui',- 'ui',- 'uniscript',-];+const packages = rootTsConfig.references+ .filter((ref) => ref.path.startsWith('./packages/'))+ .map((ref) => ref.path.replace('./packages/', ''));const config: Config = {title: 'Univer',@@ -53,25 +40,27 @@ const config: Config = {},plugins: [- // ...packages.map((name) => [- // 'docusaurus-plugin-typedoc',- // {- // id: `api/${name}`,- // entryPoints: [`../../packages/${name}/src/index.ts`],- // tsconfig: `../../packages/${name}/tsconfig.json`,- // exclude: ['node_modules/**/*', '**/*+(.spec|.e2e|.test).ts'],- // excludePrivate: true,- // excludeExternals: true,- // excludeInternal: true,- // cleanOutputDir: true,- // skipErrorChecking: true,- // out: `api/${name}`,- // sidebar: {- // categoryLabel: name,- // fullNames: true,- // },- // },- // ]),+ ...packages.map((name) => [+ 'docusaurus-plugin-typedoc',+ {+ id: `api/${name}`,+ entryPoints: [`../../packages/${name}/src/index.ts`],+ tsconfig: `../../packages/${name}/tsconfig.json`,+ typeDeclarationFormat: 'table',+ expandObjects: true,+ exclude: ['node_modules/**/*', '**/*+(.spec|.e2e|.test).ts'],+ excludePrivate: true,+ excludeExternals: true,+ excludeInternal: true,+ cleanOutputDir: true,+ skipErrorChecking: true,+ out: `docs/api/${name}`,+ entryFileName: "index.md",+ sidebar: {+ pretty: false+ }+ },+ ]),],presets: [@@ -114,12 +103,14 @@ const config: Config = {position: 'left',label: '指南',},- // {- // type: 'docSidebar',- // sidebarId: 'apiSidebar',- // position: 'left',- // label: 'API',- // },+ {+ to: 'docs/api/core',+ activeBasePath: 'docs',+ // type: 'docSidebar',+ // sidebarId: 'apiSidebar',+ position: 'left',+ label: 'API',+ },{to: 'playground',position: 'left',diff --git a/apps/docs/package.json b/apps/docs/package.jsonindex 65c5d85eb8..52e8976bf3 100644--- a/apps/docs/package.json+++ b/apps/docs/package.json@@ -18,7 +18,7 @@"@docusaurus/preset-classic": "3.0.1","@mdx-js/react": "^3.0.0","@univerjs/core": "workspace:*",- "@univerjs/icons": "^0.1.14",+ "@univerjs/icons": "^0.1.18","clsx": "^2.0.0","prism-react-renderer": "^2.3.0","react": "^18.2.0",@@ -29,9 +29,9 @@"@docusaurus/plugin-content-docs": "^3.0.1","@docusaurus/tsconfig": "3.0.1","@docusaurus/types": "3.0.1",- "docusaurus-plugin-typedoc": "^0.21.0",+ "docusaurus-plugin-typedoc": "1.0.0-next.23","typedoc": "^0.25.4",- "typedoc-plugin-markdown": "^3.17.1",+ "typedoc-plugin-markdown": "4.0.0-next.36","typescript": "^5.3.2"},"browserslist": {diff --git a/apps/docs/sidebars.ts b/apps/docs/sidebars.tsindex ea2aa598ef..e91453dd65 100644--- a/apps/docs/sidebars.ts+++ b/apps/docs/sidebars.ts@@ -1,32 +1,27 @@import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';+import type { SidebarConfig } from '@docusaurus/plugin-content-docs/src/sidebars/types.js';+import rootTsConfig from '../../tsconfig.json';-/**- * Creating a sidebar enables you to:- - create an ordered group of docs- - render a sidebar for each doc of that group- - provide next/previous navigation+const typedocSidebar = rootTsConfig.references+ .filter((ref) => ref.path.startsWith('./packages/'))+ .map((ref) => {+ const name = ref.path.replace('./packages/', '')- The sidebars can be generated from the filesystem, or explicitly defined here.+ return {+ type: 'category',+ label: `@univerjs/${name}`,+ link: {+ type: 'doc',+ id: `api/${name}/index`+ },+ items: require(`./docs/api/${name}/typedoc-sidebar.cjs`)+ }+ }) as SidebarConfig- Create as many sidebars as you want.- */const sidebars: SidebarsConfig = {// By default, Docusaurus generates a sidebar from the docs folder structuretutorialSidebar: [{ type: 'autogenerated', dirName: 'tutorial' }],- apiSidebar: [{ type: 'autogenerated', dirName: 'api' }],-- // But you can create a sidebar manually- /*- tutorialSidebar: [- 'intro',- 'hello',- {- type: 'category',- label: 'Tutorial',- items: ['tutorial-basics/create-a-document'],- },- ],- */+ typedocSidebar,};export default sidebars;diff --git a/packages/sheets-find/README.md b/packages/sheets-find/README.mdnew file mode 100644index 0000000000..009f9bbc7b--- /dev/null+++ b/packages/sheets-find/README.md@@ -0,0 +1,16 @@+# @univerjs/sheets-find++[](https://npmjs.org/packages/@univerjs/sheets-find)+[](https://img.shields.io/npm/l/@univerjs/sheets-find)++## Introduction++> Find plugin for Univer Sheets.++## Usage++### Installation++```shell+npm i @univerjs/sheets-find+```diff --git a/packages/slides-ui/README.md b/packages/slides-ui/README.mdnew file mode 100644index 0000000000..b8aba1e4d6--- /dev/null+++ b/packages/slides-ui/README.md@@ -0,0 +1,16 @@+# @univerjs/slides-ui++[](https://npmjs.org/packages/@univerjs/slides-ui)+[](https://img.shields.io/npm/l/@univerjs/slides-ui)++## Introduction++> UI plugin for Univer Slides.++## Usage++### Installation++```shell+npm i @univerjs/slides-ui+```diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex e6d7355015..37f5af7df8 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -159,8 +159,8 @@ importers:specifier: workspace:*version: link:../../packages/core'@univerjs/icons':- specifier: ^0.1.14- version: 0.1.14([email protected])([email protected])+ specifier: ^0.1.18+ version: 0.1.18([email protected])([email protected])clsx:specifier: ^2.0.0version: 2.0.0@@ -187,14 +187,14 @@ importers:specifier: 3.0.1docusaurus-plugin-typedoc:- specifier: ^0.21.0- version: 0.21.0([email protected])([email protected])+ specifier: 1.0.0-next.23+ version: 1.0.0-next.23([email protected])typedoc:specifier: ^0.25.4version: 0.25.4([email protected])typedoc-plugin-markdown:- specifier: ^3.17.1- version: 3.17.1([email protected])+ specifier: 4.0.0-next.36+ version: 4.0.0-next.36([email protected])typescript:specifier: ^5.3.2version: 5.3.2@@ -7231,6 +7231,16 @@ packages:react-dom: 18.2.0([email protected])dev: false+ resolution: {integrity: sha512-5XLXzltYcLi4ilnoT1AQN+ef90Vux4XbePr+C54bpm/PN9QYtH7c0L51xEVrH9DE+R0bkqma3gyE0RIydCiK+A==}+ peerDependencies:+ react: '*'+ react-dom: '*'+ dependencies:+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: false+/@vitejs/[email protected]([email protected]):resolution: {integrity: sha512-AfgcRL8ZBhAlc3BFdigClmTUMISmmzHn7sB2h9U1odvc5U/MjWXsAaz18b/WoppUTDBzxOJwo2VdClfUcItu9g==}engines: {node: ^14.18.0 || >=16.0.0}@@ -9303,14 +9313,12 @@ packages:dependencies:esutils: 2.0.3- resolution: {integrity: sha512-7DLFrf0JP+L5vSRQHVKIbndjbksd2MlxPqNmmdxzLFiRINgrY23s9waduWM9t24PUsf5JZ0tlGKlE3sK4uZ72Q==}+ resolution: {integrity: sha512-n/0CWVmN5KgChx7tbA2wJkpD1sroE0kdul4nGeMTwFZ3CB9jaX7eV/682jxKFyiYaIJs6UmlgHbiYP2lAwu7yw==}peerDependencies:- typedoc: '>=0.24.0'- typedoc-plugin-markdown: '>=3.15.0'+ typedoc-plugin-markdown: '>=4.0.0-next.30'dependencies:- typedoc: 0.25.4([email protected])- typedoc-plugin-markdown: 3.17.1([email protected])+ typedoc-plugin-markdown: 4.0.0-next.36([email protected])dev: true@@ -17213,12 +17221,11 @@ packages:resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==}dev: true- resolution: {integrity: sha512-QzdU3fj0Kzw2XSdoL15ExLASt2WPqD7FbLeaqwT70+XjKyTshBnUlQA5nNREO1C2P8Uen0CDjsBLMsCQ+zd0lw==}+ resolution: {integrity: sha512-p2kA4hVlEcJvGffvL/Mn5V7o6qufMQNGnYCXIiXEtqKFZdJCsJ1nehNAEaeS0X0aenA7O+hu6f6U+pgbth7D/g==}peerDependencies:- typedoc: '>=0.24.0'+ typedoc: 0.25.xdependencies:- handlebars: 4.7.8typedoc: 0.25.4([email protected])dev: true