Skip to content

Commit 4f11204

Browse files
committed
config: remove some links and format js
1 parent 55e62c1 commit 4f11204

1 file changed

Lines changed: 89 additions & 70 deletions

File tree

website/.vuepress/config.js

Lines changed: 89 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -2,79 +2,98 @@
22

33
//const { path } = require("@vuepress/utils");
44

5-
import markdownRawPlugin from 'vite-raw-plugin';
6-
import { defaultTheme } from 'vuepress'
7-
import { viteBundler } from 'vuepress'
8-
import shiki from 'vuepress-plugin-shiki'
5+
import markdownRawPlugin from "vite-raw-plugin";
6+
import { defaultTheme } from "vuepress";
7+
import { viteBundler } from "vuepress";
8+
import shiki from "vuepress-plugin-shiki";
99

1010
module.exports = {
11-
plugins: [
12-
shiki({ 'langs': ['asm'] }),
11+
plugins: [shiki({ langs: ["asm"] })],
12+
title: "gbdev.io",
13+
description: "game boy development scene",
14+
head: [
15+
[
16+
"link",
17+
{
18+
rel: "icon",
19+
type: "image/png",
20+
sizes: "32x32",
21+
href: "/favicons/favicon-32x32.png",
22+
},
1323
],
14-
title: 'gbdev',
15-
description: 'game boy development scene',
16-
head: [
17-
['link', { rel: "icon", type: "image/png", sizes: "32x32", href: "/favicons/favicon-32x32.png" }],
18-
['link', { rel: "icon", type: "image/png", sizes: "16x16", href: "/favicons/favicon-16x16.png" }],
19-
// Default meta values, frontmatter the pages will overwrite this
20-
['meta', { property: 'og:site_name', content: 'gbdev.io' }],
21-
['meta', { name: 'twitter:card', content: 'summary' }],
22-
['meta', { name: 'twitter:site', content: '@gbdev0' }],
23-
['meta', { name: 'og:image', content : 'https://gbdev.io/images/gbinternals.png'}]
24+
[
25+
"link",
26+
{
27+
rel: "icon",
28+
type: "image/png",
29+
sizes: "16x16",
30+
href: "/favicons/favicon-16x16.png",
31+
},
2432
],
25-
//base: "/list",
26-
theme: defaultTheme({
27-
lastUpdated: false,
28-
contributors: false,
29-
editLink: true,
30-
docsRepo: "https://github.com/gbdev/gbdev.github.io",
31-
docsBranch: "dev",
32-
docsDir: "website",
33-
footer: 'test',
34-
navbar: [
35-
{ link: 'https://hh.gbdev.io', text: 'Games' },
36-
{ link: 'https://gbdev.io/pandocs', text: 'Pan Docs' },
37-
{ link: 'https://www.getrevue.co/profile/gbdev', text: 'Newsletter' },
38-
{
39-
text: 'Community',
40-
link: '/',
41-
collapsable: false,
42-
sidebarDepth: 1,
43-
children: [
44-
{ link: '/chat', text: 'Chat' },
45-
{ link: '/contribute', text: 'Contribute' },
46-
{
47-
link: '/gbcompo21',
48-
text: 'GB Competition 2021',
49-
}
50-
]
51-
},
52-
{ link: '/resources', text: 'Resources' },
53-
{
54-
text: 'Guides',
55-
children: [
56-
{ link: '/guides/tools', text: 'Choosing development tools' },
57-
{ link: '/guides/asmstyle', text: 'ASM Style recomendations' },
58-
{ link: '/guides/lyc_timing', text: 'The Timing of LYC STAT Handlers' },
59-
{ link: '/guides/deadcscroll', text: 'Dead C Scroll' },
60-
{ link: 'https://eldred.fr/blog/2022/05/22/prehistorik', text: 'The wonders of Prehistorik Man' },
61-
{ link: '/guides/dma_hijacking', text: 'DMA Hijacking' },
62-
{ link: 'https://eldred.fr/gb-asm-tutorial', text: 'GB ASM Programming Guide' }
63-
]
64-
}
65-
]
66-
}),
33+
// Default meta values, frontmatter the pages will overwrite this
34+
["meta", { property: "og:site_name", content: "gbdev.io" }],
35+
["meta", { name: "twitter:card", content: "summary" }],
36+
["meta", { name: "twitter:site", content: "@gbdev0" }],
37+
[
38+
"meta",
39+
{ name: "og:image", content: "https://gbdev.io/images/gbinternals.png" },
40+
],
41+
],
42+
//base: "/list",
43+
theme: defaultTheme({
44+
lastUpdated: false,
45+
contributors: false,
46+
editLink: true,
47+
docsRepo: "https://github.com/gbdev/gbdev.github.io",
48+
docsBranch: "dev",
49+
docsDir: "website",
50+
footer: "test",
51+
navbar: [
52+
{ link: "https://hh.gbdev.io", text: "Games" },
53+
{ link: "https://gbdev.io/pandocs", text: "Pan Docs" },
54+
{
55+
text: "Community",
56+
link: "/",
57+
collapsable: false,
58+
sidebarDepth: 1,
59+
children: [
60+
{ link: "/chat", text: "Chat" },
61+
{ link: "/contribute", text: "Contribute" },
62+
{
63+
link: "/gbcompo21",
64+
text: "GB Competition 2021",
65+
},
66+
],
67+
},
68+
{ link: "/resources", text: "Resources" },
69+
{
70+
text: "Guides",
71+
children: [
72+
{ link: "/guides/tools", text: "Choosing development tools" },
73+
{ link: "/guides/asmstyle", text: "ASM Style recomendations" },
74+
{
75+
link: "/guides/lyc_timing",
76+
text: "The Timing of LYC STAT Handlers",
77+
},
78+
{ link: "/guides/deadcscroll", text: "Dead C Scroll" },
79+
{
80+
link: "https://eldred.fr/blog/2022/05/22/prehistorik",
81+
text: "The wonders of Prehistorik Man",
82+
},
83+
{ link: "/guides/dma_hijacking", text: "DMA Hijacking" },
84+
],
85+
},
86+
],
87+
}),
6788

68-
bundler: viteBundler({
69-
viteOptions: {
70-
plugins: [
71-
markdownRawPlugin({ fileRegex: /\.asm$/ }),
72-
],
73-
resolve: {
74-
alias: {
75-
'@': __dirname, // Alias to the `.vuepress` folder
76-
},
77-
},
89+
bundler: viteBundler({
90+
viteOptions: {
91+
plugins: [markdownRawPlugin({ fileRegex: /\.asm$/ })],
92+
resolve: {
93+
alias: {
94+
"@": __dirname, // Alias to the `.vuepress` folder
7895
},
79-
}),
80-
}
96+
},
97+
},
98+
}),
99+
};

0 commit comments

Comments
 (0)