Skip to content

Commit 7853499

Browse files
authored
Merge pull request #10 from yiliansource/fix/page-metas
closes #6, fixes site config
2 parents bcee50a + 3230844 commit 7853499

File tree

3 files changed

+61
-99
lines changed

3 files changed

+61
-99
lines changed

docusaurus.config.js

Lines changed: 60 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,97 @@
11
/** @type {import('@docusaurus/types').DocusaurusConfig} */
22
module.exports = {
3-
title: 'FastJ',
4-
tagline: 'The open-source, 2D Java game engine.',
5-
url: 'https://tech.fastj',
6-
baseUrl: '/',
3+
title: "FastJ",
4+
tagline: "The open-source, 2D Java game engine.",
5+
url: "https://tech.fastj",
6+
baseUrl: "/",
77
noIndex: false,
8-
onBrokenLinks: 'throw',
9-
onBrokenMarkdownLinks: 'warn',
10-
favicon: 'img/fastj/fastj_icon.png',
11-
organizationName: 'fastjengine', // Usually your GitHub org/user name.
12-
projectName: 'fastjengine.github.io', // Usually your repo name.
8+
onBrokenLinks: "throw",
9+
onBrokenMarkdownLinks: "warn",
10+
favicon: "img/fastj/fastj_icon.png",
11+
organizationName: "fastjengine",
12+
projectName: "fastjengine.github.io",
1313
themeConfig: {
1414
prism: {
15-
additionalLanguages: ['java', 'groovy', 'kotlin'],
15+
additionalLanguages: ["java", "groovy", "kotlin"],
1616
},
1717
colorMode: {
18-
defaultMode: 'dark',
18+
defaultMode: "dark",
1919
disableSwitch: false,
2020
respectPrefersColorScheme: false,
2121
switchConfig: {
22-
darkIcon: '🌙',
23-
lightIcon: '❄️'
24-
}
22+
darkIcon: "🌙",
23+
lightIcon: "❄️",
24+
},
2525
},
2626
navbar: {
2727
logo: {
28-
alt: 'FastJ Logo',
29-
src: 'svg/fastj_icon.svg',
28+
alt: "FastJ Logo",
29+
src: "svg/fastj_icon.svg",
3030
},
3131
items: [
3232
{
33-
type: 'doc',
34-
docId: 'intro',
35-
position: 'left',
36-
label: 'Wiki',
33+
type: "doc",
34+
docId: "intro",
35+
position: "left",
36+
label: "Wiki",
3737
},
3838
{
39-
href: 'https://javadoc.io/doc/io.github.lucasstarsz.fastj/fastj-library',
40-
label: 'API Docs',
41-
position: 'left',
39+
href: "https://javadoc.io/doc/io.github.lucasstarsz.fastj/fastj-library",
40+
label: "API Docs",
41+
position: "left",
4242
},
43-
{
44-
to: '/news',
45-
label: 'News',
46-
position: 'left'
43+
{
44+
to: "/news",
45+
label: "News",
46+
position: "left",
4747
},
4848
{
49-
href: 'https://github.com/fastjengine/FastJ/',
50-
label: 'GitHub',
51-
position: 'right',
49+
href: "https://github.com/fastjengine/FastJ/",
50+
label: "GitHub",
51+
position: "right",
5252
},
5353
],
5454
},
5555
footer: {
56-
style: 'dark',
56+
style: "dark",
5757
links: [
5858
{
59-
title: 'Docs',
59+
title: "Docs",
6060
items: [
6161
{
62-
label: 'Wiki',
63-
to: '/wiki/intro',
62+
label: "Wiki",
63+
to: "/wiki/intro",
6464
},
6565
{
66-
label: 'API Docs',
67-
href: 'https://api.fastj.dev',
66+
label: "API Docs",
67+
href: "https://api.fastj.dev",
6868
},
6969
],
7070
},
7171
{
72-
title: 'Community',
72+
title: "Community",
7373
items: [
74-
// {
75-
// label: 'Stack Overflow',
76-
// href: 'https://stackoverflow.com/questions/tagged/docusaurus',
77-
// },
7874
{
79-
label: 'FastJ Discord',
80-
href: 'https://discord.gg/FTWsYVSDv6',
75+
label: "FastJ Discord",
76+
href: "https://discord.gg/FTWsYVSDv6",
8177
},
82-
// {
83-
// label: 'Twitter',
84-
// href: 'https://twitter.com/docusaurus',
85-
// },
8678
],
8779
},
8880
{
89-
title: 'More',
81+
title: "More",
9082
items: [
9183
{
92-
label: 'News',
93-
to: '/news',
84+
label: "News",
85+
to: "/news",
9486
},
9587
{
96-
label: 'GitHub',
97-
href: 'https://fastj.dev/',
88+
label: "GitHub",
89+
href: "https://fastj.dev/",
9890
},
9991
],
10092
},
10193
],
102-
copyright:
103-
`Copyright © ${new Date().getFullYear()} Andrew Dey. Built with Docusaurus.
94+
copyright: `Copyright © ${new Date().getFullYear()} Andrew Dey. Built with Docusaurus.
10495
<br/>
10596
Hand + Feather, Windows, macOS, and Linux icons originally made by
10697
<a href="https://www.freepik.com" title="Freepik">Freepik</a>
@@ -111,33 +102,28 @@ module.exports = {
111102
},
112103
presets: [
113104
[
114-
'@docusaurus/preset-classic',
105+
"@docusaurus/preset-classic",
115106
{
116-
wiki: {
117-
sidebarPath: require.resolve('./sidebars.js'),
118-
// Please change this to your repo.
119-
editUrl:
120-
'https://github.com/fastjengine/FastJ/',
121-
},
122-
news: {
123-
showReadingTime: true,
124-
// Please change this to your repo.
125-
editUrl:
126-
'https://github.com/fastjengine/FastJ/',
127-
},
128107
theme: {
129-
customCss: require.resolve('./src/css/custom.css'),
108+
customCss: require.resolve("./src/css/custom.css"),
130109
},
131110
blog: {
132-
path: 'news',
133-
routeBasePath: 'news',
111+
path: "news",
112+
routeBasePath: "news",
134113
postsPerPage: 7,
135-
blogDescription: 'Keep up with the latest news on the FastJ Game Engine.',
114+
blogTitle: "News",
115+
blogDescription:
116+
"Keep up with the latest news on the FastJ Game Engine.",
117+
editUrl:
118+
"https://github.com/fastjengine/fastjengine.github.io/edit/main/",
119+
showReadingTime: false,
136120
},
137121
docs: {
138-
path: 'wiki',
139-
routeBasePath: 'wiki',
140-
}
122+
path: "wiki",
123+
routeBasePath: "wiki",
124+
editUrl:
125+
"https://github.com/fastjengine/fastjengine.github.io/edit/main/",
126+
},
141127
},
142128
],
143129
],

sidebars.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

wiki/intro.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
sidebar_position: 1
33
sidebar_label: Intro to FastJ
44
hide_title: true
5+
title: Intro
56
---
67

78
<div align="center">

0 commit comments

Comments
 (0)