|
| 1 | +'use strict'; |
| 2 | + |
| 3 | +var isProd = process.env.NODE_ENV === 'production'; |
| 4 | + |
| 5 | +module.exports = { |
| 6 | + title: 'gulp.js', |
| 7 | + favicon: 'img/favicon.png', |
| 8 | + url: 'https://gulpjs.com/', |
| 9 | + baseUrl: '/', |
| 10 | + tagline: 'The streaming build system', |
| 11 | + // Used by the deployment |
| 12 | + organizationName: 'gulpjs', |
| 13 | + projectName: 'gulpjs.github.io', |
| 14 | + // The theme |
| 15 | + themeConfig: { |
| 16 | + disableDarkMode: true, |
| 17 | + sidebarCollapsible: false, |
| 18 | + navbar: { |
| 19 | + logo: { |
| 20 | + alt: 'gulp', |
| 21 | + src: 'img/gulp.svg', |
| 22 | + }, |
| 23 | + links: [ |
| 24 | + { to: 'getting-started/quick-start', |
| 25 | + label: 'Getting Started', |
| 26 | + position: 'left', |
| 27 | + }, |
| 28 | + { to: 'api/concepts', |
| 29 | + label: 'API', |
| 30 | + position: 'left', |
| 31 | + }, |
| 32 | + { href: 'https://gulpjs.com/plugins', |
| 33 | + label: 'Plugins', |
| 34 | + position: 'left', |
| 35 | + }, |
| 36 | + { href: 'https://twitter.com/gulpjs', |
| 37 | + label: 'Twitter', |
| 38 | + position: 'right' |
| 39 | + }, |
| 40 | + { href: 'https://medium.com/gulpjs', |
| 41 | + label: 'Blog', |
| 42 | + position: 'right' |
| 43 | + }, |
| 44 | + ] |
| 45 | + }, |
| 46 | + footer: { |
| 47 | + links: [ |
| 48 | + { items: [ |
| 49 | + { html: '<img src="/img/gulp.svg" alt="gulp" href="/" />' } |
| 50 | + ] |
| 51 | + }, |
| 52 | + { title: 'Docs', |
| 53 | + items: [ |
| 54 | + { to: 'getting-started/quick-start', |
| 55 | + label: 'Getting Started', |
| 56 | + }, |
| 57 | + { to: 'api/concepts', |
| 58 | + label: 'API', |
| 59 | + }, |
| 60 | + ] |
| 61 | + }, |
| 62 | + { title: 'Community', |
| 63 | + items: [ |
| 64 | + { href: 'https://stackoverflow.com/questions/tagged/gulp', |
| 65 | + label: 'Stack Overflow', |
| 66 | + }, |
| 67 | + { href: 'https://twitter.com/gulpjs', |
| 68 | + label: 'Twitter', |
| 69 | + } |
| 70 | + ] |
| 71 | + }, |
| 72 | + { title: 'More', |
| 73 | + items: [ |
| 74 | + { href: 'https://github.com/gulpjs/gulp', |
| 75 | + label: 'GitHub', |
| 76 | + } |
| 77 | + ] |
| 78 | + }, |
| 79 | + ], |
| 80 | + copyright: `Copyright © ${new Date().getFullYear()} GulpJS`, |
| 81 | + }, |
| 82 | + prism: { |
| 83 | + // One of: |
| 84 | + // dracula, duotoneDark, duotoneLight, github, nightOwl, nightOwlLight, |
| 85 | + // oceanicNext, palenight, shad esOfPurple, ultramin, vsDark |
| 86 | + theme: require('prism-react-renderer/themes/vsDark'), |
| 87 | + }, |
| 88 | + algolia: { |
| 89 | + apiKey: 'a6ef919bce0b83de1bcbad1d4ef753f8', |
| 90 | + indexName: 'gulpjs', |
| 91 | + algoliaOptions: {} // Optional, if provided by Algolia |
| 92 | + }, |
| 93 | + googleAnalytics: { |
| 94 | + trackingID: 'UA-128126650-1', |
| 95 | + }, |
| 96 | + gtag: { |
| 97 | + trackingID: 'UA-128126650-1', |
| 98 | + }, |
| 99 | + }, |
| 100 | + themes: [ |
| 101 | + ['@docusaurus/theme-classic', { |
| 102 | + customCss: require.resolve('./src/css/docs.css') |
| 103 | + }], |
| 104 | + ['@docusaurus/theme-search-algolia', {}] |
| 105 | + ], |
| 106 | + plugins: [ |
| 107 | + ['@docusaurus/plugin-content-docs', { |
| 108 | + path: '../converted-docs', |
| 109 | + sidebarPath: require.resolve('./sidebars.json'), |
| 110 | + }], |
| 111 | + isProd && ['@docusaurus/plugin-google-analytics', {}], |
| 112 | + isProd && ['@docusaurus/plugin-google-gtag', {}], |
| 113 | + isProd && ['@docusaurus/plugin-sitemap', {}], |
| 114 | + ] |
| 115 | +}; |
0 commit comments