|
| 1 | +/** |
| 2 | + * Copyright (c) Facebook, Inc. and its affiliates. |
| 3 | + * |
| 4 | + * This source code is licensed under the MIT license found in the |
| 5 | + * LICENSE file in the root directory of this source tree. |
| 6 | + */ |
| 7 | + |
| 8 | +module.exports = { |
| 9 | + title: 'Draft.js', |
| 10 | + tagline: 'Rich Text Editor Framework for React', |
| 11 | + url: 'https://draftjs.org', |
| 12 | + baseUrl: '/', |
| 13 | + organizationName: 'facebook', |
| 14 | + projectName: 'draft-js', |
| 15 | + favicon: 'img/draftjs-logo.ico', |
| 16 | + presets: [ |
| 17 | + [ |
| 18 | + '@docusaurus/preset-classic', |
| 19 | + { |
| 20 | + docs: { |
| 21 | + path: '../docs', |
| 22 | + sidebarPath: require.resolve('./sidebars.json'), |
| 23 | + editUrl: 'https://github.com/facebook/draft-js/edit/master/docs', |
| 24 | + showLastUpdateAuthor: true, |
| 25 | + showLastUpdateTime: true, |
| 26 | + }, |
| 27 | + theme: { |
| 28 | + customCss: require.resolve('./src/css/custom.css'), |
| 29 | + }, |
| 30 | + }, |
| 31 | + ], |
| 32 | + ], |
| 33 | + themeConfig: { |
| 34 | + disableDarkMode: true, |
| 35 | + navbar: { |
| 36 | + title: 'Draft.js', |
| 37 | + logo: { |
| 38 | + alt: 'Draft.js Logo', |
| 39 | + src: 'img/draftjs-logo.svg', |
| 40 | + }, |
| 41 | + links: [ |
| 42 | + {to: 'docs/getting-started', label: 'Docs', position: 'right'}, |
| 43 | + { |
| 44 | + href: 'https://github.com/facebook/draft-js', |
| 45 | + label: 'GitHub', |
| 46 | + position: 'right', |
| 47 | + }, |
| 48 | + ], |
| 49 | + }, |
| 50 | + algolia: { |
| 51 | + apiKey: 'ae94c9e3ee00ea8edddd484adafc37cd', |
| 52 | + indexName: 'draft-js', |
| 53 | + }, |
| 54 | + googleAnalytics: { |
| 55 | + trackingID: 'UA-44373548-19', |
| 56 | + }, |
| 57 | + footer: { |
| 58 | + style: 'dark', |
| 59 | + links: [ |
| 60 | + { |
| 61 | + title: 'Docs', |
| 62 | + items: [ |
| 63 | + { |
| 64 | + label: 'Getting Started', |
| 65 | + to: 'docs/getting-started', |
| 66 | + }, |
| 67 | + { |
| 68 | + label: 'API Reference', |
| 69 | + to: 'docs/api-reference-editor', |
| 70 | + }, |
| 71 | + ], |
| 72 | + }, |
| 73 | + { |
| 74 | + title: 'Community', |
| 75 | + items: [ |
| 76 | + { |
| 77 | + label: 'Stack Overflow', |
| 78 | + href: 'https://stackoverflow.com/questions/tagged/draftjs', |
| 79 | + }, |
| 80 | + { |
| 81 | + label: 'Twitter', |
| 82 | + href: 'https://twitter.com/draft_js', |
| 83 | + }, |
| 84 | + ], |
| 85 | + }, |
| 86 | + { |
| 87 | + title: 'More', |
| 88 | + items: [ |
| 89 | + { |
| 90 | + label: 'GitHub', |
| 91 | + href: 'https://github.com/facebook/draft-js', |
| 92 | + }, |
| 93 | + ], |
| 94 | + }, |
| 95 | + ], |
| 96 | + logo: { |
| 97 | + alt: 'Facebook Open Source Logo', |
| 98 | + src: '/img/oss_logo.png', |
| 99 | + href: 'https://opensource.facebook.com/', |
| 100 | + }, |
| 101 | + copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`, |
| 102 | + }, |
| 103 | + }, |
| 104 | +}; |
0 commit comments