1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00

Add a local search plugin to documentation site (#1329)

* docusaurus 2.0.0-beta.18

* Add a local search plugin to docs site
This commit is contained in:
David Rodríguez 2022-05-24 09:55:46 +02:00 committed by GitHub
parent 5d2bb20e83
commit 989fcfaf45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1313 additions and 535 deletions

View file

@ -15,7 +15,7 @@ const config = {
favicon: 'img/favicon.ico',
organizationName: 'activerecord-hackery',
projectName: 'ransack',
trailingSlash: false,
trailingSlash: true,
presets: [
[
@ -103,6 +103,18 @@ const config = {
additionalLanguages: ['ruby', 'erb'],
},
}),
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
// needs to be the same as routeBasePath in @docusaurus/preset-classic config
docsRouteBasePath: '/'
},
]
]
};
module.exports = config;

View file

@ -14,8 +14,9 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.18",
"@docusaurus/preset-classic": "2.0.0-beta.18",
"@docusaurus/core": "^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",
"clsx": "^1.1.1",
"prism-react-renderer": "^1.3.1",

File diff suppressed because it is too large Load diff