Skip to content

Commit 0164153

Browse files
committed
add dev blog
1 parent 6074d02 commit 0164153

File tree

7 files changed

+262
-56
lines changed

7 files changed

+262
-56
lines changed

astro.config.mjs

Lines changed: 68 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -4,61 +4,75 @@ import starlight from "@astrojs/starlight";
44
import tailwindcss from "@tailwindcss/vite";
55
import remarkMath from "remark-math";
66
import rehypeKatex from "rehype-katex";
7+
import starlightBlog from 'starlight-blog'
78

89
// https://astro.build/config
910
export default defineConfig({
10-
markdown: {
11-
remarkPlugins: [remarkMath],
12-
rehypePlugins: [rehypeKatex],
13-
},
14-
integrations: [
15-
starlight({
16-
routeMiddleware: "./src/routeData.ts",
17-
title: "Meantonal",
18-
logo: {
19-
src: "./src/assets/nav-logo.svg",
20-
},
21-
social: [
22-
{
23-
icon: "github",
24-
label: "GitHub",
25-
href: "https://github.com/meantonal",
26-
},
27-
],
28-
editLink: {
29-
baseUrl: "https://github.com/meantonal/documentation/blob/master/",
30-
},
31-
sidebar: [
32-
{
33-
label: "Start Here",
34-
autogenerate: { directory: "start" },
35-
},
36-
{
37-
label: "JS Reference",
38-
// Collapse the group and its autogenerated subgroups by default.
39-
collapsed: true,
40-
autogenerate: { directory: "js" },
41-
},
42-
{
43-
label: "C Reference",
44-
// Collapse the group and its autogenerated subgroups by default.
45-
collapsed: true,
46-
autogenerate: { directory: "c" },
47-
},
48-
{
49-
label: "Learn",
50-
autogenerate: { directory: "learn" },
51-
},
52-
],
53-
components: {
54-
Header: "./src/components/Header.astro",
55-
},
56-
customCss: ["./src/styles/global.css"],
57-
}),
58-
],
59-
vite: {
60-
plugins: [tailwindcss()],
61-
},
62-
site: "http://meantonal.org",
63-
output: "static",
11+
markdown: {
12+
remarkPlugins: [remarkMath],
13+
rehypePlugins: [rehypeKatex],
14+
},
15+
integrations: [
16+
starlight({
17+
routeMiddleware: "./src/routeData.ts",
18+
plugins: [
19+
starlightBlog({
20+
authors: {
21+
hideoo: {
22+
name: 'Hex',
23+
title: 'Core Maintainer',
24+
picture: '/hex.png',
25+
url: 'https://github.com/hex-mt',
26+
},
27+
},
28+
navigation: "none",
29+
})
30+
],
31+
title: "Meantonal",
32+
logo: {
33+
src: "./src/assets/nav-logo.svg",
34+
},
35+
social: [
36+
{
37+
icon: "github",
38+
label: "GitHub",
39+
href: "https://github.com/meantonal",
40+
},
41+
],
42+
editLink: {
43+
baseUrl: "https://github.com/meantonal/documentation/blob/master/",
44+
},
45+
sidebar: [
46+
{
47+
label: "Start Here",
48+
autogenerate: { directory: "start" },
49+
},
50+
{
51+
label: "JS Reference",
52+
// Collapse the group and its autogenerated subgroups by default.
53+
collapsed: true,
54+
autogenerate: { directory: "js" },
55+
},
56+
{
57+
label: "C Reference",
58+
// Collapse the group and its autogenerated subgroups by default.
59+
collapsed: true,
60+
autogenerate: { directory: "c" },
61+
},
62+
{
63+
label: "Learn",
64+
autogenerate: { directory: "learn" },
65+
},
66+
],
67+
components: {
68+
Header: "./src/components/Header.astro",
69+
},
70+
customCss: ["./src/styles/global.css"],
71+
}),
72+
],
73+
vite: {
74+
plugins: [tailwindcss()],
75+
},
76+
site: "http://meantonal.org",
77+
output: "static",
6478
});

package-lock.json

Lines changed: 176 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"rehype-katex": "^7.0.1",
2020
"remark-math": "^6.0.0",
2121
"sharp": "^0.34.2",
22+
"starlight-blog": "^0.24.3",
2223
"tailwindcss": "^4.0.7"
2324
}
2425
}

public/hex.png

58.4 KB
Loading

src/components/Header.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ const shouldRenderSearch =
2222
{shouldRenderSearch && <Search />}
2323
</div>
2424
<div class="sl-hidden md:sl-flex print:hidden right-group">
25-
<div class="nav-links">
25+
<div class="nav-links flex gap-4">
2626
<a href="/start/what-is-meantonal">Docs</a>
27+
<a href="/blog">Blog</a>
2728
</div>
2829
<div class="sl-flex social-icons">
2930
<SocialIcons />

0 commit comments

Comments
 (0)