|
| 1 | +/** |
| 2 | + * conjoon |
| 3 | + * conjoon.github.io |
| 4 | + * Copyright (C) 2022 Thorsten Suckow-Homberg https://github.com/conjoon/conjoon.github.io |
| 5 | + * |
| 6 | + * Permission is hereby granted, free of charge, to any person |
| 7 | + * obtaining a copy of this software and associated documentation |
| 8 | + * files (the "Software"), to deal in the Software without restriction, |
| 9 | + * including without limitation the rights to use, copy, modify, merge, |
| 10 | + * publish, distribute, sublicense, and/or sell copies of the Software, |
| 11 | + * and to permit persons to whom the Software is furnished to do so, |
| 12 | + * subject to the following conditions: |
| 13 | + * |
| 14 | + * The above copyright notice and this permission notice shall be included |
| 15 | + * in all copies or substantial portions of the Software. |
| 16 | + * |
| 17 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 18 | + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 19 | + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 20 | + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
| 21 | + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR |
| 22 | + * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE |
| 23 | + * USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 24 | + */ |
| 25 | + |
1 | 26 | // @ts-check
|
2 | 27 | // Note: type annotations allow type checking and IDEs autocompletion
|
3 | 28 |
|
4 |
| -const lightCodeTheme = require('prism-react-renderer/themes/github'); |
5 |
| -const darkCodeTheme = require('prism-react-renderer/themes/dracula'); |
| 29 | +const darkCodeTheme = require("prism-react-renderer/themes/dracula"); |
6 | 30 |
|
7 | 31 | /** @type {import('@docusaurus/types').Config} */
|
8 | 32 | const config = {
|
9 |
| - title: 'conjoon', |
10 |
| - tagline: 'webmail made easy', |
11 |
| - url: 'https://conjoon.org', |
12 |
| - baseUrl: '/', |
13 |
| - onBrokenLinks: 'throw', |
14 |
| - onBrokenMarkdownLinks: 'warn', |
15 |
| - favicon: 'img/favicon.ico', |
16 |
| - organizationName: 'conjoon', // Usually your GitHub org/user name. |
17 |
| - projectName: 'conjoon', // Usually your repo name. |
| 33 | + title: "conjoon", |
| 34 | + tagline: "webmail made easy", |
| 35 | + url: "https://conjoon.org", |
| 36 | + baseUrl: "/", |
| 37 | + onBrokenLinks: "throw", |
| 38 | + onBrokenMarkdownLinks: "warn", |
| 39 | + favicon: "img/favicon.ico", |
| 40 | + organizationName: "conjoon", // Usually your GitHub org/user name. |
| 41 | + projectName: "conjoon", // Usually your repo name. |
18 | 42 |
|
19 |
| - presets: [ |
20 |
| - [ |
21 |
| - 'classic', |
22 |
| - /** @type {import('@docusaurus/preset-classic').Options} */ |
23 |
| - ({ |
24 |
| - docs: { |
25 |
| - sidebarPath: require.resolve('./sidebars.js'), |
26 |
| - // Please change this to your repo. |
27 |
| - editUrl: 'https://github.com/conjoon/conjoon/', |
28 |
| - }, |
29 |
| - blog: { |
30 |
| - showReadingTime: true, |
31 |
| - // Please change this to your repo. |
32 |
| - editUrl: |
33 |
| - 'https://github.com/conjoon/conjoon/', |
34 |
| - }, |
35 |
| - theme: { |
36 |
| - customCss: require.resolve('./src/css/custom.css'), |
37 |
| - }, |
38 |
| - }), |
| 43 | + presets: [ |
| 44 | + [ |
| 45 | + "classic", |
| 46 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 47 | + ({ |
| 48 | + docs: { |
| 49 | + sidebarPath: require.resolve("./sidebars.js"), |
| 50 | + // Please change this to your repo. |
| 51 | + editUrl: "https://github.com/conjoon/conjoon/" |
| 52 | + }, |
| 53 | + blog: { |
| 54 | + showReadingTime: true, |
| 55 | + // Please change this to your repo. |
| 56 | + editUrl: |
| 57 | + "https://github.com/conjoon/conjoon/" |
| 58 | + }, |
| 59 | + theme: { |
| 60 | + customCss: require.resolve("./src/css/custom.css") |
| 61 | + } |
| 62 | + }) |
| 63 | + ] |
39 | 64 | ],
|
40 |
| - ], |
41 | 65 |
|
42 |
| - themeConfig: |
| 66 | + themeConfig: |
43 | 67 | /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
44 | 68 | ({
|
45 |
| - navbar: { |
46 |
| - title: 'conjoon', |
47 |
| - logo: { |
48 |
| - alt: 'conjoon', |
49 |
| - src: 'img/logos/conjoon.svg', |
50 |
| - }, |
51 |
| - items: [ |
52 |
| - { |
53 |
| - type: 'doc', |
54 |
| - docId: 'intro', |
55 |
| - position: 'left', |
56 |
| - label: 'Installation', |
57 |
| - }, |
58 |
| - {to: 'demo/index.html', target: "_blank", label: 'Demo', position: 'left'}, |
59 |
| - { |
60 |
| - href: 'https://github.com/conjoon', |
61 |
| - className: 'header-github-link', |
62 |
| - position: "right", |
63 |
| - "aria-label": "GitHub repository" |
64 |
| - }, |
65 |
| - { |
66 |
| - href: 'https://conjoon.stoplight.io/docs/rest-api-email', |
67 |
| - className: 'header-stoplight-link', |
68 |
| - position: "right", |
69 |
| - "aria-label": "REST API docs" |
70 |
| - } |
71 |
| - ], |
72 |
| - }, |
73 |
| - footer: { |
74 |
| - style: 'dark', |
75 |
| - links: [ |
76 |
| - { |
77 |
| - title: 'Docs', |
78 |
| - items: [ |
79 |
| - { |
80 |
| - label: 'Installation', |
81 |
| - to: 'docs/intro', |
82 |
| - }, |
83 |
| - ], |
84 |
| - }, |
85 |
| - { |
86 |
| - title: 'Resources', |
| 69 | + navbar: { |
| 70 | + title: "conjoon", |
| 71 | + logo: { |
| 72 | + alt: "conjoon", |
| 73 | + src: "img/logos/conjoon.svg" |
| 74 | + }, |
87 | 75 | items: [
|
88 |
| - { |
89 |
| - label: 'GitHub', |
90 |
| - href: 'https://github.com/facebook/docusaurus', |
91 |
| - }, |
92 |
| - { |
93 |
| - label: 'REST API', |
94 |
| - href: 'https://conjoon.stoplight.io/docs/rest-api-email', |
95 |
| - } |
96 |
| - ], |
97 |
| - }, |
98 |
| - { |
99 |
| - title: "Support", |
100 |
| - items: [{ |
101 |
| - label: 'Contact', |
102 |
| - target: "_blank", |
103 |
| - href: 'https://github.com/ThorstenSuckow', |
104 |
| - }, { |
105 |
| - label: 'Professional Support', |
106 |
| - href: 'https://eyeworkers.de', |
107 |
| - }, |
108 |
| - ] |
109 |
| - }, |
110 |
| - { |
111 |
| - title: 'More', |
112 |
| - items: [ |
113 |
| - { |
114 |
| - label: 'Demo', |
115 |
| - target: "_blank", |
116 |
| - href: 'demo/index.html', |
117 |
| - }, |
118 |
| - { |
119 |
| - label: 'Twitter', |
120 |
| - href: 'https://twitter.com/conjoon', |
121 |
| - }, |
| 76 | + { |
| 77 | + type: "doc", |
| 78 | + docId: "intro", |
| 79 | + position: "left", |
| 80 | + label: "Installation" |
| 81 | + }, |
| 82 | + {to: "demo/index.html", target: "_blank", label: "Demo", position: "left"}, |
| 83 | + { |
| 84 | + href: "https://github.com/conjoon", |
| 85 | + className: "header-github-link", |
| 86 | + position: "right", |
| 87 | + "aria-label": "GitHub repository" |
| 88 | + }, |
| 89 | + { |
| 90 | + href: "https://conjoon.stoplight.io/docs/rest-api-email", |
| 91 | + className: "header-stoplight-link", |
| 92 | + position: "right", |
| 93 | + "aria-label": "REST API docs" |
| 94 | + } |
| 95 | + ] |
| 96 | + }, |
| 97 | + footer: { |
| 98 | + style: "dark", |
| 99 | + links: [ |
| 100 | + { |
| 101 | + title: "Docs", |
| 102 | + items: [ |
| 103 | + { |
| 104 | + label: "Installation", |
| 105 | + to: "docs/intro" |
| 106 | + } |
| 107 | + ] |
| 108 | + }, |
| 109 | + { |
| 110 | + title: "Resources", |
| 111 | + items: [ |
| 112 | + { |
| 113 | + label: "GitHub", |
| 114 | + href: "https://github.com/facebook/docusaurus" |
| 115 | + }, |
| 116 | + { |
| 117 | + label: "REST API", |
| 118 | + href: "https://conjoon.stoplight.io/docs/rest-api-email" |
| 119 | + } |
| 120 | + ] |
| 121 | + }, |
| 122 | + { |
| 123 | + title: "Support", |
| 124 | + items: [{ |
| 125 | + label: "Contact", |
| 126 | + target: "_blank", |
| 127 | + href: "https://github.com/ThorstenSuckow" |
| 128 | + }, { |
| 129 | + label: "Professional Support", |
| 130 | + href: "https://eyeworkers.de" |
| 131 | + } |
| 132 | + ] |
| 133 | + }, |
| 134 | + { |
| 135 | + title: "More", |
| 136 | + items: [ |
| 137 | + { |
| 138 | + label: "Demo", |
| 139 | + target: "_blank", |
| 140 | + href: "demo/index.html" |
| 141 | + }, |
| 142 | + { |
| 143 | + label: "Twitter", |
| 144 | + href: "https://twitter.com/conjoon" |
| 145 | + } |
| 146 | + ] |
| 147 | + } |
122 | 148 | ],
|
123 |
| - }, |
124 |
| - ], |
125 |
| - copyright: `Copyright © 2007-${new Date().getFullYear()} conjoon Open Source project. This website is proudly built with <a href="https://docusaurus.io">Docusaurus</a>.`, |
126 |
| - }, |
127 |
| - prism: { |
128 |
| - theme: darkCodeTheme |
129 |
| - }, |
130 |
| - colorMode: { |
131 |
| - defaultMode: 'dark', |
132 |
| - disableSwitch: true, |
133 |
| - respectPrefersColorScheme: false |
134 |
| - }, |
135 |
| - announcementBar: { |
136 |
| - id: 'support_us', |
137 |
| - content: "⭐️If you like conjoon, give it a star on <a target=\"_blank\" href=\"https://github.com/conjoon/conjoon/\">GitHub</a> and follow us on <a target=\"_blank\" href=\"https://twitter.com/conjoon\">Twitter <img src=\"/img/logos/twitter.svg\" /></a>", |
138 |
| - backgroundColor: '#a2ff00', |
139 |
| - textColor: '#000000', |
140 |
| - isCloseable: true |
141 |
| - } |
142 |
| - }), |
| 149 | + copyright: `Copyright © 2007-${new Date().getFullYear()} conjoon Open Source project. This website is proudly built with <a href="https://docusaurus.io">Docusaurus</a>.` |
| 150 | + }, |
| 151 | + prism: { |
| 152 | + theme: darkCodeTheme |
| 153 | + }, |
| 154 | + colorMode: { |
| 155 | + defaultMode: "dark", |
| 156 | + disableSwitch: true, |
| 157 | + respectPrefersColorScheme: false |
| 158 | + }, |
| 159 | + announcementBar: { |
| 160 | + id: "support_us", |
| 161 | + content: "⭐️If you like conjoon, give it a star on <a target=\"_blank\" href=\"https://github.com/conjoon/conjoon/\">GitHub</a> and follow us on <a target=\"_blank\" href=\"https://twitter.com/conjoon\">Twitter <img src=\"/img/logos/twitter.svg\" /></a>", |
| 162 | + backgroundColor: "#a2ff00", |
| 163 | + textColor: "#000000", |
| 164 | + isCloseable: true |
| 165 | + } |
| 166 | + }) |
143 | 167 | };
|
144 | 168 |
|
145 | 169 | module.exports = config;
|
0 commit comments