1
1
import { defineConfig } from "astro/config" ;
2
2
import starlight from "@astrojs/starlight" ;
3
3
import starlightLinksValidator from "starlight-links-validator" ;
4
+ import starlightSidebarTopics from "starlight-sidebar-topics" ;
4
5
5
6
import react from "@astrojs/react" ;
6
7
@@ -14,51 +15,105 @@ export default defineConfig({
14
15
integrations : [
15
16
starlight ( {
16
17
title : "rmpc" ,
17
- plugins : [ starlightLinksValidator ( ) ] ,
18
+ plugins : [
19
+ starlightLinksValidator ( ) ,
20
+ starlightSidebarTopics ( [
21
+ {
22
+ label : "Latest git" ,
23
+ link : "next/overview" ,
24
+ icon : "seti:git" ,
25
+ badge : { text : "Dev" , variant : "caution" } ,
26
+ items : [
27
+ {
28
+ label : "Overview" ,
29
+ link : "next/overview" ,
30
+ } ,
31
+ {
32
+ label : "Installation" ,
33
+ link : "next/installation" ,
34
+ } ,
35
+ {
36
+ label : "Try without installing" ,
37
+ link : "next/try-without-install" ,
38
+ } ,
39
+ {
40
+ label : "Configuration" ,
41
+ autogenerate : {
42
+ directory : "next/configuration" ,
43
+ } ,
44
+ } ,
45
+ {
46
+ label : "Guides" ,
47
+ autogenerate : {
48
+ directory : "next/guides" ,
49
+ } ,
50
+ } ,
51
+ {
52
+ label : "Reference" ,
53
+ autogenerate : {
54
+ directory : "next/reference" ,
55
+ } ,
56
+ } ,
57
+ {
58
+ label : "Theme gallery" ,
59
+ autogenerate : {
60
+ directory : "next/themes" ,
61
+ } ,
62
+ } ,
63
+ ] ,
64
+ } ,
65
+ {
66
+ label : "Release (v0.7.0)" ,
67
+ link : "latest/overview" ,
68
+ badge : { text : "Stable" , variant : "default" } ,
69
+ icon : "seti:todo" ,
70
+ items : [
71
+ {
72
+ label : "Overview" ,
73
+ link : "latest/overview" ,
74
+ } ,
75
+ {
76
+ label : "Installation" ,
77
+ link : "latest/installation" ,
78
+ } ,
79
+ {
80
+ label : "Try without installing" ,
81
+ link : "latest/try-without-install" ,
82
+ } ,
83
+ {
84
+ label : "Configuration" ,
85
+ autogenerate : {
86
+ directory : "latest/configuration" ,
87
+ } ,
88
+ } ,
89
+ {
90
+ label : "Guides" ,
91
+ autogenerate : {
92
+ directory : "latest/guides" ,
93
+ } ,
94
+ } ,
95
+ {
96
+ label : "Reference" ,
97
+ autogenerate : {
98
+ directory : "latest/reference" ,
99
+ } ,
100
+ } ,
101
+ {
102
+ label : "Theme gallery" ,
103
+ autogenerate : {
104
+ directory : "latest/themes" ,
105
+ } ,
106
+ } ,
107
+ ] ,
108
+ } ,
109
+ ] ) ,
110
+ ] ,
18
111
editLink : {
19
112
baseUrl : "https://github.com/mierak/rmpc/edit/master/docs/" ,
20
113
} ,
21
114
social : {
22
115
github : "https://github.com/mierak/rmpc" ,
23
116
} ,
24
- sidebar : [
25
- {
26
- label : "Overview" ,
27
- link : "overview" ,
28
- } ,
29
- {
30
- label : "Installation" ,
31
- link : "installation" ,
32
- } ,
33
- {
34
- label : "Try without installing" ,
35
- link : "try-without-install" ,
36
- } ,
37
- {
38
- label : "Configuration" ,
39
- autogenerate : {
40
- directory : "configuration" ,
41
- } ,
42
- } ,
43
- {
44
- label : "Guides" ,
45
- autogenerate : {
46
- directory : "guides" ,
47
- } ,
48
- } ,
49
- {
50
- label : "Reference" ,
51
- autogenerate : {
52
- directory : "reference" ,
53
- } ,
54
- } ,
55
- {
56
- label : "Theme gallery" ,
57
- autogenerate : {
58
- directory : "themes" ,
59
- } ,
60
- } ,
61
- ] ,
62
117
customCss : [ "./src/styles/custom.css" ] ,
63
118
components : {
64
119
Hero : "./src/components/Hero.astro" ,
0 commit comments