/ opencodehub-docs / astro.config.mjs
swadhinbiswas ✨ feat(cli): harden auth, TLS, retries, and repo parsing · 1/22/2026
bdf41c6
116 lines · 4.0 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// @ts-check
import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";

// https://astro.build/config
export default defineConfig({
  integrations: [
    starlight({
      title: "OpenCodeHub Docs",
      logo: {
        light: "./src/assets/logo-light.png",
        dark: "./src/assets/logo-dark.png",
        replacesTitle: false,
      },
      customCss: ["./src/custom.css"],
      components: {
        Hero: "./src/components/StarlightHero.astro",
      },
      social: [
        {
          icon: "github",
          label: "GitHub",
          href: "https://github.com/swadhinbiswas/OpencodeHub",
        },
      ],
      sidebar: [
        {
          label: "Getting Started",
          items: [
            { label: "Installation", slug: "getting-started/installation" },
            { label: "Quick Start", slug: "getting-started/quick-start" },
            {
              label: "First Repository",
              slug: "getting-started/first-repository",
            },
          ],
        },
        {
          label: "Guides",
          items: [
            { label: "Team Workflows", slug: "guides/team-workflows" },
            { label: "Branch Protection", slug: "guides/branch-protection" },
            { label: "Webhooks", slug: "guides/webhooks" },
            { label: "Storage Adapters", slug: "guides/storage-adapters" },
          ],
        },
        {
          label: "CLI",
          items: [
            { label: "CLI Overview", slug: "reference/cli-overview" },
            { label: "Auth & Config", slug: "reference/cli-auth-config" },
            { label: "Core Commands", slug: "reference/cli-core-commands" },
            { label: "Stack Workflows", slug: "reference/cli-stack-workflows" },
            { label: "Merge Queue", slug: "reference/cli-merge-queue" },
            {
              label: "Automation & Insights",
              slug: "reference/cli-automation-insights",
            },
            { label: "CLI Command Reference", slug: "reference/cli-commands" },
          ],
        },
        {
          label: "Features",
          items: [
            { label: "Stacked PRs", slug: "features/stacked-prs" },
            { label: "AI Review", slug: "features/ai-review" },
            { label: "Merge Queue", slug: "features/merge-queue" },
            { label: "Automation Rules", slug: "features/automations" },
            { label: "PR Inbox", slug: "features/inbox" },
            { label: "Developer Metrics", slug: "features/developer-metrics" },
            { label: "Notifications", slug: "features/notifications" },
            { label: "CI/CD Actions", slug: "features/ci-actions" },
            { label: "CLI Workflows", slug: "features/cli" },
          ],
        },
        {
          label: "Tutorials",
          autogenerate: { directory: "tutorials" },
        },
        {
          label: "Deployment",
          items: [
            { label: "Docker", slug: "administration/deploy-docker" },
            { label: "Podman", slug: "administration/deploy-podman" },
            { label: "Nginx Proxy", slug: "administration/deploy-nginx" },
            { label: "cPanel", slug: "administration/deploy-cpanel" },
            { label: "CyberPanel", slug: "administration/deploy-cyberpanel" },
            { label: "Cloudflare", slug: "administration/deploy-cloudflare" },
          ],
        },
        {
          label: "Administration",
          items: [
            { label: "Production Guide", slug: "administration/deployment" },
            { label: "Configuration", slug: "administration/configuration" },
            { label: "Monitoring", slug: "administration/monitoring" },
            { label: "Security", slug: "administration/security" },
          ],
        },
        {
          label: "API Reference",
          autogenerate: { directory: "api" },
        },
        {
          label: "Development",
          autogenerate: { directory: "development" },
        },
        {
          label: "Reference",
          autogenerate: { directory: "reference" },
        },
      ],
    }),
  ],
});