| 
									
										
										
										
											2022-05-16 03:26:04 +00:00
										 |  |  | // @ts-check
 | 
					
						
							|  |  |  | // Note: type annotations allow type checking and IDEs autocompletion
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const lightCodeTheme = require('prism-react-renderer/themes/github'); | 
					
						
							|  |  |  | const darkCodeTheme = require('prism-react-renderer/themes/dracula'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** @type {import('@docusaurus/types').Config} */ | 
					
						
							|  |  |  | const config = { | 
					
						
							|  |  |  |   title: 'SheetJS Community Edition', | 
					
						
							|  |  |  |   tagline: 'Get Sheet Done', | 
					
						
							|  |  |  |   url: 'https://docs.sheetjs.com', | 
					
						
							|  |  |  |   baseUrl: '/', | 
					
						
							|  |  |  |   onBrokenLinks: 'throw', | 
					
						
							|  |  |  |   onBrokenMarkdownLinks: 'warn', | 
					
						
							|  |  |  |   favicon: 'img/favicon.ico', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   // GitHub pages deployment config.
 | 
					
						
							|  |  |  |   // If you aren't using GitHub pages, you don't need these.
 | 
					
						
							|  |  |  |   //organizationName: 'sheetjs', // Usually your GitHub org/user name.
 | 
					
						
							|  |  |  |   //projectName: 'sheetjs', // Usually your repo name.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   // Even if you don't use internalization, you can use this field to set useful
 | 
					
						
							|  |  |  |   // metadata like html lang. For example, if your site is Chinese, you may want
 | 
					
						
							|  |  |  |   // to replace "en" with "zh-Hans".
 | 
					
						
							|  |  |  |   i18n: { | 
					
						
							|  |  |  |     defaultLocale: 'en', | 
					
						
							|  |  |  |     locales: ['en'], | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   presets: [ | 
					
						
							|  |  |  |     [ | 
					
						
							|  |  |  |       'classic', | 
					
						
							|  |  |  |       /** @type {import('@docusaurus/preset-classic').Options} */ | 
					
						
							|  |  |  |       ({ | 
					
						
							|  |  |  |         docs: { | 
					
						
							|  |  |  |           sidebarPath: require.resolve('./sidebars.js'), | 
					
						
							|  |  |  |           // Please change this to your repo.
 | 
					
						
							|  |  |  |           // Remove this to remove the "edit this page" links.
 | 
					
						
							|  |  |  |           // editUrl:
 | 
					
						
							|  |  |  |             // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
 | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         //blog: {
 | 
					
						
							|  |  |  |         //  showReadingTime: true,
 | 
					
						
							|  |  |  |           // Please change this to your repo.
 | 
					
						
							|  |  |  |           // Remove this to remove the "edit this page" links.
 | 
					
						
							|  |  |  |           // editUrl:
 | 
					
						
							|  |  |  |             // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
 | 
					
						
							|  |  |  |         //},
 | 
					
						
							|  |  |  |         theme: { | 
					
						
							|  |  |  |           customCss: require.resolve('./src/css/custom.css'), | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         googleAnalytics: { | 
					
						
							|  |  |  |           trackingID: 'UA-36810333-1', | 
					
						
							|  |  |  |           anonymizeIP: true | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }), | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  |   ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   themeConfig: | 
					
						
							|  |  |  |     /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ | 
					
						
							|  |  |  |     ({ | 
					
						
							|  |  |  |       navbar: { | 
					
						
							|  |  |  |         title: 'SheetJS CE Docs', | 
					
						
							|  |  |  |         logo: { | 
					
						
							|  |  |  |           alt: 'SheetJS Logo', | 
					
						
							|  |  |  |           src: 'img/logo.svg', | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         items: [ | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             type: 'doc', | 
					
						
							|  |  |  |             docId: 'index', | 
					
						
							|  |  |  |             position: 'left', | 
					
						
							|  |  |  |             label: 'Docs', | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           //{to: '/blog', label: 'Blog', position: 'left'},
 | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             href: 'https://sheetjs.com', | 
					
						
							|  |  |  |             label: 'SheetJS', | 
					
						
							|  |  |  |             position: 'right', | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							| 
									
										
										
										
											2022-11-07 10:41:00 +00:00
										 |  |  |             href: 'https://git.sheetjs.com/sheetjs/sheetjs', | 
					
						
							| 
									
										
										
										
											2022-05-16 03:26:04 +00:00
										 |  |  |             label: 'Source', | 
					
						
							|  |  |  |             position: 'right', | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       footer: { | 
					
						
							|  |  |  |         style: 'dark', | 
					
						
							|  |  |  |         links: [ | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             title: 'Docs', | 
					
						
							|  |  |  |             items: [ | 
					
						
							|  |  |  |               { | 
					
						
							|  |  |  |                 label: 'Intro', | 
					
						
							|  |  |  |                 to: '/docs', | 
					
						
							|  |  |  |               }, | 
					
						
							|  |  |  |               { | 
					
						
							|  |  |  |                 label: 'Example', | 
					
						
							| 
									
										
										
										
											2022-09-09 03:42:10 +00:00
										 |  |  |                 to: '/docs/getting-started/example/', | 
					
						
							| 
									
										
										
										
											2022-05-16 03:26:04 +00:00
										 |  |  |               }, | 
					
						
							|  |  |  |             ], | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             title: 'Community', | 
					
						
							|  |  |  |             items: [ | 
					
						
							|  |  |  |               //{
 | 
					
						
							|  |  |  |               //  label: 'Stack Overflow',
 | 
					
						
							|  |  |  |               //  href: 'https://stackoverflow.com/questions/tagged/sheetjs',
 | 
					
						
							|  |  |  |               //},
 | 
					
						
							| 
									
										
										
										
											2022-11-09 08:25:37 +00:00
										 |  |  |               { | 
					
						
							|  |  |  |                 label: 'Discord', | 
					
						
							|  |  |  |                 href: 'https://discord.gg/nSaX8XTRVA', | 
					
						
							|  |  |  |               }, | 
					
						
							| 
									
										
										
										
											2022-05-16 03:26:04 +00:00
										 |  |  |               { | 
					
						
							|  |  |  |                 label: 'Twitter', | 
					
						
							|  |  |  |                 href: 'https://twitter.com/sheetjs', | 
					
						
							|  |  |  |               }, | 
					
						
							|  |  |  |             ], | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             title: 'More', | 
					
						
							|  |  |  |             items: [ | 
					
						
							|  |  |  |               //{
 | 
					
						
							|  |  |  |               //  label: 'Blog',
 | 
					
						
							|  |  |  |               //  to: '/blog',
 | 
					
						
							|  |  |  |               //},
 | 
					
						
							|  |  |  |               { | 
					
						
							|  |  |  |                 label: 'SheetJS Pro', | 
					
						
							|  |  |  |                 href: 'https://sheetjs.com/pro', | 
					
						
							|  |  |  |               }, | 
					
						
							|  |  |  |               { | 
					
						
							|  |  |  |                 label: 'Source', | 
					
						
							| 
									
										
										
										
											2022-11-07 10:41:00 +00:00
										 |  |  |                 href: 'https://git.sheetjs.com/sheetjs/sheetjs', | 
					
						
							| 
									
										
										
										
											2022-05-16 03:26:04 +00:00
										 |  |  |               }, | 
					
						
							|  |  |  |             ], | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         copyright: `Copyright © ${new Date().getFullYear()} SheetJS LLC.`, | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       prism: { | 
					
						
							|  |  |  |         theme: lightCodeTheme, | 
					
						
							|  |  |  |         darkTheme: darkCodeTheme, | 
					
						
							| 
									
										
										
										
											2022-09-07 06:36:01 +00:00
										 |  |  |         additionalLanguages: [ "swift", "java", "csharp" ], | 
					
						
							| 
									
										
										
										
											2022-05-16 03:26:04 +00:00
										 |  |  |       }, | 
					
						
							|  |  |  |       liveCodeBlock: { | 
					
						
							|  |  |  |         playgroundPosition: 'top' | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }), | 
					
						
							|  |  |  |   themes: [ | 
					
						
							| 
									
										
										
										
											2022-12-28 11:56:52 +00:00
										 |  |  |     "@docusaurus/theme-live-codeblock", | 
					
						
							|  |  |  |     "@docusaurus/theme-mermaid" | 
					
						
							| 
									
										
										
										
											2022-05-16 03:26:04 +00:00
										 |  |  |   ], | 
					
						
							| 
									
										
										
										
											2022-12-28 11:56:52 +00:00
										 |  |  |   markdown: { | 
					
						
							|  |  |  |     mermaid: true | 
					
						
							|  |  |  |   }, | 
					
						
							| 
									
										
										
										
											2022-05-16 03:26:04 +00:00
										 |  |  |   scripts: [ | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       src: "https://cdn.sheetjs.com/xlsx-latest/package/dist/xlsx.full.min.js", | 
					
						
							|  |  |  |       async: true | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2022-05-31 12:51:39 +00:00
										 |  |  |   ], | 
					
						
							|  |  |  |   plugins: [ | 
					
						
							| 
									
										
										
										
											2022-08-28 18:26:33 +00:00
										 |  |  |     require.resolve("@cmfcmf/docusaurus-search-local"), | 
					
						
							|  |  |  |     [ '@docusaurus/plugin-client-redirects', { | 
					
						
							|  |  |  |       redirects: [ | 
					
						
							|  |  |  |         { from: '/docs/example', to: '/docs/getting-started/example' }, | 
					
						
							|  |  |  |         { from: '/docs/installation', to: '/docs/getting-started/' }, | 
					
						
							| 
									
										
										
										
											2022-11-03 21:14:12 +00:00
										 |  |  |         { from: '/docs/interface', to: '/docs/api/' }, | 
					
						
							| 
									
										
										
										
											2022-08-30 22:12:52 +00:00
										 |  |  |         { from: '/docs/demos/excel', to: '/docs/demos/' }, | 
					
						
							|  |  |  |         { from: '/docs/getting-started/demos/', to: '/docs/demos/' }, | 
					
						
							|  |  |  |         { from: '/docs/getting-started/demos/excel', to: '/docs/demos/' }, | 
					
						
							| 
									
										
										
										
											2023-01-09 05:08:30 +00:00
										 |  |  |         /* frontend */ | 
					
						
							|  |  |  |         { from: '/docs/demos/angular', to: '/docs/demos/frontend/angular/' }, | 
					
						
							|  |  |  |         { from: '/docs/demos/react', to: '/docs/demos/frontend/react/' }, | 
					
						
							|  |  |  |         { from: '/docs/demos/svelte', to: '/docs/demos/frontend/svelte/' }, | 
					
						
							|  |  |  |         { from: '/docs/demos/vue', to: '/docs/demos/frontend/vue/' }, | 
					
						
							|  |  |  |         { from: '/docs/demos/bundler', to: '/docs/demos/frontend/bundler/' }, | 
					
						
							|  |  |  |         { from: '/docs/demos/legacy', to: '/docs/demos/frontend/legacy/' }, | 
					
						
							| 
									
										
										
										
											2022-08-28 18:26:33 +00:00
										 |  |  |       ] | 
					
						
							|  |  |  |     }] | 
					
						
							| 
									
										
										
										
											2022-05-16 03:26:04 +00:00
										 |  |  |   ] | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module.exports = config; |