@@ -4,61 +4,75 @@ import starlight from "@astrojs/starlight";
44import tailwindcss from "@tailwindcss/vite" ;
55import remarkMath from "remark-math" ;
66import rehypeKatex from "rehype-katex" ;
7+ import starlightBlog from 'starlight-blog'
78
89// https://astro.build/config
910export 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} ) ;
0 commit comments