Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 39 additions & 8 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ module.exports = {
"protobuf",
],
},
algolia: {
// apiKey: "5f882bef2dfc81f5f1b4e5ea87b2f165",
appId: 'DY1AXAPBQY',
apiKey: '391ef440955a44a32cbeb5e7db9a2b6c',
indexName: "apache_shenyu",
// Optional: see doc section below
contextualSearch: true,
},
// algolia: {
// // apiKey: "5f882bef2dfc81f5f1b4e5ea87b2f165",
// appId: 'DY1AXAPBQY',
// apiKey: '391ef440955a44a32cbeb5e7db9a2b6c',
// indexName: "apache_shenyu",
// // Optional: see doc section below
// contextualSearch: true,
// },
imageZoom: {
// CSS selector to apply the plugin to, defaults to '.markdown img'
selector: '.markdown img',
Expand Down Expand Up @@ -153,6 +153,37 @@ module.exports = {
],
],
plugins: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
language: ["en", "zh"],
highlightSearchTermsOnTargetPage: true,
explicitSearchResultPath: true,
indexDocs: true,
indexBlog: true,
indexPages: true,
docsRouteBasePath: [
"/docs",
"/community",
"/event",
"/shenyuNginx",
"/shenyuClientGolang",
"/shenyuClientDotnet",
"/shenyuClientRust",
"/helm",
],
blogRouteBasePath: ["/blog", "/news"],
searchResultLimits: 8,
searchResultContextMaxLength: 50,
// 忽略某些不需要索引的元素
ignoreFiles: [
/node_modules/,
/\.docusaurus/,
/build/,
],
},
],
[
"@docusaurus/plugin-content-docs",
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ ShenYu 有Casdoor插件去使用Casdoor

在成功部署之后,我们需要确保:

* Casdoor服务成功在 **http://localhost:8000**上运行
* Casdoor服务成功在 [http://localhost:8000](http://localhost:8000)上运行

* 打开你喜爱的浏览器浏览 **http://localhost:7001**,你可以看到Casdoor的登陆页面
* 打开你喜爱的浏览器浏览 [http://localhost:7001](http://localhost:7001),你可以看到Casdoor的登陆页面

* 输入`admin`和`123`去测试登录是否成功

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ description: API文档管理
>
> 字典名称:表示网关类型,比如填写 `测试环境`、`生产环境`。该值将会出现在API文档详情页面;
>
> 字典值:表示网关地址,比如 http://127.0.0.1:9195。该值将会出现在API文档详情页面;
> 字典值:表示网关地址,比如 [http://localhost:9195](http://localhost:9195)。该值将会出现在API文档详情页面;
>
> 字典描述或备注:该网关地址用于何种场景,做一个简短描述。该值将会出现在API文档详情页面;
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ ShenYu 有Casdoor插件去使用Casdoor

在成功部署之后,我们需要确保:

* Casdoor服务成功在 **http://localhost:8000**上运行
* Casdoor服务成功在 [http://localhost:8000](http://localhost:8000)上运行

* 打开你喜爱的浏览器浏览 **http://localhost:7001**,你可以看到Casdoor的登陆页面
* 打开你喜爱的浏览器浏览 [http://localhost:7001](http://localhost:7001),你可以看到Casdoor的登陆页面

* 输入`admin`和`123`去测试登录是否成功

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ ShenYu 有Casdoor插件去使用Casdoor

在成功部署之后,我们需要确保:

* Casdoor服务成功在 **http://localhost:8000**上运行
* Casdoor服务成功在 [http://localhost:8000](http://localhost:8000)上运行

* 打开你喜爱的浏览器浏览 **http://localhost:7001**,你可以看到Casdoor的登陆页面
* 打开你喜爱的浏览器浏览 [http://localhost:7001](http://localhost:7001),你可以看到Casdoor的登陆页面

* 输入`admin`和`123`去测试登录是否成功

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ description: API文档管理
>
> 字典名称:表示网关类型,比如填写 `测试环境`、`生产环境`。该值将会出现在API文档详情页面;
>
> 字典值:表示网关地址,比如 http://127.0.0.1:9195。该值将会出现在API文档详情页面;
> 字典值:表示网关地址,比如 [http://localhost:9195](http://localhost:9195)。该值将会出现在API文档详情页面;
>
> 字典描述或备注:该网关地址用于何种场景,做一个简短描述。该值将会出现在API文档详情页面;
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ ShenYu 有Casdoor插件去使用Casdoor

在成功部署之后,我们需要确保:

* Casdoor服务成功在 **http://localhost:8000**上运行
* Casdoor服务成功在 [http://localhost:8000](http://localhost:8000)上运行

* 打开你喜爱的浏览器浏览 **http://localhost:7001**,你可以看到Casdoor的登陆页面
* 打开你喜爱的浏览器浏览 [http://localhost:7001](http://localhost:7001),你可以看到Casdoor的登陆页面

* 输入`admin`和`123`去测试登录是否成功

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ description: API文档管理
>
> 字典名称:表示网关类型,比如填写 `测试环境`、`生产环境`。该值将会出现在API文档详情页面;
>
> 字典值:表示网关地址,比如 http://127.0.0.1:9195。该值将会出现在API文档详情页面;
> 字典值:表示网关地址,比如 [http://localhost:9195](http://localhost:9195)。该值将会出现在API文档详情页面;
>
> 字典描述或备注:该网关地址用于何种场景,做一个简短描述。该值将会出现在API文档详情页面;
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ ShenYu 有Casdoor插件去使用Casdoor

在成功部署之后,我们需要确保:

* Casdoor服务成功在 **http://localhost:8000**上运行
* Casdoor服务成功在 [http://localhost:8000](http://localhost:8000)上运行

* 打开你喜爱的浏览器浏览 **http://localhost:7001**,你可以看到Casdoor的登陆页面
* 打开你喜爱的浏览器浏览 [http://localhost:7001](http://localhost:7001),你可以看到Casdoor的登陆页面

* 输入`admin`和`123`去测试登录是否成功

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ description: API文档管理
>
> 字典名称:表示网关类型,比如填写 `测试环境`、`生产环境`。该值将会出现在API文档详情页面;
>
> 字典值:表示网关地址,比如 http://127.0.0.1:9195。该值将会出现在API文档详情页面;
> 字典值:表示网关地址,比如 [http://localhost:9195](http://localhost:9195)。该值将会出现在API文档详情页面;
>
> 字典描述或备注:该网关地址用于何种场景,做一个简短描述。该值将会出现在API文档详情页面;
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ ShenYu 有Casdoor插件去使用Casdoor

在成功部署之后,我们需要确保:

* Casdoor服务成功在 **http://localhost:8000**上运行
* Casdoor服务成功在 [http://localhost:8000](http://localhost:8000)上运行

* 打开你喜爱的浏览器浏览 **http://localhost:7001**,你可以看到Casdoor的登陆页面
* 打开你喜爱的浏览器浏览 [http://localhost:7001](http://localhost:7001),你可以看到Casdoor的登陆页面

* 输入`admin`和`123`去测试登录是否成功

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ description: API文档管理
>
> 字典名称:表示网关类型,比如填写 `测试环境`、`生产环境`。该值将会出现在API文档详情页面;
>
> 字典值:表示网关地址,比如 http://127.0.0.1:9195。该值将会出现在API文档详情页面;
> 字典值:表示网关地址,比如 [http://localhost:9195](http://localhost:9195)。该值将会出现在API文档详情页面;
>
> 字典描述或备注:该网关地址用于何种场景,做一个简短描述。该值将会出现在API文档详情页面;
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ ShenYu 有Casdoor插件去使用Casdoor

在成功部署之后,我们需要确保:

* Casdoor服务成功在 **http://localhost:8000**上运行
* Casdoor服务成功在 [http://localhost:8000](http://localhost:8000)上运行

* 打开你喜爱的浏览器浏览 **http://localhost:7001**,你可以看到Casdoor的登陆页面
* 打开你喜爱的浏览器浏览 [http://localhost:7001](http://localhost:7001),你可以看到Casdoor的登陆页面

* 输入`admin`和`123`去测试登录是否成功

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ description: API文档管理
>
> 字典名称:表示网关类型,比如填写 `测试环境`、`生产环境`。该值将会出现在API文档详情页面;
>
> 字典值:表示网关地址,比如 http://127.0.0.1:9195。该值将会出现在API文档详情页面;
> 字典值:表示网关地址,比如 [http://localhost:9195](http://localhost:9195)。该值将会出现在API文档详情页面;
>
> 字典描述或备注:该网关地址用于何种场景,做一个简短描述。该值将会出现在API文档详情页面;
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ ShenYu 有Casdoor插件去使用Casdoor

在成功部署之后,我们需要确保:

* Casdoor服务成功在 **http://localhost:8000**上运行
* Casdoor服务成功在 [http://localhost:8000](http://localhost:8000)上运行

* 打开你喜爱的浏览器浏览 **http://localhost:7001**,你可以看到Casdoor的登陆页面
* 打开你喜爱的浏览器浏览 [http://localhost:7001](http://localhost:7001),你可以看到Casdoor的登陆页面

* 输入`admin`和`123`去测试登录是否成功

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ description: API文档管理
>
> 字典名称:表示网关类型,比如填写 `测试环境`、`生产环境`。该值将会出现在API文档详情页面;
>
> 字典值:表示网关地址,比如 http://127.0.0.1:9195。该值将会出现在API文档详情页面;
> 字典值:表示网关地址,比如 [http://localhost:9195](http://localhost:9195)。该值将会出现在API文档详情页面;
>
> 字典描述或备注:该网关地址用于何种场景,做一个简短描述。该值将会出现在API文档详情页面;
>
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"lint:fix": "markdownlint '**/*.md' --ignore node_modules --config ./.github/.markdownlint.yml --fix"
},
"dependencies": {
"@docusaurus/core": "3.0.0",
"@docusaurus/preset-classic": "3.0.0",
"@docusaurus/theme-search-algolia": "3.0.0",
"@docusaurus/core": "3.6.3",
"@docusaurus/preset-classic": "3.6.3",
"@easyops-cn/docusaurus-search-local": "^0.44.5",
"@headlessui/react": "^1.4.1",
"@mdx-js/react": "^3.0.0",
"@svgr/webpack": "^5.5.0",
Expand Down
Loading
Loading