@@ -191,186 +191,190 @@ const config = {
191191 // }
192192 ] ,
193193 themeConfig :
194- /** @type {import('@docusaurus/preset-classic').ThemeConfig } */
195- {
196- // https://docusaurus.io/zh-CN/docs/markdown-features/toc#table-of-contents-heading-level
197- tableOfContents : {
198- minHeadingLevel : 2 ,
199- maxHeadingLevel : 3 ,
194+ /** @type {import('@docusaurus/preset-classic').ThemeConfig } */
195+ {
196+ // https://docusaurus.io/zh-CN/docs/markdown-features/toc#table-of-contents-heading-level
197+ tableOfContents : {
198+ minHeadingLevel : 2 ,
199+ maxHeadingLevel : 3 ,
200+ } ,
201+ colorMode : {
202+ defaultMode : 'dark' ,
203+ } ,
204+ metadata : [
205+ {
206+ name : 'keywords' ,
207+ content : 'weapp,小程序,tailwindcss,原子类,uni-app,taro,rax,mpx,native,remax,原生,webpack,plugin,vite,gulp,wxss,wxml' ,
200208 } ,
201- colorMode : {
202- defaultMode : 'dark' ,
209+ // {
210+ // name: 'description',
211+ // content:
212+ // '用tailwindcss来开发小程序吧!这是一个 webpack / vite 插件,兼容了各种用这类打包的框架,比如 uni-app, uni-app vite, taro, rax, mpx, native, remax, 原生等等. 伟大的 icebreaker 部署了这个文档网站'
213+ // }
214+ ] ,
215+ algolia : {
216+ apiKey : '614e6b4532a0b92d440e4676381cc600' ,
217+ appId : '9Y7BJULSEW' ,
218+ indexName : 'weapp-tw-icebreaker' ,
219+ contextualSearch : true ,
220+ } ,
221+ // Replace with your project's social card
222+ image : 'img/logo.png' ,
223+ navbar : {
224+ title : 'weapp-tailwindcss' ,
225+ logo : {
226+ alt : 'weapp tailwindcss Logo' ,
227+ src : 'img/logo.png' ,
203228 } ,
204- metadata : [
229+ items : [
230+ {
231+ type : 'doc' ,
232+ docId : 'intro' ,
233+ position : 'left' ,
234+ label : '指南' ,
235+ } ,
236+
237+ {
238+ type : 'doc' ,
239+ label : '生态及解决方案' ,
240+ docId : 'community/templates' ,
241+ } ,
205242 {
206- name : 'keywords' ,
207- content : 'weapp,小程序,tailwindcss,原子类,uni-app,taro,rax,mpx,native,remax,原生,webpack,plugin,vite,gulp,wxss,wxml' ,
243+ type : 'doc' ,
244+ label : '常见问题' ,
245+ docId : 'issues/index' ,
246+ } ,
247+ {
248+ type : 'doc' ,
249+ label : '优秀案例展示' ,
250+ docId : 'showcase/index' ,
251+ } ,
252+
253+ {
254+ type : 'doc' ,
255+ label : '迁移' ,
256+ docId : 'migrations/v2' ,
257+ } ,
258+ {
259+ type : 'doc' ,
260+ docId : 'options/index' ,
261+ position : 'left' ,
262+ label : '配置项' ,
263+ } ,
264+ {
265+ to : 'docs/api/' , // 'api' is the 'out' directory
266+ label : 'Types' ,
267+ position : 'left' ,
208268 } ,
209269 // {
210- // name: 'description',
211- // content:
212- // '用tailwindcss来开发小程序吧!这是一个 webpack / vite 插件,兼容了各种用这类打包的框架,比如 uni-app, uni-app vite, taro, rax, mpx, native, remax, 原生等等. 伟大的 icebreaker 部署了这个文档网站'
213- // }
270+ // to: 'docs/api-cli/', // 'api' is the 'out' directory
271+ // label: 'Types-CLI',
272+ // position: 'left',
273+ // },
274+ {
275+ href : 'https://vite.icebreaker.top/' ,
276+ position : 'left' ,
277+ label : '🔥Weapp-vite' ,
278+ } ,
279+ {
280+ href : 'https://icebreaker.top/' ,
281+ position : 'left' ,
282+ label : '博客' ,
283+ } ,
284+ // { to: '/blog', label: 'Blog', position: 'left' },
285+ {
286+ href : 'https://github.com/sonofmagic/weapp-tailwindcss' ,
287+ label : 'GitHub' ,
288+ position : 'right' ,
289+ } ,
214290 ] ,
215- algolia : {
216- apiKey : '614e6b4532a0b92d440e4676381cc600' ,
217- appId : '9Y7BJULSEW' ,
218- indexName : 'weapp-tw-icebreaker' ,
219- contextualSearch : true ,
220- } ,
221- // Replace with your project's social card
222- image : 'img/logo.png' ,
223- navbar : {
224- title : 'weapp-tailwindcss' ,
225- logo : {
226- alt : 'weapp tailwindcss Logo' ,
227- src : 'img/logo.png' ,
291+ } ,
292+ footer : {
293+ style : 'dark' ,
294+ links : [
295+ {
296+ title : '文档' ,
297+ items : [
298+ {
299+ label : '指南' ,
300+ to : '/docs/intro' ,
301+ } ,
302+ {
303+ label : '配置项' ,
304+ to : '/docs/options/' ,
305+ } ,
306+ {
307+ label : '常见问题' ,
308+ to : '/docs/issues/' ,
309+ } ,
310+ ] ,
228311 } ,
229- items : [
230- {
231- type : 'doc' ,
232- docId : 'intro' ,
233- position : 'left' ,
234- label : '指南' ,
235- } ,
236-
237- {
238- type : 'doc' ,
239- label : '生态及解决方案' ,
240- docId : 'community/templates' ,
241- } ,
242- {
243- type : 'doc' ,
244- label : '常见问题' ,
245- docId : 'issues/index' ,
246- } ,
247- {
248- type : 'doc' ,
249- label : '优秀案例展示' ,
250- docId : 'showcase/index' ,
251- } ,
252-
253- {
254- type : 'doc' ,
255- label : '迁移' ,
256- docId : 'migrations/v2' ,
257- } ,
258- {
259- type : 'doc' ,
260- docId : 'options/index' ,
261- position : 'left' ,
262- label : '配置项' ,
263- } ,
264- {
265- to : 'docs/api/' , // 'api' is the 'out' directory
266- label : 'Types' ,
267- position : 'left' ,
268- } ,
269- // {
270- // to: 'docs/api-cli/', // 'api' is the 'out' directory
271- // label: 'Types-CLI',
272- // position: 'left',
273- // },
274- {
275- href : 'https://vite.icebreaker.top/' ,
276- position : 'left' ,
277- label : '🔥Weapp-vite' ,
278- } ,
279- {
280- href : 'https://icebreaker.top/' ,
281- position : 'left' ,
282- label : '博客' ,
283- } ,
284- // { to: '/blog', label: 'Blog', position: 'left' },
285- {
286- href : 'https://github.com/sonofmagic/weapp-tailwindcss' ,
287- label : 'GitHub' ,
288- position : 'right' ,
289- } ,
290- ] ,
291- } ,
292- footer : {
293- style : 'dark' ,
294- links : [
295- {
296- title : '文档' ,
297- items : [
298- {
299- label : '指南' ,
300- to : '/docs/intro' ,
301- } ,
302- {
303- label : '配置项' ,
304- to : '/docs/options/' ,
305- } ,
306- {
307- label : '常见问题' ,
308- to : '/docs/issues/' ,
309- } ,
310- ] ,
311- } ,
312- // {
313- // title: 'Community',
314- // items: [
315- // {
316- // label: 'Stack Overflow',
317- // href: 'https://stackoverflow.com/questions/tagged/docusaurus'
318- // },
319- // {
320- // label: 'Discord',
321- // href: 'https://discordapp.com/invite/docusaurus'
322- // },
323- // {
324- // label: 'Twitter',
325- // href: 'https://twitter.com/docusaurus'
326- // }
327- // ]
328- // },
329- {
330- title : '更多' ,
331- items : [
332- {
333- label : 'GitHub' ,
334- href : 'https://github.com/sonofmagic/weapp-tailwindcss' ,
335- } ,
336- {
337- label : 'weapp-vite' ,
338- href : 'https://vite.icebreaker.top' ,
339- } ,
340- {
341- label : '博客' ,
342- href : 'https://icebreaker.top' ,
343- } ,
344- {
345- label : 'IceStack' ,
346- href : 'https://ui.icebreaker.top/zh-CN' ,
347- } ,
348- {
349- label : 'weapp-pandacss' ,
350- href : 'https://github.com/sonofmagic/weapp-pandacss' ,
351- } ,
352- ] ,
353- } ,
354- ] ,
355- // `<a target="_blank" rel="nofollow" href="http://beian.miit.gov.cn">苏ICP备19002675号-2</a>`
356- copyright : `<div class="flex flex-col items-center md:items-start md:flex-row justify-center md:space-x-2">
357- <span>Copyright © ${ new Date ( ) . getFullYear ( ) } icebreaker</span> ${ createLink ( {
358- href : 'http://beian.miit.gov.cn' ,
359- textContent : '苏ICP备19002675号-2' ,
360- } ) } <span class="flex items-center space-x-1"><img src="/img/beian.png" class="h-4" /> ${ createLink ( {
361- href : 'https://beian.mps.gov.cn/#/query/webSearch?code=32050602011962' ,
362- rel : 'noreferrer' ,
363- target : '_blank' ,
364- textContent : '苏公网安备32050602011962' ,
365- } ) } </span></div>`,
366- } ,
367- prism : {
368- theme : PrismLight ,
369- darkTheme : PrismDark ,
370- // https://github.com/FormidableLabs/prism-react-renderer/blob/master/packages/generate-prism-languages/index.ts#L9-L23
371- additionalLanguages : [ 'json' , 'javascript' , 'css' , 'clike' , 'bash' , 'scss' , 'yaml' , 'typescript' , 'diff' ] ,
372- } ,
312+ // {
313+ // title: 'Community',
314+ // items: [
315+ // {
316+ // label: 'Stack Overflow',
317+ // href: 'https://stackoverflow.com/questions/tagged/docusaurus'
318+ // },
319+ // {
320+ // label: 'Discord',
321+ // href: 'https://discordapp.com/invite/docusaurus'
322+ // },
323+ // {
324+ // label: 'Twitter',
325+ // href: 'https://twitter.com/docusaurus'
326+ // }
327+ // ]
328+ // },
329+ {
330+ title : '更多' ,
331+ items : [
332+ {
333+ label : 'GitHub' ,
334+ href : 'https://github.com/sonofmagic/weapp-tailwindcss' ,
335+ } ,
336+ {
337+ label : 'Code of Conduct' ,
338+ href : 'https://github.com/sonofmagic/weapp-tailwindcss/blob/main/CODE_OF_CONDUCT.md' ,
339+ } ,
340+ {
341+ label : 'weapp-vite' ,
342+ href : 'https://vite.icebreaker.top' ,
343+ } ,
344+ {
345+ label : '博客' ,
346+ href : 'https://icebreaker.top' ,
347+ } ,
348+ {
349+ label : 'IceStack' ,
350+ href : 'https://ui.icebreaker.top/zh-CN' ,
351+ } ,
352+ {
353+ label : 'weapp-pandacss' ,
354+ href : 'https://github.com/sonofmagic/weapp-pandacss' ,
355+ } ,
356+ ] ,
357+ } ,
358+ ] ,
359+ // `<a target="_blank" rel="nofollow" href="http://beian.miit.gov.cn">苏ICP备19002675号-2</a>`
360+ copyright : `<div class="flex flex-col items-center justify-center space-y-2">
361+ <span>Copyright © ${ new Date ( ) . getFullYear ( ) } ${ createLink ( {
362+ href : 'https://github.com/sonofmagic' ,
363+ textContent : 'sonofmagic' ,
364+ } ) } </span>
365+ <span class="flex items-center">This site is powered by ${ createLink ( {
366+ href : 'https://www.netlify.com' ,
367+ textContent : '<img class="w-10 ml-2" src="/img/logo-netlify.png" alt="Netlify badge" />' ,
368+ } ) } </span>
369+ </div>` ,
373370 } ,
371+ prism : {
372+ theme : PrismLight ,
373+ darkTheme : PrismDark ,
374+ // https://github.com/FormidableLabs/prism-react-renderer/blob/master/packages/generate-prism-languages/index.ts#L9-L23
375+ additionalLanguages : [ 'json' , 'javascript' , 'css' , 'clike' , 'bash' , 'scss' , 'yaml' , 'typescript' , 'diff' ] ,
376+ } ,
377+ } ,
374378 markdown : {
375379 format : 'detect' ,
376380 } ,
0 commit comments