Repository navigation
Expand file tree
/
Copy pathastro.config.mjs
More file actions
99 lines (97 loc) · 3.37 KB
/
Copy pathastro.config.mjs
File metadata and controls
99 lines (97 loc) · 3.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import svelte from "@astrojs/svelte";
const site = "https://robostack.github.io";
const ogImage = new URL("/og.png", site).href;
export default defineConfig({
site,
// Published URLs are `GettingStarted.html`, not `GettingStarted/`. Don't change this.
build: { format: "file" },
integrations: [
starlight({
title: "RoboStack",
description:
"Run any ROS distro in an isolated, per-project environment. On Linux, macOS and Windows.",
favicon: "/icon.svg",
head: [
{
tag: "link",
attrs: { rel: "icon", href: "/favicon.ico", sizes: "32x32" },
},
{
tag: "link",
attrs: { rel: "apple-touch-icon", href: "/apple-touch-icon.png" },
},
{ tag: "meta", attrs: { property: "og:image", content: ogImage } },
{ tag: "meta", attrs: { property: "og:image:width", content: "1200" } },
{ tag: "meta", attrs: { property: "og:image:height", content: "630" } },
{
tag: "meta",
attrs: {
property: "og:image:alt",
content:
"RoboStack - Manage ROS with ease. Any ROS distro, in an isolated per-project environment, on Linux, macOS and Windows.",
},
},
],
social: [
{
icon: "github",
label: "GitHub",
href: "https://github.com/RoboStack/robostack.github.io",
},
{
icon: "discord",
label: "Discord",
href: "https://discord.gg/kKV8ZxyzY4",
},
],
editLink: {
baseUrl: "https://github.com/RoboStack/robostack.github.io/edit/main/",
},
customCss: ["./src/styles/custom.css"],
routeMiddleware: "./src/routeData.ts",
components: {
Header: "./src/components/Header.astro",
Sidebar: "./src/components/Sidebar.astro",
SiteTitle: "./src/components/SiteTitle.astro",
PageTitle: "./src/components/PageTitle.astro",
},
sidebar: [
// One top-level group per header tab (src/components/Header.astro);
// the Sidebar override shows only the current page's group, so these
// group labels never render. List each page in exactly one group, the
// one whose tab nav.ts highlights for it, so the sidebar and the
// header tabs never disagree. Slugs are set explicitly in each page's
// frontmatter to keep the published mixed-case URLs
// (`GettingStarted.html`, `FAQ.html`, ...).
{
label: "Docs",
items: [
{ label: "Getting Started", slug: "GettingStarted" },
{
label: "Alternative to Pixi",
items: [
{ label: "Micromamba", slug: "micromamba" },
{ label: "Conda", slug: "conda" },
],
},
{ label: "JupyterRos", slug: "JupyterRos" },
{ label: "FAQ", slug: "FAQ" },
{ label: "RoboStack monorepo", slug: "Monorepo" },
],
},
{
label: "Community",
items: [
{ label: "Community Meeting", slug: "CommunityMeeting" },
{ label: "Support", slug: "support" },
{ label: "Contributing", slug: "Contributing" },
],
},
],
}),
svelte(),
],
});