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:
parent
5d2bb20e83
commit
989fcfaf45
3 changed files with 1313 additions and 535 deletions
|
@ -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;
|
||||
|
|
|
@ -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",
|
||||
|
|
1829
docs/yarn.lock
1829
docs/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue