|
| 1 | +// @ts-check |
| 2 | +// Note: type annotations allow type checking and IDEs autocompletion |
| 3 | + |
| 4 | +const {themes} = require('prism-react-renderer'); |
| 5 | +const lightTheme = themes.github; |
| 6 | +const darkTheme = themes.dracula; |
| 7 | + |
| 8 | +/** @type {import('@docusaurus/types').Config} */ |
| 9 | +const config = { |
| 10 | + title: 'Laravel Korean Documentation', |
| 11 | + tagline: 'Laravel 한국어 문서', |
| 12 | + favicon: 'img/favicon.ico', |
| 13 | + |
| 14 | + // Set the production url of your site here |
| 15 | + url: 'https://your-docusaurus-site.example.com', |
| 16 | + // Set the /<baseUrl>/ pathname under which your site is served |
| 17 | + // For GitHub pages deployment, it is often '/<projectName>/' |
| 18 | + baseUrl: '/', |
| 19 | + |
| 20 | + // GitHub pages deployment config. |
| 21 | + // If you aren't using GitHub pages, you don't need these. |
| 22 | + organizationName: 'letsescape', // Usually your GitHub org/user name. |
| 23 | + projectName: 'laravel-docs-web', // Usually your repo name. |
| 24 | + |
| 25 | + onBrokenLinks: 'throw', |
| 26 | + onBrokenMarkdownLinks: 'warn', |
| 27 | + |
| 28 | + // Even if you don't use internalization, you can use this field to set useful |
| 29 | + // metadata like html lang. For example, if your site is Chinese, you may want |
| 30 | + // to replace "en" with "zh-Hans". |
| 31 | + i18n: { |
| 32 | + defaultLocale: 'ko', |
| 33 | + locales: ['ko'], |
| 34 | + }, |
| 35 | + |
| 36 | + presets: [ |
| 37 | + [ |
| 38 | + 'classic', |
| 39 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 40 | + ({ |
| 41 | + docs: { |
| 42 | + sidebarPath: require.resolve('./sidebars.js'), |
| 43 | + // Please change this to your repo. |
| 44 | + // Remove this to remove the "edit this page" links. |
| 45 | + editUrl: |
| 46 | + 'https://github.com/letsescape/laravel-docs-web/tree/main/', |
| 47 | + }, |
| 48 | + blog: { |
| 49 | + showReadingTime: true, |
| 50 | + // Please change this to your repo. |
| 51 | + // Remove this to remove the "edit this page" links. |
| 52 | + editUrl: |
| 53 | + 'https://github.com/letsescape/laravel-docs-web/tree/main/', |
| 54 | + }, |
| 55 | + theme: { |
| 56 | + customCss: require.resolve('./src/css/custom.css'), |
| 57 | + }, |
| 58 | + }), |
| 59 | + ], |
| 60 | + ], |
| 61 | + |
| 62 | + themeConfig: |
| 63 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 64 | + ({ |
| 65 | + // Replace with your project's social card |
| 66 | + image: 'img/docusaurus-social-card.jpg', |
| 67 | + navbar: { |
| 68 | + title: 'Laravel 한국어 문서', |
| 69 | + logo: { |
| 70 | + alt: 'Laravel Logo', |
| 71 | + src: 'img/logo.svg', |
| 72 | + }, |
| 73 | + items: [ |
| 74 | + { |
| 75 | + type: 'docSidebar', |
| 76 | + sidebarId: 'tutorialSidebar', |
| 77 | + position: 'left', |
| 78 | + label: '문서', |
| 79 | + }, |
| 80 | + {to: '/blog', label: '블로그', position: 'left'}, |
| 81 | + { |
| 82 | + href: 'https://github.com/letsescape/laravel-docs-web', |
| 83 | + label: 'GitHub', |
| 84 | + position: 'right', |
| 85 | + }, |
| 86 | + ], |
| 87 | + }, |
| 88 | + footer: { |
| 89 | + style: 'dark', |
| 90 | + links: [ |
| 91 | + { |
| 92 | + title: '문서', |
| 93 | + items: [ |
| 94 | + { |
| 95 | + label: '시작하기', |
| 96 | + to: '/docs/intro', |
| 97 | + }, |
| 98 | + ], |
| 99 | + }, |
| 100 | + { |
| 101 | + title: '커뮤니티', |
| 102 | + items: [ |
| 103 | + { |
| 104 | + label: 'Laravel Korea', |
| 105 | + href: 'https://laravel.kr', |
| 106 | + }, |
| 107 | + ], |
| 108 | + }, |
| 109 | + { |
| 110 | + title: '더 보기', |
| 111 | + items: [ |
| 112 | + { |
| 113 | + label: '블로그', |
| 114 | + to: '/blog', |
| 115 | + }, |
| 116 | + { |
| 117 | + label: 'GitHub', |
| 118 | + href: 'https://github.com/letsescape/laravel-docs-web', |
| 119 | + }, |
| 120 | + ], |
| 121 | + }, |
| 122 | + ], |
| 123 | + copyright: `Copyright © ${new Date().getFullYear()} Laravel Korea Community. Built with Docusaurus.`, |
| 124 | + }, |
| 125 | + prism: { |
| 126 | + theme: lightTheme, |
| 127 | + darkTheme: darkTheme, |
| 128 | + }, |
| 129 | + }), |
| 130 | +}; |
| 131 | + |
| 132 | +module.exports = config; |
0 commit comments