Skip to content

Commit

Permalink
initial versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mierak committed Dec 21, 2024
1 parent 7935d12 commit 160278f
Show file tree
Hide file tree
Showing 71 changed files with 3,376 additions and 847 deletions.
133 changes: 94 additions & 39 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import starlightLinksValidator from "starlight-links-validator";
import starlightSidebarTopics from "starlight-sidebar-topics";

import react from "@astrojs/react";

Expand All @@ -14,51 +15,105 @@ export default defineConfig({
integrations: [
starlight({
title: "rmpc",
plugins: [starlightLinksValidator()],
plugins: [
starlightLinksValidator(),
starlightSidebarTopics([
{
label: "Latest git",
link: "next/overview",
icon: "seti:git",
badge: { text: "Dev", variant: "caution" },
items: [
{
label: "Overview",
link: "next/overview",
},
{
label: "Installation",
link: "next/installation",
},
{
label: "Try without installing",
link: "next/try-without-install",
},
{
label: "Configuration",
autogenerate: {
directory: "next/configuration",
},
},
{
label: "Guides",
autogenerate: {
directory: "next/guides",
},
},
{
label: "Reference",
autogenerate: {
directory: "next/reference",
},
},
{
label: "Theme gallery",
autogenerate: {
directory: "next/themes",
},
},
],
},
{
label: "Release (v0.7.0)",
link: "latest/overview",
badge: { text: "Stable", variant: "default" },
icon: "seti:todo",
items: [
{
label: "Overview",
link: "latest/overview",
},
{
label: "Installation",
link: "latest/installation",
},
{
label: "Try without installing",
link: "latest/try-without-install",
},
{
label: "Configuration",
autogenerate: {
directory: "latest/configuration",
},
},
{
label: "Guides",
autogenerate: {
directory: "latest/guides",
},
},
{
label: "Reference",
autogenerate: {
directory: "latest/reference",
},
},
{
label: "Theme gallery",
autogenerate: {
directory: "latest/themes",
},
},
],
},
]),
],
editLink: {
baseUrl: "https://github.com/mierak/rmpc/edit/master/docs/",
},
social: {
github: "https://github.com/mierak/rmpc",
},
sidebar: [
{
label: "Overview",
link: "overview",
},
{
label: "Installation",
link: "installation",
},
{
label: "Try without installing",
link: "try-without-install",
},
{
label: "Configuration",
autogenerate: {
directory: "configuration",
},
},
{
label: "Guides",
autogenerate: {
directory: "guides",
},
},
{
label: "Reference",
autogenerate: {
directory: "reference",
},
},
{
label: "Theme gallery",
autogenerate: {
directory: "themes",
},
},
],
customCss: ["./src/styles/custom.css"],
components: {
Hero: "./src/components/Hero.astro",
Expand Down
Loading

0 comments on commit 160278f

Please sign in to comment.