|
4 | 4 | // There are various equivalent ways to declare your Docusaurus config. |
5 | 5 | // See: https://docusaurus.io/docs/api/docusaurus-config |
6 | 6 |
|
7 | | -import { themes as prismThemes } from "prism-react-renderer"; |
| 7 | +import {themes as prismThemes} from 'prism-react-renderer'; |
8 | 8 |
|
9 | 9 | /** @type {import('@docusaurus/types').Config} */ |
10 | 10 | const config = { |
11 | | - title: "AWS Observability best practices", |
12 | | - tagline: "🖥️ AWS Insights: Improving Cloud Observability 🚀", |
13 | | - favicon: "img/favicon.ico", |
| 11 | + title: 'AWS Observability best practices', |
| 12 | + tagline: '🖥️ AWS Insights: Improving Cloud Observability 🚀', |
| 13 | + favicon: 'img/favicon.ico', |
14 | 14 |
|
15 | 15 | // Set the production url of your site here |
16 | | - url: "https://aws-observability.github.io/", |
| 16 | + url: 'https://aws-observability.github.io/', |
17 | 17 | // Set the /<baseUrl>/ pathname under which your site is served |
18 | 18 | // For GitHub pages deployment, it is often '/<projectName>/' |
19 | | - baseUrl: "/observability-best-practices/", |
| 19 | + baseUrl: '/', |
20 | 20 |
|
21 | 21 | // GitHub pages deployment config. |
22 | 22 | // If you aren't using GitHub pages, you don't need these. |
23 | | - organizationName: "AWS", // Usually your GitHub org/user name. |
24 | | - projectName: "AWS Observability best practices", // Usually your repo name. |
| 23 | + organizationName: 'AWS', // Usually your GitHub org/user name. |
| 24 | + projectName: 'AWS Observability best practices', // Usually your repo name. |
25 | 25 |
|
26 | | - onBrokenLinks: "throw", |
27 | | - onBrokenMarkdownLinks: "warn", |
| 26 | + onBrokenLinks: 'throw', |
| 27 | + onBrokenMarkdownLinks: 'warn', |
28 | 28 |
|
29 | 29 | // Even if you don't use internationalization, you can use this field to set |
30 | 30 | // useful metadata like html lang. For example, if your site is Chinese, you |
31 | 31 | // may want to replace "en" with "zh-Hans". |
32 | 32 | i18n: { |
33 | | - defaultLocale: "en", |
34 | | - locales: ["en", "ja"], |
| 33 | + defaultLocale: 'en', |
| 34 | + locales: ['en','ja'], |
35 | 35 | localeConfigs: { |
36 | 36 | en: { |
37 | | - label: "English", |
| 37 | + label: 'English', |
38 | 38 | }, |
39 | 39 | ja: { |
40 | | - label: "日本語", |
| 40 | + label: '日本語', |
41 | 41 | }, |
42 | 42 | }, |
43 | 43 | }, |
44 | 44 |
|
45 | 45 | presets: [ |
46 | 46 | [ |
47 | | - "classic", |
| 47 | + 'classic', |
48 | 48 | /** @type {import('@docusaurus/preset-classic').Options} */ |
49 | 49 | ({ |
50 | 50 | docs: { |
51 | | - sidebarPath: "./sidebars.js", |
| 51 | + sidebarPath: './sidebars.js', |
52 | 52 | // Please change this to your repo. |
53 | 53 | // Remove this to remove the "edit this page" links. |
54 | 54 | editUrl: |
55 | | - "https://github.com/aws-observability/observability-best-practices/", |
| 55 | + 'https://github.com/aws-observability/observability-best-practices/', |
56 | 56 | }, |
57 | | - |
| 57 | + |
58 | 58 | theme: { |
59 | | - customCss: "./src/css/custom.css", |
| 59 | + customCss: './src/css/custom.css', |
60 | 60 | }, |
61 | 61 | }), |
62 | 62 | ], |
63 | 63 | ], |
64 | 64 |
|
65 | 65 | plugins: [ |
66 | | - [ |
67 | | - require.resolve("@easyops-cn/docusaurus-search-local"), |
68 | | - { |
69 | | - hashed: true, |
70 | | - // language: ["en", "ja"], |
71 | | - indexBlog: false, |
72 | | - }, |
73 | | - ], |
74 | | - ], |
| 66 | + |
| 67 | + [ |
| 68 | + require.resolve("@easyops-cn/docusaurus-search-local"), |
| 69 | + ({ |
| 70 | + hashed: true, |
| 71 | + // language: ["en", "ja"], |
| 72 | + indexBlog: false, |
| 73 | + }), |
| 74 | + ], |
| 75 | + ], |
75 | 76 | themeConfig: |
76 | 77 | /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
77 | 78 | ({ |
78 | 79 | navbar: { |
79 | | - title: "AWS Observability Best Practices", |
| 80 | + title: 'AWS Observability Best Practices', |
80 | 81 | logo: { |
81 | | - alt: "AWS Logo", |
82 | | - src: "img/logo.svg", |
| 82 | + alt: 'AWS Logo', |
| 83 | + src: 'img/logo.svg', |
83 | 84 | }, |
84 | 85 | items: [ |
85 | 86 | { |
86 | | - type: "doc", |
87 | | - docId: "home", |
88 | | - position: "left", |
89 | | - label: "Home", |
| 87 | + type: 'doc', |
| 88 | + docId: 'home', |
| 89 | + position: 'left', |
| 90 | + label: 'Home', |
90 | 91 | }, |
91 | 92 | { |
92 | | - type: "doc", |
93 | | - docId: "guides/index", |
94 | | - position: "left", |
95 | | - label: "Guides", |
| 93 | + type: 'doc', |
| 94 | + docId: 'guides/index', |
| 95 | + position: 'left', |
| 96 | + label: 'Guides', |
96 | 97 | }, |
97 | 98 | { |
98 | | - type: "doc", |
99 | | - docId: "signals/alarms", |
100 | | - position: "left", |
101 | | - label: "Signals", |
| 99 | + type: 'doc', |
| 100 | + docId: 'signals/alarms', |
| 101 | + position: 'left', |
| 102 | + label: 'Signals', |
102 | 103 | }, |
103 | 104 | { |
104 | | - type: "doc", |
105 | | - docId: "tools/observability_accelerator", |
106 | | - position: "left", |
107 | | - label: "Tools", |
| 105 | + type: 'doc', |
| 106 | + docId: 'tools/observability_accelerator', |
| 107 | + position: 'left', |
| 108 | + label: 'Tools', |
108 | 109 | }, |
109 | 110 | { |
110 | | - type: "doc", |
111 | | - docId: "recipes/index", |
112 | | - position: "left", |
113 | | - label: "Recipes", |
| 111 | + type: 'doc', |
| 112 | + docId: 'recipes/index', |
| 113 | + position: 'left', |
| 114 | + label: 'Recipes', |
114 | 115 | }, |
115 | 116 | { |
116 | | - type: "doc", |
117 | | - docId: "faq/adot", |
118 | | - position: "left", |
119 | | - label: "FAQ", |
| 117 | + type: 'doc', |
| 118 | + docId: 'faq/adot', |
| 119 | + position: 'left', |
| 120 | + label: 'FAQ', |
120 | 121 | }, |
121 | 122 | { |
122 | | - type: "doc", |
123 | | - docId: "patterns/multiaccount", |
124 | | - position: "left", |
125 | | - label: "Patterns", |
| 123 | + type: 'doc', |
| 124 | + docId: 'patterns/multiaccount', |
| 125 | + position: 'left', |
| 126 | + label: 'Patterns', |
126 | 127 | }, |
127 | 128 | { |
128 | | - type: "doc", |
129 | | - docId: "contributors", |
130 | | - position: "left", |
131 | | - label: "Contributors", |
| 129 | + type: 'doc', |
| 130 | + docId: 'contributors', |
| 131 | + position: 'left', |
| 132 | + label: 'Contributors', |
132 | 133 | }, |
133 | 134 | { |
134 | | - type: "localeDropdown", |
135 | | - position: "right", |
| 135 | + type: 'localeDropdown', |
| 136 | + position: 'right', |
136 | 137 | }, |
137 | 138 | { |
138 | | - href: |
139 | | - "https://github.com/aws-observability/observability-best-practices", |
140 | | - label: "GitHub", |
141 | | - position: "right", |
| 139 | + href: 'https://github.com/aws-observability/observability-best-practices', |
| 140 | + label: 'GitHub', |
| 141 | + position: 'right', |
142 | 142 | }, |
143 | 143 | ], |
144 | 144 | }, |
145 | 145 | docs: { |
146 | 146 | sidebar: { |
147 | 147 | hideable: true, |
148 | 148 | autoCollapseCategories: true, |
149 | | - }, |
| 149 | + } |
150 | 150 | }, |
151 | 151 | colorMode: { |
152 | | - defaultMode: "light", |
153 | | - disableSwitch: false, |
154 | | - respectPrefersColorScheme: true, |
155 | | - }, |
| 152 | + defaultMode: 'light', |
| 153 | + disableSwitch: false, |
| 154 | + respectPrefersColorScheme: true, |
| 155 | + }, |
156 | 156 | footer: { |
157 | | - style: "dark", |
158 | | - copyright: `Built with ❤️ at AWS. <br/> © ${new Date().getFullYear() |
159 | | - }. Amazon.com, Inc. or its affiliates. All Rights Reserved.`, |
| 157 | + style: 'dark', |
| 158 | + copyright: `Built with ❤️ at AWS. <br/> © ${new Date().getFullYear()}. Amazon.com, Inc. or its affiliates. All Rights Reserved.`, |
160 | 159 | }, |
161 | 160 | prism: { |
162 | 161 | theme: prismThemes.github, |
|
0 commit comments