Skip to content

Commit 260f7c5

Browse files
committed
setup & run prettier
1 parent 613fed1 commit 260f7c5

20 files changed

+959
-764
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules
2+
/build
3+
.docusaurus

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 4,
4+
"semi": true,
5+
"singleQuote": false,
6+
"printWidth": 120,
7+
"endOfLine": "auto",
8+
"importOrder": ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"],
9+
"importOrderSeparation": true
10+
}

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
2+
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
33
};

docusaurus.config.js

Lines changed: 121 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -1,134 +1,131 @@
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: "/",
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.
9898
<br/>
9999
Hand + Feather, Windows, macOS, and Linux icons originally made by
100100
<a href="https://www.freepik.com" title="Freepik">Freepik</a>
101101
from
102102
<a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a>,
103103
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+
],
132130
],
133-
],
134131
};

0 commit comments

Comments
 (0)