Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update docs search version #1896

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

FROM node:18-alpine as builder
FROM node:16-alpine as builder
RUN apk add --no-cache git

WORKDIR /usr/app
Expand Down
36 changes: 18 additions & 18 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,24 +315,24 @@ module.exports = {
},
],
],
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
explicitSearchResultPath: true,
hashed: true,
indexBlog: false,
indexDocs: true,
docsRouteBasePath: "/",
ignoreFiles: [
/client\/_[^\/]*\.mdx/i,
/server\/_[^\/]*\.mdx/i,
/client\/(Android|AndroidOnDeviceEvaluation|Dart|React|ReactNative|Roku|SwiftOnDeviceEval|Templates|Unity|dotnet|iOS|js|jslocal)\/?/i,
/server\/(Templates|java|node|cpp|dotnet|erlang|go|php|python|ruby|rust)\/?/i,
],
},
],
],
// themes: [
// [
// require.resolve("@easyops-cn/docusaurus-search-local"),
// {
// explicitSearchResultPath: true,
// hashed: true,
// indexBlog: false,
// indexDocs: true,
// docsRouteBasePath: "/",
// ignoreFiles: [
// /client\/_[^\/]*\.mdx/i,
// /server\/_[^\/]*\.mdx/i,
// /client\/(Android|AndroidOnDeviceEvaluation|Dart|React|ReactNative|Roku|SwiftOnDeviceEval|Templates|Unity|dotnet|iOS|js|jslocal)\/?/i,
// /server\/(Templates|java|node|cpp|dotnet|erlang|go|php|python|ruby|rust)\/?/i,
// ],
// },
// ],
// ],
presets: [
[
"@docusaurus/preset-classic",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@docusaurus/preset-classic": "2.4.3",
"@docusaurus/theme-common": "2.4.3",
"@mdx-js/react": "^1.6.22",
"@easyops-cn/docusaurus-search-local": "^0.27.2",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.15.3",
Expand Down
Loading