|
1 |
| -import {themes as prismThemes} from 'prism-react-renderer'; |
2 |
| -import type {Config} from '@docusaurus/types'; |
| 1 | +import { themes as prismThemes } from 'prism-react-renderer'; |
| 2 | +import type { Config } from '@docusaurus/types'; |
3 | 3 | import type * as Preset from '@docusaurus/preset-classic';
|
4 | 4 |
|
5 | 5 | // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
|
6 | 6 |
|
7 | 7 | const config: Config = {
|
8 |
| - title: 'My Site', |
9 |
| - tagline: 'Dinosaurs are cool', |
10 |
| - favicon: 'img/favicon.ico', |
| 8 | + title: 'My Site', |
| 9 | + tagline: 'Dinosaurs are cool', |
| 10 | + favicon: 'img/favicon.ico', |
11 | 11 |
|
12 |
| - // Set the production url of your site here |
13 |
| - url: 'https://your-docusaurus-site.example.com', |
14 |
| - // Set the /<baseUrl>/ pathname under which your site is served |
15 |
| - // For GitHub pages deployment, it is often '/<projectName>/' |
16 |
| - baseUrl: '/', |
| 12 | + // Set the production url of your site here |
| 13 | + url: 'https://your-docusaurus-site.example.com', |
| 14 | + // Set the /<baseUrl>/ pathname under which your site is served |
| 15 | + // For GitHub pages deployment, it is often '/<projectName>/' |
| 16 | + baseUrl: '/', |
17 | 17 |
|
18 |
| - // GitHub pages deployment config. |
19 |
| - // If you aren't using GitHub pages, you don't need these. |
20 |
| - organizationName: 'facebook', // Usually your GitHub org/user name. |
21 |
| - projectName: 'docusaurus', // Usually your repo name. |
| 18 | + // GitHub pages deployment config. |
| 19 | + // If you aren't using GitHub pages, you don't need these. |
| 20 | + organizationName: 'redemapas', // Usually your GitHub org/user name. |
| 21 | + projectName: 'manual', // Usually your repo name. |
22 | 22 |
|
23 |
| - onBrokenLinks: 'throw', |
24 |
| - onBrokenMarkdownLinks: 'warn', |
| 23 | + onBrokenLinks: 'throw', |
| 24 | + onBrokenMarkdownLinks: 'warn', |
25 | 25 |
|
26 |
| - // Even if you don't use internationalization, you can use this field to set |
27 |
| - // useful metadata like html lang. For example, if your site is Chinese, you |
28 |
| - // may want to replace "en" with "zh-Hans". |
29 |
| - i18n: { |
30 |
| - defaultLocale: 'en', |
31 |
| - locales: ['en'], |
32 |
| - }, |
| 26 | + // Even if you don't use internationalization, you can use this field to set |
| 27 | + // useful metadata like html lang. For example, if your site is Chinese, you |
| 28 | + // may want to replace "en" with "zh-Hans". |
| 29 | + i18n: { |
| 30 | + defaultLocale: 'en', |
| 31 | + locales: ['en'], |
| 32 | + }, |
33 | 33 |
|
34 |
| - presets: [ |
35 |
| - [ |
36 |
| - 'classic', |
37 |
| - { |
38 |
| - docs: { |
39 |
| - sidebarPath: './sidebars.ts', |
40 |
| - // Please change this to your repo. |
41 |
| - // Remove this to remove the "edit this page" links. |
42 |
| - editUrl: |
43 |
| - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', |
44 |
| - }, |
45 |
| - blog: { |
46 |
| - showReadingTime: true, |
47 |
| - feedOptions: { |
48 |
| - type: ['rss', 'atom'], |
49 |
| - xslt: true, |
50 |
| - }, |
51 |
| - // Please change this to your repo. |
52 |
| - // Remove this to remove the "edit this page" links. |
53 |
| - editUrl: |
54 |
| - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', |
55 |
| - // Useful options to enforce blogging best practices |
56 |
| - onInlineTags: 'warn', |
57 |
| - onInlineAuthors: 'warn', |
58 |
| - onUntruncatedBlogPosts: 'warn', |
59 |
| - }, |
60 |
| - theme: { |
61 |
| - customCss: './src/css/custom.css', |
62 |
| - }, |
63 |
| - } satisfies Preset.Options, |
64 |
| - ], |
65 |
| - ], |
| 34 | + presets: [ |
| 35 | + [ |
| 36 | + 'classic', |
| 37 | + { |
| 38 | + docs: { |
| 39 | + sidebarPath: './sidebars.ts', |
| 40 | + // Please change this to your repo. |
| 41 | + // Remove this to remove the "edit this page" links. |
| 42 | + editUrl: |
| 43 | + 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', |
| 44 | + }, |
| 45 | + blog: { |
| 46 | + showReadingTime: true, |
| 47 | + feedOptions: { |
| 48 | + type: ['rss', 'atom'], |
| 49 | + xslt: true, |
| 50 | + }, |
| 51 | + // Please change this to your repo. |
| 52 | + // Remove this to remove the "edit this page" links. |
| 53 | + editUrl: |
| 54 | + 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', |
| 55 | + // Useful options to enforce blogging best practices |
| 56 | + onInlineTags: 'warn', |
| 57 | + onInlineAuthors: 'warn', |
| 58 | + onUntruncatedBlogPosts: 'warn', |
| 59 | + }, |
| 60 | + theme: { |
| 61 | + customCss: './src/css/custom.css', |
| 62 | + }, |
| 63 | + } satisfies Preset.Options, |
| 64 | + ], |
| 65 | + ], |
66 | 66 |
|
67 |
| - themeConfig: { |
68 |
| - // Replace with your project's social card |
69 |
| - image: 'img/docusaurus-social-card.jpg', |
70 |
| - navbar: { |
71 |
| - title: 'Manual Rede Mapas', |
72 |
| - logo: { |
73 |
| - alt: 'Logo Rede Mapas', |
74 |
| - src: 'img/logo.svg', |
75 |
| - }, |
76 |
| - items: [ |
77 |
| - { |
78 |
| - type: 'docSidebar', |
79 |
| - sidebarId: 'tutorialSidebar', |
80 |
| - position: 'left', |
81 |
| - label: 'Tutorial', |
82 |
| - }, |
83 |
| - {to: '/blog', label: 'Blog', position: 'left'}, |
84 |
| - { |
85 |
| - href: 'https://github.com/redemapas/mapas', |
86 |
| - label: 'GitHub', |
87 |
| - position: 'right', |
88 |
| - }, |
89 |
| - ], |
90 |
| - }, |
91 |
| - footer: { |
92 |
| - style: 'dark', |
93 |
| - links: [ |
94 |
| - { |
95 |
| - title: 'Docs', |
96 |
| - items: [ |
97 |
| - { |
98 |
| - label: 'Tutorial', |
99 |
| - to: '/docs/intro', |
100 |
| - }, |
101 |
| - ], |
102 |
| - }, |
103 |
| - // { |
104 |
| - // title: 'Community', |
105 |
| - // items: [ |
106 |
| - // { |
107 |
| - // label: 'Stack Overflow', |
108 |
| - // href: 'https://stackoverflow.com/questions/tagged/docusaurus', |
109 |
| - // }, |
110 |
| - // { |
111 |
| - // label: 'Discord', |
112 |
| - // href: 'https://discordapp.com/invite/docusaurus', |
113 |
| - // }, |
114 |
| - // { |
115 |
| - // label: 'X', |
116 |
| - // href: 'https://x.com/docusaurus', |
117 |
| - // }, |
118 |
| - // ], |
119 |
| - // }, |
120 |
| - { |
121 |
| - title: 'More', |
122 |
| - items: [ |
123 |
| - { |
124 |
| - label: 'Blog', |
125 |
| - to: '/blog', |
126 |
| - }, |
127 |
| - // { |
128 |
| - // label: 'GitHub', |
129 |
| - // href: 'https://github.com/facebook/docusaurus', |
130 |
| - // }, |
131 |
| - ], |
132 |
| - }, |
133 |
| - ], |
134 |
| - copyright: `RedeMapas ${new Date().getFullYear()}.`, |
135 |
| - }, |
136 |
| - prism: { |
137 |
| - theme: prismThemes.github, |
138 |
| - darkTheme: prismThemes.dracula, |
139 |
| - }, |
140 |
| - } satisfies Preset.ThemeConfig, |
| 67 | + themeConfig: { |
| 68 | + // Replace with your project's social card |
| 69 | + image: 'img/docusaurus-social-card.jpg', |
| 70 | + navbar: { |
| 71 | + title: 'Manual Rede Mapas', |
| 72 | + logo: { |
| 73 | + alt: 'Logo Rede Mapas', |
| 74 | + src: 'img/logo.svg', |
| 75 | + }, |
| 76 | + items: [ |
| 77 | + { |
| 78 | + type: 'docSidebar', |
| 79 | + sidebarId: 'tutorialSidebar', |
| 80 | + position: 'left', |
| 81 | + label: 'Tutorial', |
| 82 | + }, |
| 83 | + { to: '/blog', label: 'Blog', position: 'left' }, |
| 84 | + { |
| 85 | + href: 'https://github.com/redemapas/mapas', |
| 86 | + label: 'GitHub', |
| 87 | + position: 'right', |
| 88 | + }, |
| 89 | + ], |
| 90 | + }, |
| 91 | + footer: { |
| 92 | + style: 'dark', |
| 93 | + links: [ |
| 94 | + { |
| 95 | + title: 'Docs', |
| 96 | + items: [ |
| 97 | + { |
| 98 | + label: 'Tutorial', |
| 99 | + to: '/docs/intro', |
| 100 | + }, |
| 101 | + ], |
| 102 | + }, |
| 103 | + // { |
| 104 | + // title: 'Community', |
| 105 | + // items: [ |
| 106 | + // { |
| 107 | + // label: 'Stack Overflow', |
| 108 | + // href: 'https://stackoverflow.com/questions/tagged/docusaurus', |
| 109 | + // }, |
| 110 | + // { |
| 111 | + // label: 'Discord', |
| 112 | + // href: 'https://discordapp.com/invite/docusaurus', |
| 113 | + // }, |
| 114 | + // { |
| 115 | + // label: 'X', |
| 116 | + // href: 'https://x.com/docusaurus', |
| 117 | + // }, |
| 118 | + // ], |
| 119 | + // }, |
| 120 | + { |
| 121 | + title: 'More', |
| 122 | + items: [ |
| 123 | + { |
| 124 | + label: 'Blog', |
| 125 | + to: '/blog', |
| 126 | + }, |
| 127 | + // { |
| 128 | + // label: 'GitHub', |
| 129 | + // href: 'https://github.com/facebook/docusaurus', |
| 130 | + // }, |
| 131 | + ], |
| 132 | + }, |
| 133 | + ], |
| 134 | + copyright: `RedeMapas ${new Date().getFullYear()}.`, |
| 135 | + }, |
| 136 | + prism: { |
| 137 | + theme: prismThemes.github, |
| 138 | + darkTheme: prismThemes.dracula, |
| 139 | + }, |
| 140 | + } satisfies Preset.ThemeConfig, |
141 | 141 | };
|
142 | 142 |
|
143 | 143 | export default config;
|
0 commit comments