diff --git a/README.md b/README.md index 98f4f3482a6b..a2dfbde7a77d 100644 --- a/README.md +++ b/README.md @@ -34,11 +34,12 @@ Modern.js is a web engineering system, including multiple solutions: ## Ecosystem -The following solutions are available within the Modern.js ecosystem: +The following solutions and libraries are available within the Modern.js ecosystem: - 🦀 [Rspack](https://github.com/web-infra-dev/rspack): A fast Rust-based web bundler. - 🐟 [Garfish](https://github.com/web-infra-dev/garfish): A powerful micro front-end framework. - 🦆 [Reduck](https://github.com/web-infra-dev/reduck): A redux-based state management library. +- 🐴 [SWC Plugins](https://github.com/web-infra-dev/swc-plugins):Built-in SWC plugins for Modern.js. ## Benchmark diff --git a/README.zh-CN.md b/README.zh-CN.md index 5a105398cc45..4659648a0a05 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -20,10 +20,10 @@ Modern.js 是一个 Web 工程体系,包含以下解决方案: -- 🦄 [Modern.js Framework](https://modernjs.dev/): 基于 React 的渐进式 Web 开发框架。 -- 🐧 [Modern.js Module](https://modernjs.dev/module-tools): 简单、高性能的 npm 包开发方案。 -- 🐹 [Modern.js Doc](https://modernjs.dev/doc-tools/zh/): 现代文档站解决方案。 -- 🐈 [Modern.js Builder](https://modernjs.dev/builder/): 面向 Web 开发场景的构建引擎。 +- 🦄 [Modern.js Framework](https://modernjs.dev/):基于 React 的渐进式 Web 开发框架。 +- 🐧 [Modern.js Module](https://modernjs.dev/module-tools):简单、高性能的 npm 包开发方案。 +- 🐹 [Modern.js Doc](https://modernjs.dev/doc-tools/zh/):现代文档站解决方案。 +- 🐈 [Modern.js Builder](https://modernjs.dev/builder/):面向 Web 开发场景的构建引擎。 ## 快速上手 @@ -34,11 +34,12 @@ Modern.js 是一个 Web 工程体系,包含以下解决方案: ## 生态 -Modern.js 生态提供了以下解决方案: +Modern.js 生态提供了以下解决方案和底层库: -- 🦀 [Rspack](https://github.com/web-infra-dev/rspack): 基于 Rust 的高性能模块打包工具。 -- 🐟 [Garfish](https://github.com/web-infra-dev/garfish): 一站式微前端解决方案。 -- 🦆 [Reduck](https://github.com/web-infra-dev/reduck): 基于 Redux 的状态管理库。 +- 🦀 [Rspack](https://github.com/web-infra-dev/rspack):基于 Rust 的高性能模块打包工具。 +- 🐟 [Garfish](https://github.com/web-infra-dev/garfish):一站式微前端解决方案。 +- 🦆 [Reduck](https://github.com/web-infra-dev/reduck):基于 Redux 的状态管理库。 +- 🐴 [SWC Plugins](https://github.com/web-infra-dev/swc-plugins):Modern.js 的 SWC 插件。 ## Benchmark @@ -66,12 +67,12 @@ Modern.js 生态提供了以下解决方案: Modern.js 中的部分代码是参考社区中的其他项目实现的,比如 [create-react-app](https://github.com/facebook/create-react-app),[vitepress](https://github.com/vuejs/vitepress),[remix](https://github.com/vuejs/remix),[jest](https://github.com/facebook/jest) 和 [bundle-require](https://github.com/egoist/bundle-require) 等,感谢这些项目: -- `@modern-js/bundle-require`: 修改自 [bundle-require](https://github.com/egoist/bundle-require)。 -- `@modern-js/plugin`: hook API 的实现参考了 [farrow-pipeline](https://github.com/farrow-js/farrow/tree/master/packages/farrow-pipeline)。 -- `@modern-js/builder`: moduleScope 和 fileSize 插件参考了 [create-react-app](https://github.com/facebook/create-react-app),TsConfigPathsPlugin 参考了 [tsconfig-paths-webpack-plugin](https://github.com/dividab/tsconfig-paths-webpack-plugin),generateMetaTags 函数参考了 [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) -- `@modern-js/plugin-testing`: jest runner 参考了 [jest-cli](https://github.com/facebook/jest/blob/fdc74af37235354e077edeeee8aa2d1a4a863032/packages/jest-cli/src/cli/index.ts#L21)。 -- `@modern-js/doc-tools`: 部分样式参考了 [vitepress](https://github.com/vuejs/vitepress)。 -- `@modern-js/plugin-data-loader`: 部分实现参考了 [remix](https://github.com/remix-run/remix)。 +- `@modern-js/bundle-require`:修改自 [bundle-require](https://github.com/egoist/bundle-require)。 +- `@modern-js/plugin`:hook API 的实现参考了 [farrow-pipeline](https://github.com/farrow-js/farrow/tree/master/packages/farrow-pipeline)。 +- `@modern-js/builder`:moduleScope 和 fileSize 插件参考了 [create-react-app](https://github.com/facebook/create-react-app),TsConfigPathsPlugin 参考了 [tsconfig-paths-webpack-plugin](https://github.com/dividab/tsconfig-paths-webpack-plugin),generateMetaTags 函数参考了 [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) +- `@modern-js/plugin-testing`:jest runner 参考了 [jest-cli](https://github.com/facebook/jest/blob/fdc74af37235354e077edeeee8aa2d1a4a863032/packages/jest-cli/src/cli/index.ts#L21)。 +- `@modern-js/doc-tools`:部分样式参考了 [vitepress](https://github.com/vuejs/vitepress)。 +- `@modern-js/plugin-data-loader`:部分实现参考了 [remix](https://github.com/remix-run/remix)。 ## License diff --git a/packages/cli/doc-core/modern.config.ts b/packages/cli/doc-core/modern.config.ts index 7c873a2c7fed..1fd178b2035a 100644 --- a/packages/cli/doc-core/modern.config.ts +++ b/packages/cli/doc-core/modern.config.ts @@ -32,7 +32,7 @@ export default { externals: ['@modern-js/mdx-rs-binding'], esbuildOptions: options => { options.banner = { - js: 'import { createRequire } from "module"; const require = createRequire(import.meta.url);', + js: 'import { createRequire } from "module";\nconst { url } = import.meta;\nconst require = createRequire(url);', }; return options; }, diff --git a/packages/cli/doc-core/tsconfig.json b/packages/cli/doc-core/tsconfig.json index e663b8a5f2df..37affafc0d17 100644 --- a/packages/cli/doc-core/tsconfig.json +++ b/packages/cli/doc-core/tsconfig.json @@ -23,5 +23,5 @@ "./modern.config.ts", "./tailwind.config.ts" ], - "exclude": ["runtime.ts", "theme.ts"] + "exclude": ["runtime.ts", "theme.ts", "node_modules"] } diff --git a/packages/document/main-doc/docs/zh/community/blog/overview.md b/packages/document/main-doc/docs/zh/community/blog/overview.md index 632bc9c6b138..d3d23a402423 100644 --- a/packages/document/main-doc/docs/zh/community/blog/overview.md +++ b/packages/document/main-doc/docs/zh/community/blog/overview.md @@ -10,6 +10,16 @@ sidebar_position: 1 --- +## AIGC 如何影响下一代文档搜索方案? + +> 发表于 2023.05.11 + +对于一个文档站点来说,搜索是一个很重要的功能,它可以帮助用户在繁杂的文档中快速找到自己想要的内容。而随着 AIGC(人工智能生成内容)技术的发展,文档搜索领域也正在悄然发生变化。借助 AI 强大的自然语言处理能力和上下文理解能力,我们可以把文档搜索做得更加智能化。本文将会介绍 AIGC 在文档中应用的技术原理,并分析一些业界已有的 AI 搜索产品。 + +[了解更多 →](https://mp.weixin.qq.com/s/OGuixAbvbIYr2viQrOrPXg) + +--- + ## Modern.js v2 发布:支持 Rspack 构建 > 发表于 2023.03.16