@@ -119,33 +119,47 @@ module.exports = {
119119 prism : {
120120 additionalLanguages : [ 'rust' , 'toml' ] ,
121121 } ,
122- gtag : {
123- trackingID : 'G-DENCL8P4YP' ,
124- anonymizeIP : true ,
122+ algolia : {
123+ appId : 'F8S2ICRD2T' ,
124+ apiKey : '2dc337d68f84389c3713a393aff39816' ,
125+ indexName : 'yew-rs' ,
126+ contextualSearch : true ,
127+ insights : true , // Optional, automatically send insights when user interacts with search results
128+ searchPagePath : 'search' ,
125129 } ,
126130 } ,
127131 i18n : {
128132 defaultLocale : 'en' ,
129133 locales : [ 'en' , 'ja' , 'zh-Hans' , 'zh-Hant' ] ,
130134 } ,
131- plugins : [
132- 'content-pages' ,
133- 'docusaurus-plugin-sass' ,
134- [
135- '@docusaurus/theme-classic' ,
136- {
137- customCss : require . resolve ( './src/css/custom.css' ) ,
138- } ,
139- ] ,
135+ presets : [
140136 [
141- '@docusaurus/plugin-content-docs ' ,
137+ '@docusaurus/preset-classic ' ,
142138 {
143- path : 'docs' ,
144- sidebarPath : require . resolve ( './sidebars/docs.js' ) ,
145- editUrl,
146- routeBasePath : '/docs' ,
139+ theme : {
140+ customCss : [ './src/css/custom.css' ] ,
141+ } ,
142+ docs : {
143+ path : 'docs' ,
144+ sidebarPath : require . resolve ( './sidebars/docs.js' ) ,
145+ editUrl,
146+ routeBasePath : '/docs' ,
147+ } ,
148+ blog : {
149+ path : 'blog' ,
150+ blogTitle : 'Yew Blog' ,
151+ editUrl,
152+ } ,
153+ pages : { } ,
154+ gtag : {
155+ trackingID : 'G-DENCL8P4YP' ,
156+ anonymizeIP : true ,
157+ } ,
147158 } ,
148159 ] ,
160+ ] ,
161+ plugins : [
162+ 'docusaurus-plugin-sass' ,
149163 [
150164 '@docusaurus/plugin-content-docs' ,
151165 {
@@ -156,14 +170,6 @@ module.exports = {
156170 editUrl,
157171 } ,
158172 ] ,
159- [
160- '@docusaurus/plugin-content-blog' ,
161- {
162- path : 'blog' ,
163- blogTitle : 'Yew Blog' ,
164- editUrl,
165- } ,
166- ] ,
167173 [
168174 'client-redirects' ,
169175 {
@@ -177,12 +183,5 @@ module.exports = {
177183 ] ,
178184 } ,
179185 ] ,
180- [
181- '@easyops-cn/docusaurus-search-local' ,
182- {
183- hashed : true ,
184- indexBlog : false ,
185- } ,
186- ] ,
187186 ] ,
188187}
0 commit comments