Skip to content

Commit 160278f

Browse files
committed
initial versioning
1 parent 7935d12 commit 160278f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+3376
-847
lines changed

docs/astro.config.mjs

+94-39
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineConfig } from "astro/config";
22
import starlight from "@astrojs/starlight";
33
import starlightLinksValidator from "starlight-links-validator";
4+
import starlightSidebarTopics from "starlight-sidebar-topics";
45

56
import react from "@astrojs/react";
67

@@ -14,51 +15,105 @@ export default defineConfig({
1415
integrations: [
1516
starlight({
1617
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+
],
18111
editLink: {
19112
baseUrl: "https://github.com/mierak/rmpc/edit/master/docs/",
20113
},
21114
social: {
22115
github: "https://github.com/mierak/rmpc",
23116
},
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-
],
62117
customCss: ["./src/styles/custom.css"],
63118
components: {
64119
Hero: "./src/components/Hero.astro",

0 commit comments

Comments
 (0)