|
1 | 1 | /** @type {import('@docusaurus/types').DocusaurusConfig} */ |
2 | 2 | module.exports = { |
3 | | - title: "FastJ", |
4 | | - tagline: "The open-source, 2D Java game engine.", |
5 | | - url: "https://tech.fastj", |
6 | | - baseUrl: "/", |
7 | | - noIndex: false, |
8 | | - onBrokenLinks: "throw", |
9 | | - onBrokenMarkdownLinks: "warn", |
10 | | - favicon: "img/fastj/fastj_icon.png", |
11 | | - organizationName: "fastjengine", |
12 | | - projectName: "fastjengine.github.io", |
13 | | - plugins: ["docusaurus-plugin-sass"], |
14 | | - themeConfig: |
15 | | - /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
16 | | - ({ |
17 | | - prism: { |
18 | | - additionalLanguages: ["java", "groovy", "kotlin"], |
19 | | - }, |
20 | | - colorMode: { |
21 | | - defaultMode: "dark", |
22 | | - disableSwitch: false, |
23 | | - respectPrefersColorScheme: false, |
24 | | - switchConfig: { |
25 | | - darkIcon: "🌙", |
26 | | - lightIcon: "❄️", |
27 | | - }, |
28 | | - }, |
29 | | - navbar: { |
30 | | - logo: { |
31 | | - alt: "FastJ Logo", |
32 | | - src: "svg/fastj_icon.svg", |
33 | | - }, |
34 | | - items: [ |
35 | | - { |
36 | | - type: "doc", |
37 | | - docId: "intro", |
38 | | - position: "left", |
39 | | - label: "Wiki", |
40 | | - }, |
41 | | - { |
42 | | - href: "https://javadoc.io/doc/io.github.lucasstarsz.fastj/fastj-library", |
43 | | - label: "API Docs", |
44 | | - position: "left", |
45 | | - }, |
46 | | - { |
47 | | - to: "/news", |
48 | | - label: "News", |
49 | | - position: "left", |
50 | | - }, |
51 | | - { |
52 | | - href: "https://github.com/fastjengine/FastJ/", |
53 | | - label: "GitHub", |
54 | | - position: "right", |
55 | | - }, |
56 | | - ], |
57 | | - }, |
58 | | - footer: { |
59 | | - style: "dark", |
60 | | - links: [ |
61 | | - { |
62 | | - title: "Docs", |
63 | | - items: [ |
64 | | - { |
65 | | - label: "Wiki", |
66 | | - to: "/wiki/intro", |
67 | | - }, |
68 | | - { |
69 | | - label: "API Docs", |
70 | | - href: "https://api.fastj.dev", |
71 | | - }, |
72 | | - ], |
73 | | - }, |
74 | | - { |
75 | | - title: "Community", |
76 | | - items: [ |
77 | | - { |
78 | | - label: "FastJ Discord", |
79 | | - href: "https://discord.gg/FTWsYVSDv6", |
80 | | - }, |
81 | | - ], |
82 | | - }, |
83 | | - { |
84 | | - title: "More", |
85 | | - items: [ |
86 | | - { |
87 | | - label: "News", |
88 | | - to: "/news", |
89 | | - }, |
90 | | - { |
91 | | - label: "GitHub", |
92 | | - href: "https://fastj.dev/", |
93 | | - }, |
94 | | - ], |
95 | | - }, |
96 | | - ], |
97 | | - copyright: `Copyright © ${new Date().getFullYear()} Andrew Dey. Built with Docusaurus. |
| 3 | + title: "FastJ", |
| 4 | + tagline: "The open-source, 2D Java game engine.", |
| 5 | + url: "https://tech.fastj", |
| 6 | + baseUrl: "/", |
| 7 | + noIndex: false, |
| 8 | + onBrokenLinks: "throw", |
| 9 | + onBrokenMarkdownLinks: "warn", |
| 10 | + favicon: "img/fastj/fastj_icon.png", |
| 11 | + organizationName: "fastjengine", |
| 12 | + projectName: "fastjengine.github.io", |
| 13 | + plugins: ["docusaurus-plugin-sass"], |
| 14 | + themeConfig: |
| 15 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 16 | + ({ |
| 17 | + prism: { |
| 18 | + additionalLanguages: ["java", "groovy", "kotlin"], |
| 19 | + }, |
| 20 | + colorMode: { |
| 21 | + defaultMode: "dark", |
| 22 | + disableSwitch: false, |
| 23 | + respectPrefersColorScheme: false, |
| 24 | + switchConfig: { |
| 25 | + darkIcon: "🌙", |
| 26 | + lightIcon: "❄️", |
| 27 | + }, |
| 28 | + }, |
| 29 | + navbar: { |
| 30 | + logo: { |
| 31 | + alt: "FastJ Logo", |
| 32 | + src: "svg/fastj_icon.svg", |
| 33 | + }, |
| 34 | + items: [ |
| 35 | + { |
| 36 | + type: "doc", |
| 37 | + docId: "intro", |
| 38 | + position: "left", |
| 39 | + label: "Wiki", |
| 40 | + }, |
| 41 | + { |
| 42 | + href: "https://javadoc.io/doc/io.github.lucasstarsz.fastj/fastj-library", |
| 43 | + label: "API Docs", |
| 44 | + position: "left", |
| 45 | + }, |
| 46 | + { |
| 47 | + to: "/news", |
| 48 | + label: "News", |
| 49 | + position: "left", |
| 50 | + }, |
| 51 | + { |
| 52 | + href: "https://github.com/fastjengine/FastJ/", |
| 53 | + label: "GitHub", |
| 54 | + position: "right", |
| 55 | + }, |
| 56 | + ], |
| 57 | + }, |
| 58 | + footer: { |
| 59 | + style: "dark", |
| 60 | + links: [ |
| 61 | + { |
| 62 | + title: "Docs", |
| 63 | + items: [ |
| 64 | + { |
| 65 | + label: "Wiki", |
| 66 | + to: "/wiki/intro", |
| 67 | + }, |
| 68 | + { |
| 69 | + label: "API Docs", |
| 70 | + href: "https://api.fastj.dev", |
| 71 | + }, |
| 72 | + ], |
| 73 | + }, |
| 74 | + { |
| 75 | + title: "Community", |
| 76 | + items: [ |
| 77 | + { |
| 78 | + label: "FastJ Discord", |
| 79 | + href: "https://discord.gg/FTWsYVSDv6", |
| 80 | + }, |
| 81 | + ], |
| 82 | + }, |
| 83 | + { |
| 84 | + title: "More", |
| 85 | + items: [ |
| 86 | + { |
| 87 | + label: "News", |
| 88 | + to: "/news", |
| 89 | + }, |
| 90 | + { |
| 91 | + label: "GitHub", |
| 92 | + href: "https://fastj.dev/", |
| 93 | + }, |
| 94 | + ], |
| 95 | + }, |
| 96 | + ], |
| 97 | + copyright: `Copyright © ${new Date().getFullYear()} Andrew Dey. Built with Docusaurus. |
98 | 98 | <br/> |
99 | 99 | Hand + Feather, Windows, macOS, and Linux icons originally made by |
100 | 100 | <a href="https://www.freepik.com" title="Freepik">Freepik</a> |
101 | 101 | from |
102 | 102 | <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a>, |
103 | 103 | and modified by me.`, |
104 | | - }, |
105 | | - }), |
106 | | - presets: [ |
107 | | - [ |
108 | | - "@docusaurus/preset-classic", |
109 | | - /** @type {import('@docusaurus/preset-classic').Options} */ |
110 | | - ({ |
111 | | - theme: { |
112 | | - customCss: require.resolve("./src/css/custom.scss"), |
113 | | - }, |
114 | | - blog: { |
115 | | - path: "news", |
116 | | - routeBasePath: "news", |
117 | | - postsPerPage: 7, |
118 | | - blogTitle: "News", |
119 | | - blogDescription: |
120 | | - "Keep up with the latest news on the FastJ Game Engine.", |
121 | | - editUrl: |
122 | | - "https://github.com/fastjengine/fastjengine.github.io/edit/main/", |
123 | | - showReadingTime: false, |
124 | | - }, |
125 | | - docs: { |
126 | | - path: "wiki", |
127 | | - routeBasePath: "wiki", |
128 | | - editUrl: |
129 | | - "https://github.com/fastjengine/fastjengine.github.io/edit/main/", |
130 | | - }, |
131 | | - }), |
| 104 | + }, |
| 105 | + }), |
| 106 | + presets: [ |
| 107 | + [ |
| 108 | + "@docusaurus/preset-classic", |
| 109 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 110 | + ({ |
| 111 | + theme: { |
| 112 | + customCss: require.resolve("./src/css/custom.scss"), |
| 113 | + }, |
| 114 | + blog: { |
| 115 | + path: "news", |
| 116 | + routeBasePath: "news", |
| 117 | + postsPerPage: 7, |
| 118 | + blogTitle: "News", |
| 119 | + blogDescription: "Keep up with the latest news on the FastJ Game Engine.", |
| 120 | + editUrl: "https://github.com/fastjengine/fastjengine.github.io/edit/main/", |
| 121 | + showReadingTime: false, |
| 122 | + }, |
| 123 | + docs: { |
| 124 | + path: "wiki", |
| 125 | + routeBasePath: "wiki", |
| 126 | + editUrl: "https://github.com/fastjengine/fastjengine.github.io/edit/main/", |
| 127 | + }, |
| 128 | + }), |
| 129 | + ], |
132 | 130 | ], |
133 | | - ], |
134 | 131 | }; |
0 commit comments