Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] docs: keep docs for both git and stable version #182

Merged
merged 3 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: "release/overview",
badge: { text: "Stable", variant: "default" },
icon: "seti:todo",
items: [
{
label: "Overview",
link: "release/overview",
},
{
label: "Installation",
link: "release/installation",
},
{
label: "Try without installing",
link: "release/try-without-install",
},
{
label: "Configuration",
autogenerate: {
directory: "release/configuration",
},
},
{
label: "Guides",
autogenerate: {
directory: "release/guides",
},
},
{
label: "Reference",
autogenerate: {
directory: "release/reference",
},
},
{
label: "Theme gallery",
autogenerate: {
directory: "release/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
Loading