完善 docs

This commit is contained in:
SmallMain 2022-05-20 16:41:38 +08:00
parent 9583e1b94a
commit 113677baf9
10 changed files with 607 additions and 128 deletions

View File

@ -1,14 +1,27 @@
# Cocos Creator Service Pack # Cocos Creator Service Pack
Cocos Creator Service Pack 是一个开源的 Cocos Creator 引擎**非官方服务包**,提供开箱即用的符合引擎设计的增强特性、问题修复与优化。 这是一个对 Cocos Creator 引擎进行特性新增、修复与优化的**开源非官方服务包**。
我们的发展方向是尽量以最符合引擎架构设计的方式加入新的特性、修复引擎已知问题以及性能优化。
> 项目的起源
>
> 2021 年 2 月Cocos 发布 Cocos Creator 3.0,并在 3.x 发布之后不会再继续开发 2.x 版本的新特性。
>
> 问题修复等所有维护工作也会在 2023 年完全停止。而 2.x 以及 3.x 在一些方面都并不完善,所以我们发布了这个非官方的引擎“魔改”集合。
>
> 相似的事情发生在 2014 年 4 月,官方停止了对 Windows XP 的维护,之后 Harkaz 发布了一个非官方服务包 Service Pack 4 (SP4)。
>
> 所以我们将这个“魔改”集合取名为 Service Pack。
>
> 我们暂时只专注于 Cocos Creator 2.x 版本的适配,虽然当前服务包新增的一些特性在 Cocos Creator 3.5 版本中甚至依然还大部分缺失,但因为它还在蒸蒸日上中(还有希望),并且其引擎架构还在不断地迭代(不稳定),对其进行修改的维护工作会很大。
<!-- @import "[TOC]" {cmd="toc" depthFrom=2 depthTo=6 orderedList=false} --> <!-- @import "[TOC]" {cmd="toc" depthFrom=2 depthTo=6 orderedList=false} -->
<!-- code_chunk_output --> <!-- code_chunk_output -->
- [Cocos Creator Service Pack](#cocos-creator-service-pack) - [重要改进](#重要改进)
- [简介](#简介)
- [改动内容](#改动内容)
- [如何使用](#如何使用) - [如何使用](#如何使用)
- [实现原理](#实现原理) - [实现原理](#实现原理)
- [更新日志](#更新日志) - [更新日志](#更新日志)
@ -16,21 +29,9 @@ Cocos Creator Service Pack 是一个开源的 Cocos Creator 引擎**非官方服
<!-- /code_chunk_output --> <!-- /code_chunk_output -->
## 简介 ## 重要改进
Windows XP 于 2014 年 4 月停止官方维护,之后 Harkaz 发布了一个非官方服务包 Service Pack 4SP4。[Link](https://www.softpedia.com/get/Others/Signatures-Updates/Windows-XP-SP4-Unofficial.shtml) - 待补充。
如此地相似Cocos 于 2021 年 2 月预告将于 2023 年停止 2.x 版本的维护更新,遂也取名为 Service PackSP。[Link](https://forum.cocos.org/t/topic/106026)
我们主要收集在论坛中呼声最高的特性并尝试将其以适合引擎的方式实现,以及修复已知问题和优化。
虽然服务包新增的一些特性在 Cocos Creator 3.5 版本中甚至依然还大部分缺失,但因为它的开发并未停滞(还有希望),并且 3.x 的引擎架构还不断在迭代(不稳定),我们暂时只维护 2.x 版本的服务包。
## 改动内容
以下是服务包对引擎的改动:
- 阿斯顿
## 如何使用 ## 如何使用
@ -38,7 +39,7 @@ Windows XP 于 2014 年 4 月停止官方维护,之后 Harkaz 发布了一个
## 实现原理 ## 实现原理
每个修复与新增特性的原理都会进行公示,我们没做过完善的测试,但是尽量保持改动的透明。 每个改动的原理都会进行公示,我们没做过官方那样完善的测试,但是尽量保持改动的透明。
## 更新日志 ## 更新日志
@ -48,8 +49,8 @@ Windows XP 于 2014 年 4 月停止官方维护,之后 Harkaz 发布了一个
非常欢迎您能和我们一起来完善,所有的一切都通过 Github 进行: 非常欢迎您能和我们一起来完善,所有的一切都通过 Github 进行:
- 如果您有问题或者好的想法,欢迎创建 `Issues` 。 - 如果您有问题或者好的想法,请使用 `Issues``Discussions` 。
- 如果您有新的代码提交,欢迎创建 `Pull requests` - 如果您有新的代码提交,请使用 `Pull requests`
原则上我们接受任何新增与修改,但是**任何修改都必须兼容引擎原有的特性**,并且**不允许删除引擎原有的特性**。 原则上我们接受任何新增与修改,但是**任何修改都必须兼容引擎原有的特性**,并且**不允许删除引擎原有的特性**。

View File

@ -2,46 +2,47 @@
sidebar_position: 1 sidebar_position: 1
--- ---
# Tutorial Intro # 介绍
Let's discover **Docusaurus in less than 5 minutes**. 这是一个对 Cocos Creator 引擎进行特性新增、修复与优化的**开源非官方服务包**。
## Getting Started 我们的发展方向是尽量以最符合引擎架构设计的方式加入新的特性、修复引擎已知问题以及性能优化。
Get started by **creating a new site**. :::info 项目的起源
2021 年 2 月Cocos 发布 Cocos Creator 3.0,并在 3.x 发布之后不会再继续开发 2.x 版本的新特性。
Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**. 问题修复等所有维护工作也会在 2023 年完全停止。而 2.x 以及 3.x 在一些方面都并不完善,所以我们发布了这个非官方的引擎“魔改”集合。
### What you'll need 相似的事情发生在 2014 年 4 月,官方停止了对 Windows XP 的维护,之后 Harkaz 发布了一个非官方服务包 Service Pack 4 (SP4)。
- [Node.js](https://nodejs.org/en/download/) version 14 or above: 所以我们将这个“魔改”集合取名为 Service Pack。
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
## Generate a new site 我们暂时只专注于 Cocos Creator 2.x 版本的适配,虽然当前服务包新增的一些特性在 Cocos Creator 3.5 版本中甚至依然还大部分缺失,但因为它还在蒸蒸日上中(还有希望),并且其引擎架构还在不断地迭代(不稳定),对其进行修改的维护工作会很大。
:::
Generate a new Docusaurus site using the **classic template**. ## 重要改进
The classic template will automatically be added to your project after you run the command: - 待补充。
```bash ## 如何使用
npm init docusaurus@latest my-website classic
```
You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor. 待补充。
The command also installs all necessary dependencies you need to run Docusaurus. ## 实现原理
## Start your site 每个改动的原理都会进行公示,我们没做过官方那样完善的测试,但是尽量保持改动的透明。
Run the development server: ## 更新日志
```bash 待补充。
cd my-website
npm run start
```
The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there. ## 贡献指南
The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/. 非常欢迎您能和我们一起来完善,所有的一切都通过 Github 进行:
Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes. - 如果您有问题或者好的想法,请使用 `Issues``Discussions`
- 如果您有新的代码提交,请使用 `Pull requests`
原则上我们接受任何新增与修改,但是**任何修改都必须兼容引擎原有的特性**,并且**不允许删除引擎原有的特性**。
在开发新特性时,请站在引擎的角度思考该如何设计。

View File

@ -6,10 +6,10 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */ /** @type {import('@docusaurus/types').Config} */
const config = { const config = {
title: 'My Site', title: 'Cocos Service Pack',
tagline: 'Dinosaurs are cool', tagline: '对 Cocos Creator 引擎进行特性新增、修复与优化的开源非官方服务包',
url: 'https://smallmain.github.io/cocos-service-pack/', url: 'https://smallmain.github.io/cocos-service-pack/',
baseUrl: '/', baseUrl: '/cocos-service-pack/',
onBrokenLinks: 'throw', onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn', onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico', favicon: 'img/favicon.ico',
@ -24,8 +24,8 @@ const config = {
// metadata like html lang. For example, if your site is Chinese, you may want // metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans". // to replace "en" with "zh-Hans".
i18n: { i18n: {
defaultLocale: 'en', defaultLocale: 'zh',
locales: ['en'], locales: ['zh'],
}, },
presets: [ presets: [
@ -35,17 +35,9 @@ const config = {
({ ({
docs: { docs: {
sidebarPath: require.resolve('./sidebars.js'), sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
}, },
blog: { blog: {
showReadingTime: true, showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
}, },
theme: { theme: {
customCss: require.resolve('./src/css/custom.css'), customCss: require.resolve('./src/css/custom.css'),
@ -58,76 +50,105 @@ const config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */ /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({ ({
navbar: { navbar: {
title: 'My Site', title: 'Cocos Service Pack',
// style: 'primary',
logo: { logo: {
alt: 'My Site Logo', alt: 'Cocos Service Pack',
src: 'img/logo.svg', src: 'img/logo.png',
}, },
items: [ items: [
{
to: '/',
label: '首页',
activeBaseRegex: '/$',
position: 'right',
},
{ {
type: 'doc', type: 'doc',
docId: 'intro', docId: 'intro',
position: 'left', position: 'right',
label: 'Tutorial', label: '文档',
}, },
{ to: '/blog', label: 'Blog', position: 'left' },
{ {
href: 'https://github.com/facebook/docusaurus', type: 'docsVersionDropdown',
position: 'right',
dropdownItemsAfter: [{ to: '/versions', label: 'All versions' }],
dropdownActiveClassDisabled: true,
},
// { to: '/blog', label: 'Blog', position: 'left' },
{
href: 'https://github.com/smallmain/cocos-service-pack',
label: 'GitHub', label: 'GitHub',
position: 'right', position: 'right',
}, },
{
type: 'search',
position: 'right',
},
], ],
}, },
footer: { footer: {
style: 'dark', style: 'dark',
links: [ links: [
{ // {
title: 'Docs', // title: 'Docs',
items: [ // items: [
{ // {
label: 'Tutorial', // label: 'Tutorial',
to: '/docs/intro', // to: '/docs/intro',
}, // },
// ],
// },
// {
// title: 'Community',
// items: [
// {
// label: 'Stack Overflow',
// href: 'https://stackoverflow.com/questions/tagged/docusaurus',
// },
// {
// label: 'Discord',
// href: 'https://discordapp.com/invite/docusaurus',
// },
// {
// label: 'Twitter',
// href: 'https://twitter.com/docusaurus',
// },
// ],
// },
// {
// title: 'More',
// items: [
// // {
// // label: 'Blog',
// // to: '/blog',
// // },
// {
// label: 'GitHub',
// href: 'https://github.com/facebook/docusaurus',
// },
// ],
// },
], ],
}, copyright: `Copyright © ${new Date().getFullYear()} Cocos Service Pack.`,
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
}, },
prism: { prism: {
theme: lightCodeTheme, theme: lightCodeTheme,
darkTheme: darkCodeTheme, darkTheme: darkCodeTheme,
}, },
}), }),
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
indexPages: true,
language: ['en', 'zh'],
removeDefaultStemmer: true,
searchResultLimits: 10,
},
],
],
}; };
module.exports = config; module.exports = config;

444
docs/package-lock.json generated
View File

@ -10,6 +10,7 @@
"dependencies": { "dependencies": {
"@docusaurus/core": "2.0.0-beta.20", "@docusaurus/core": "2.0.0-beta.20",
"@docusaurus/preset-classic": "2.0.0-beta.20", "@docusaurus/preset-classic": "2.0.0-beta.20",
"@easyops-cn/docusaurus-search-local": "^0.25.0",
"@mdx-js/react": "^1.6.22", "@mdx-js/react": "^1.6.22",
"clsx": "^1.1.1", "clsx": "^1.1.1",
"prism-react-renderer": "^1.3.1", "prism-react-renderer": "^1.3.1",
@ -2478,6 +2479,41 @@
"node": ">=14" "node": ">=14"
} }
}, },
"node_modules/@easyops-cn/autocomplete.js": {
"version": "0.38.1",
"resolved": "https://registry.npmjs.org/@easyops-cn/autocomplete.js/-/autocomplete.js-0.38.1.tgz",
"integrity": "sha512-drg76jS6syilOUmVNkyo1c7ZEBPcPuK+aJA7AksM5ZIIbV57DMHCywiCr+uHyv8BE5jUTU98j/H7gVrkHrWW3Q==",
"dependencies": {
"cssesc": "^3.0.0",
"immediate": "^3.2.3"
}
},
"node_modules/@easyops-cn/docusaurus-search-local": {
"version": "0.25.0",
"resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.25.0.tgz",
"integrity": "sha512-UO63j2HJeHyPViZKFFhRjbIFUFfW16jiBOjUl7kbOswMDj0nLIcoKfgzcKZ+/KhUDNmwnUruSf/lW+eX31mLtg==",
"dependencies": {
"@docusaurus/theme-common": "^2.0.0-beta.20",
"@docusaurus/theme-translations": "^2.0.0-beta.20",
"@docusaurus/utils": "^2.0.0-beta.20",
"@docusaurus/utils-common": "^2.0.0-beta.20",
"@docusaurus/utils-validation": "^2.0.0-beta.20",
"@easyops-cn/autocomplete.js": "^0.38.1",
"@node-rs/jieba": "^1.6.0",
"cheerio": "^1.0.0-rc.3",
"clsx": "^1.1.1",
"debug": "^4.2.0",
"fs-extra": "^10.0.0",
"klaw-sync": "^6.0.0",
"lunr": "^2.3.9",
"lunr-languages": "^1.4.0",
"mark.js": "^8.11.1",
"tslib": "^2.4.0"
},
"engines": {
"node": ">=12"
}
},
"node_modules/@hapi/hoek": { "node_modules/@hapi/hoek": {
"version": "9.3.0", "version": "9.3.0",
"resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz",
@ -2646,6 +2682,228 @@
"url": "https://opencollective.com/unified" "url": "https://opencollective.com/unified"
} }
}, },
"node_modules/@node-rs/jieba": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba/-/jieba-1.6.1.tgz",
"integrity": "sha512-pISKu8NIYKRvZp7mhYZYA8VCjJMqTsCe+mQcFFnAi3GNJsijGjef2peMFeDcvP72X8MsnNeYeg3rHkAybtefyQ==",
"engines": {
"node": ">= 10"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/Brooooooklyn"
},
"optionalDependencies": {
"@node-rs/jieba-android-arm-eabi": "1.6.1",
"@node-rs/jieba-android-arm64": "1.6.1",
"@node-rs/jieba-darwin-arm64": "1.6.1",
"@node-rs/jieba-darwin-x64": "1.6.1",
"@node-rs/jieba-freebsd-x64": "1.6.1",
"@node-rs/jieba-linux-arm-gnueabihf": "1.6.1",
"@node-rs/jieba-linux-arm64-gnu": "1.6.1",
"@node-rs/jieba-linux-arm64-musl": "1.6.1",
"@node-rs/jieba-linux-x64-gnu": "1.6.1",
"@node-rs/jieba-linux-x64-musl": "1.6.1",
"@node-rs/jieba-win32-arm64-msvc": "1.6.1",
"@node-rs/jieba-win32-ia32-msvc": "1.6.1",
"@node-rs/jieba-win32-x64-msvc": "1.6.1"
}
},
"node_modules/@node-rs/jieba-android-arm-eabi": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-android-arm-eabi/-/jieba-android-arm-eabi-1.6.1.tgz",
"integrity": "sha512-R1YQfsPr7sK3Tq1sM0//6lNAGJK9RnMT0ShITT+7EJYr5OufUBb38lf/mRhrLxR0NF1pycEsMjdCAwrWrHd8rA==",
"cpu": [
"arm"
],
"optional": true,
"os": [
"android"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@node-rs/jieba-android-arm64": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-android-arm64/-/jieba-android-arm64-1.6.1.tgz",
"integrity": "sha512-hBRbj2uLmRFYDw2lWppTAPoyjeXkBKUT84h4fHUQj7CMU94Gc1IWkE4ocCqhvUhbaUXlCpocS9mB0/fc2641bw==",
"cpu": [
"arm64"
],
"optional": true,
"os": [
"android"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@node-rs/jieba-darwin-arm64": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-darwin-arm64/-/jieba-darwin-arm64-1.6.1.tgz",
"integrity": "sha512-GeoDe7XVTF6z8JUtD98QvwudsMaHV5EBXs5uO43SobeIkShH3Nujq5gLMD5kWoJXTxDrTgJe4wT42EwUaBEH2Q==",
"cpu": [
"arm64"
],
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@node-rs/jieba-darwin-x64": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-darwin-x64/-/jieba-darwin-x64-1.6.1.tgz",
"integrity": "sha512-ENHYIS8b8JdMaUXEm0f8Y3+sHXu2UdukG1D/XGUNx+q5cn07HbwIg6L0tlGhE8dw4AhqoWHsExVaZ241Igh4iA==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@node-rs/jieba-freebsd-x64": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-freebsd-x64/-/jieba-freebsd-x64-1.6.1.tgz",
"integrity": "sha512-chwB/9edtxqS8Jm3j4RMaJjH9AlXmijUgKv02oMw36e77HKpko+tENUN25Vrn/9GKsKGqIPeXpmCjeXCN1HVQA==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"freebsd"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@node-rs/jieba-linux-arm-gnueabihf": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm-gnueabihf/-/jieba-linux-arm-gnueabihf-1.6.1.tgz",
"integrity": "sha512-tsb5fMGj4p8bHGfkf7bJ+HE2jxaixLTp3YnGg5D+kp8+HQRq8cp3ScG5cn8cq0phnJS/zfAp8rVfWInDagzKKQ==",
"cpu": [
"arm"
],
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@node-rs/jieba-linux-arm64-gnu": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm64-gnu/-/jieba-linux-arm64-gnu-1.6.1.tgz",
"integrity": "sha512-bSInORkJFfeZNR+i4rFoSZGbwkQtQlnZ0XfT/noTK9JUBDYErqQZPFjoaYAU45NWTk7p6Zkg30SuV1NTdWLaPw==",
"cpu": [
"arm64"
],
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@node-rs/jieba-linux-arm64-musl": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm64-musl/-/jieba-linux-arm64-musl-1.6.1.tgz",
"integrity": "sha512-qphL6xM7owfU8Hsh7GX73SDr/iApbnc+35mSLxbibAfCQnY89+WcBeWUUOSGM/Ov3VFaq4pyVlDFj0YjR01W2w==",
"cpu": [
"arm64"
],
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@node-rs/jieba-linux-x64-gnu": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-x64-gnu/-/jieba-linux-x64-gnu-1.6.1.tgz",
"integrity": "sha512-f6hhlrbi2wel0xZG7m3Wvksimt9MSu1f3aYO2Kwavf4qjMRZqJzLz9HlCJAal6AXB9Qgg+685P+gftsWve47qw==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@node-rs/jieba-linux-x64-musl": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-x64-musl/-/jieba-linux-x64-musl-1.6.1.tgz",
"integrity": "sha512-cTVcdR6zWqpnmdEUyWEII9zfE5lTeWN53TbiOPx8TCA+291/31Vqd7GA8YEPndUO8qgCx5uShSDFStBAEIhYNQ==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@node-rs/jieba-win32-arm64-msvc": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-arm64-msvc/-/jieba-win32-arm64-msvc-1.6.1.tgz",
"integrity": "sha512-YuOTrjHazDraXcGXRHgPQ53nyJuH8QtTCngYKjAzxsdt8uN+txb1AY69OLMLBBZqLTOwY9dgcW70vGiLQMCTeg==",
"cpu": [
"arm64"
],
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@node-rs/jieba-win32-ia32-msvc": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-ia32-msvc/-/jieba-win32-ia32-msvc-1.6.1.tgz",
"integrity": "sha512-4+E843ImGpVlZ+LlT9E/13NHmmUg3UHQx419D6fFMorJUUQuK4cZJfE1z4tCgcrbV8S5Wew5LIFywlJeJLu0LQ==",
"cpu": [
"ia32"
],
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@node-rs/jieba-win32-x64-msvc": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-x64-msvc/-/jieba-win32-x64-msvc-1.6.1.tgz",
"integrity": "sha512-veXNwm2VlseOzl7vaC7A/nZ4okp5/6edN7/Atj6mXnUbze/m/my5Rv5zUcW3U1D9VElnQ3srCHCa5vXljJuk6g==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@nodelib/fs.scandir": { "node_modules/@nodelib/fs.scandir": {
"version": "2.1.5", "version": "2.1.5",
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
@ -7010,6 +7268,11 @@
"node": ">=12.0.0" "node": ">=12.0.0"
} }
}, },
"node_modules/immediate": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/immediate/-/immediate-3.3.0.tgz",
"integrity": "sha512-HR7EVodfFUdQCTIeySw+WDRFJlPcLOJbXfwwZ7Oom6tjsvZ3bOkCDJHehQC3nxJrv7+f9XecwazynjU8e4Vw3Q=="
},
"node_modules/immer": { "node_modules/immer": {
"version": "9.0.14", "version": "9.0.14",
"resolved": "https://registry.npmjs.org/immer/-/immer-9.0.14.tgz", "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.14.tgz",
@ -7551,6 +7814,14 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/klaw-sync": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz",
"integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==",
"dependencies": {
"graceful-fs": "^4.1.11"
}
},
"node_modules/kleur": { "node_modules/kleur": {
"version": "3.0.3", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
@ -7764,6 +8035,16 @@
"node": ">=10" "node": ">=10"
} }
}, },
"node_modules/lunr": {
"version": "2.3.9",
"resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz",
"integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow=="
},
"node_modules/lunr-languages": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/lunr-languages/-/lunr-languages-1.9.0.tgz",
"integrity": "sha512-Be5vFuc8NAheOIjviCRms3ZqFFBlzns3u9DXpPSZvALetgnydAN0poV71pVLFn0keYy/s4VblMMkqewTLe+KPg=="
},
"node_modules/make-dir": { "node_modules/make-dir": {
"version": "3.1.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
@ -7786,6 +8067,11 @@
"semver": "bin/semver.js" "semver": "bin/semver.js"
} }
}, },
"node_modules/mark.js": {
"version": "8.11.1",
"resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz",
"integrity": "sha1-GA8fnr74sOY45BZq1S24eb6y/8U="
},
"node_modules/markdown-escapes": { "node_modules/markdown-escapes": {
"version": "1.0.4", "version": "1.0.4",
"resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.4.tgz", "resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.4.tgz",
@ -14522,6 +14808,38 @@
"tslib": "^2.4.0" "tslib": "^2.4.0"
} }
}, },
"@easyops-cn/autocomplete.js": {
"version": "0.38.1",
"resolved": "https://registry.npmjs.org/@easyops-cn/autocomplete.js/-/autocomplete.js-0.38.1.tgz",
"integrity": "sha512-drg76jS6syilOUmVNkyo1c7ZEBPcPuK+aJA7AksM5ZIIbV57DMHCywiCr+uHyv8BE5jUTU98j/H7gVrkHrWW3Q==",
"requires": {
"cssesc": "^3.0.0",
"immediate": "^3.2.3"
}
},
"@easyops-cn/docusaurus-search-local": {
"version": "0.25.0",
"resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.25.0.tgz",
"integrity": "sha512-UO63j2HJeHyPViZKFFhRjbIFUFfW16jiBOjUl7kbOswMDj0nLIcoKfgzcKZ+/KhUDNmwnUruSf/lW+eX31mLtg==",
"requires": {
"@docusaurus/theme-common": "^2.0.0-beta.20",
"@docusaurus/theme-translations": "^2.0.0-beta.20",
"@docusaurus/utils": "^2.0.0-beta.20",
"@docusaurus/utils-common": "^2.0.0-beta.20",
"@docusaurus/utils-validation": "^2.0.0-beta.20",
"@easyops-cn/autocomplete.js": "^0.38.1",
"@node-rs/jieba": "^1.6.0",
"cheerio": "^1.0.0-rc.3",
"clsx": "^1.1.1",
"debug": "^4.2.0",
"fs-extra": "^10.0.0",
"klaw-sync": "^6.0.0",
"lunr": "^2.3.9",
"lunr-languages": "^1.4.0",
"mark.js": "^8.11.1",
"tslib": "^2.4.0"
}
},
"@hapi/hoek": { "@hapi/hoek": {
"version": "9.3.0", "version": "9.3.0",
"resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz",
@ -14653,6 +14971,104 @@
"resolved": "https://registry.npmjs.org/@mdx-js/util/-/util-1.6.22.tgz", "resolved": "https://registry.npmjs.org/@mdx-js/util/-/util-1.6.22.tgz",
"integrity": "sha512-H1rQc1ZOHANWBvPcW+JpGwr+juXSxM8Q8YCkm3GhZd8REu1fHR3z99CErO1p9pkcfcxZnMdIZdIsXkOHY0NilA==" "integrity": "sha512-H1rQc1ZOHANWBvPcW+JpGwr+juXSxM8Q8YCkm3GhZd8REu1fHR3z99CErO1p9pkcfcxZnMdIZdIsXkOHY0NilA=="
}, },
"@node-rs/jieba": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba/-/jieba-1.6.1.tgz",
"integrity": "sha512-pISKu8NIYKRvZp7mhYZYA8VCjJMqTsCe+mQcFFnAi3GNJsijGjef2peMFeDcvP72X8MsnNeYeg3rHkAybtefyQ==",
"requires": {
"@node-rs/jieba-android-arm-eabi": "1.6.1",
"@node-rs/jieba-android-arm64": "1.6.1",
"@node-rs/jieba-darwin-arm64": "1.6.1",
"@node-rs/jieba-darwin-x64": "1.6.1",
"@node-rs/jieba-freebsd-x64": "1.6.1",
"@node-rs/jieba-linux-arm-gnueabihf": "1.6.1",
"@node-rs/jieba-linux-arm64-gnu": "1.6.1",
"@node-rs/jieba-linux-arm64-musl": "1.6.1",
"@node-rs/jieba-linux-x64-gnu": "1.6.1",
"@node-rs/jieba-linux-x64-musl": "1.6.1",
"@node-rs/jieba-win32-arm64-msvc": "1.6.1",
"@node-rs/jieba-win32-ia32-msvc": "1.6.1",
"@node-rs/jieba-win32-x64-msvc": "1.6.1"
}
},
"@node-rs/jieba-android-arm-eabi": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-android-arm-eabi/-/jieba-android-arm-eabi-1.6.1.tgz",
"integrity": "sha512-R1YQfsPr7sK3Tq1sM0//6lNAGJK9RnMT0ShITT+7EJYr5OufUBb38lf/mRhrLxR0NF1pycEsMjdCAwrWrHd8rA==",
"optional": true
},
"@node-rs/jieba-android-arm64": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-android-arm64/-/jieba-android-arm64-1.6.1.tgz",
"integrity": "sha512-hBRbj2uLmRFYDw2lWppTAPoyjeXkBKUT84h4fHUQj7CMU94Gc1IWkE4ocCqhvUhbaUXlCpocS9mB0/fc2641bw==",
"optional": true
},
"@node-rs/jieba-darwin-arm64": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-darwin-arm64/-/jieba-darwin-arm64-1.6.1.tgz",
"integrity": "sha512-GeoDe7XVTF6z8JUtD98QvwudsMaHV5EBXs5uO43SobeIkShH3Nujq5gLMD5kWoJXTxDrTgJe4wT42EwUaBEH2Q==",
"optional": true
},
"@node-rs/jieba-darwin-x64": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-darwin-x64/-/jieba-darwin-x64-1.6.1.tgz",
"integrity": "sha512-ENHYIS8b8JdMaUXEm0f8Y3+sHXu2UdukG1D/XGUNx+q5cn07HbwIg6L0tlGhE8dw4AhqoWHsExVaZ241Igh4iA==",
"optional": true
},
"@node-rs/jieba-freebsd-x64": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-freebsd-x64/-/jieba-freebsd-x64-1.6.1.tgz",
"integrity": "sha512-chwB/9edtxqS8Jm3j4RMaJjH9AlXmijUgKv02oMw36e77HKpko+tENUN25Vrn/9GKsKGqIPeXpmCjeXCN1HVQA==",
"optional": true
},
"@node-rs/jieba-linux-arm-gnueabihf": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm-gnueabihf/-/jieba-linux-arm-gnueabihf-1.6.1.tgz",
"integrity": "sha512-tsb5fMGj4p8bHGfkf7bJ+HE2jxaixLTp3YnGg5D+kp8+HQRq8cp3ScG5cn8cq0phnJS/zfAp8rVfWInDagzKKQ==",
"optional": true
},
"@node-rs/jieba-linux-arm64-gnu": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm64-gnu/-/jieba-linux-arm64-gnu-1.6.1.tgz",
"integrity": "sha512-bSInORkJFfeZNR+i4rFoSZGbwkQtQlnZ0XfT/noTK9JUBDYErqQZPFjoaYAU45NWTk7p6Zkg30SuV1NTdWLaPw==",
"optional": true
},
"@node-rs/jieba-linux-arm64-musl": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-arm64-musl/-/jieba-linux-arm64-musl-1.6.1.tgz",
"integrity": "sha512-qphL6xM7owfU8Hsh7GX73SDr/iApbnc+35mSLxbibAfCQnY89+WcBeWUUOSGM/Ov3VFaq4pyVlDFj0YjR01W2w==",
"optional": true
},
"@node-rs/jieba-linux-x64-gnu": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-x64-gnu/-/jieba-linux-x64-gnu-1.6.1.tgz",
"integrity": "sha512-f6hhlrbi2wel0xZG7m3Wvksimt9MSu1f3aYO2Kwavf4qjMRZqJzLz9HlCJAal6AXB9Qgg+685P+gftsWve47qw==",
"optional": true
},
"@node-rs/jieba-linux-x64-musl": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-linux-x64-musl/-/jieba-linux-x64-musl-1.6.1.tgz",
"integrity": "sha512-cTVcdR6zWqpnmdEUyWEII9zfE5lTeWN53TbiOPx8TCA+291/31Vqd7GA8YEPndUO8qgCx5uShSDFStBAEIhYNQ==",
"optional": true
},
"@node-rs/jieba-win32-arm64-msvc": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-arm64-msvc/-/jieba-win32-arm64-msvc-1.6.1.tgz",
"integrity": "sha512-YuOTrjHazDraXcGXRHgPQ53nyJuH8QtTCngYKjAzxsdt8uN+txb1AY69OLMLBBZqLTOwY9dgcW70vGiLQMCTeg==",
"optional": true
},
"@node-rs/jieba-win32-ia32-msvc": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-ia32-msvc/-/jieba-win32-ia32-msvc-1.6.1.tgz",
"integrity": "sha512-4+E843ImGpVlZ+LlT9E/13NHmmUg3UHQx419D6fFMorJUUQuK4cZJfE1z4tCgcrbV8S5Wew5LIFywlJeJLu0LQ==",
"optional": true
},
"@node-rs/jieba-win32-x64-msvc": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@node-rs/jieba-win32-x64-msvc/-/jieba-win32-x64-msvc-1.6.1.tgz",
"integrity": "sha512-veXNwm2VlseOzl7vaC7A/nZ4okp5/6edN7/Atj6mXnUbze/m/my5Rv5zUcW3U1D9VElnQ3srCHCa5vXljJuk6g==",
"optional": true
},
"@nodelib/fs.scandir": { "@nodelib/fs.scandir": {
"version": "2.1.5", "version": "2.1.5",
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
@ -17904,6 +18320,11 @@
"queue": "6.0.2" "queue": "6.0.2"
} }
}, },
"immediate": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/immediate/-/immediate-3.3.0.tgz",
"integrity": "sha512-HR7EVodfFUdQCTIeySw+WDRFJlPcLOJbXfwwZ7Oom6tjsvZ3bOkCDJHehQC3nxJrv7+f9XecwazynjU8e4Vw3Q=="
},
"immer": { "immer": {
"version": "9.0.14", "version": "9.0.14",
"resolved": "https://registry.npmjs.org/immer/-/immer-9.0.14.tgz", "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.14.tgz",
@ -18268,6 +18689,14 @@
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
"integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==" "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw=="
}, },
"klaw-sync": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz",
"integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==",
"requires": {
"graceful-fs": "^4.1.11"
}
},
"kleur": { "kleur": {
"version": "3.0.3", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
@ -18448,6 +18877,16 @@
"yallist": "^4.0.0" "yallist": "^4.0.0"
} }
}, },
"lunr": {
"version": "2.3.9",
"resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz",
"integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow=="
},
"lunr-languages": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/lunr-languages/-/lunr-languages-1.9.0.tgz",
"integrity": "sha512-Be5vFuc8NAheOIjviCRms3ZqFFBlzns3u9DXpPSZvALetgnydAN0poV71pVLFn0keYy/s4VblMMkqewTLe+KPg=="
},
"make-dir": { "make-dir": {
"version": "3.1.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
@ -18463,6 +18902,11 @@
} }
} }
}, },
"mark.js": {
"version": "8.11.1",
"resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz",
"integrity": "sha1-GA8fnr74sOY45BZq1S24eb6y/8U="
},
"markdown-escapes": { "markdown-escapes": {
"version": "1.0.4", "version": "1.0.4",
"resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.4.tgz", "resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.4.tgz",

View File

@ -17,6 +17,7 @@
"dependencies": { "dependencies": {
"@docusaurus/core": "2.0.0-beta.20", "@docusaurus/core": "2.0.0-beta.20",
"@docusaurus/preset-classic": "2.0.0-beta.20", "@docusaurus/preset-classic": "2.0.0-beta.20",
"@easyops-cn/docusaurus-search-local": "^0.25.0",
"@mdx-js/react": "^1.6.22", "@mdx-js/react": "^1.6.22",
"clsx": "^1.1.1", "clsx": "^1.1.1",
"prism-react-renderer": "^1.3.1", "prism-react-renderer": "^1.3.1",

View File

@ -6,25 +6,37 @@
/* You can override the default Infima variables here. */ /* You can override the default Infima variables here. */
:root { :root {
--ifm-color-primary: #2e8555; --ifm-color-primary: #5b3aa1;
--ifm-color-primary-dark: #29784c; --ifm-color-primary-dark: #523491;
--ifm-color-primary-darker: #277148; --ifm-color-primary-darker: #4d3189;
--ifm-color-primary-darkest: #205d3b; --ifm-color-primary-darkest: #402971;
--ifm-color-primary-light: #33925d; --ifm-color-primary-light: #6440b1;
--ifm-color-primary-lighter: #359962; --ifm-color-primary-lighter: #6943b9;
--ifm-color-primary-lightest: #3cad6e; --ifm-color-primary-lightest: #7b59c3;
--ifm-code-font-size: 95%; --ifm-code-font-size: 90%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
} }
/* For readability concerns, you should choose a lighter palette in dark mode. */ /* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] { [data-theme='dark'] {
--ifm-color-primary: #25c2a0; --ifm-color-primary: #c0a3ff;
--ifm-color-primary-dark: #21af90; --ifm-color-primary-dark: #a379ff;
--ifm-color-primary-darker: #1fa588; --ifm-color-primary-darker: #9564ff;
--ifm-color-primary-darkest: #1a8870; --ifm-color-primary-darkest: #6a26ff;
--ifm-color-primary-light: #29d5b0; --ifm-color-primary-light: #ddcdff;
--ifm-color-primary-lighter: #32d8b4; --ifm-color-primary-lighter: #ebe2ff;
--ifm-color-primary-lightest: #4fddbf; --ifm-color-primary-lightest: #ffffff;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
} }
@media screen and (max-width: 996px) {
:root {
--ifm-font-size-base: 15px;
}
}
@media screen and (min-width: 997px) {
:root {
--ifm-font-size-base: 15px;
}
}

View File

@ -9,7 +9,7 @@ import HomepageFeatures from '@site/src/components/HomepageFeatures';
function HomepageHeader() { function HomepageHeader() {
const {siteConfig} = useDocusaurusContext(); const {siteConfig} = useDocusaurusContext();
return ( return (
<header className={clsx('hero hero--primary', styles.heroBanner)}> <header className={clsx('hero', styles.heroBanner)}>
<div className="container"> <div className="container">
<h1 className="hero__title">{siteConfig.title}</h1> <h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p> <p className="hero__subtitle">{siteConfig.tagline}</p>
@ -29,7 +29,7 @@ export default function Home(): JSX.Element {
const {siteConfig} = useDocusaurusContext(); const {siteConfig} = useDocusaurusContext();
return ( return (
<Layout <Layout
title={`Hello from ${siteConfig.title}`} // title={`${siteConfig.title}`}
description="Description will go into a meta tag in <head />"> description="Description will go into a meta tag in <head />">
<HomepageHeader /> <HomepageHeader />
<main> <main>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 93 KiB

BIN
docs/static/img/logo.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 6.3 KiB