-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
256 lines (244 loc) · 9.62 KB
/
Copy pathdocusaurus.config.ts
File metadata and controls
256 lines (244 loc) · 9.62 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'rossoctl',
tagline:
'A framework-neutral, scalable, secure platform for deploying, securing, and governing AI agents.',
favicon: 'img/favicon.svg',
// Note: the `future.v4`/`experimental_faster` (Rspack) bundler is intentionally
// NOT enabled — it requires the extra @docusaurus/faster native package. The
// default webpack bundler keeps this setup minimal and portable. Re-add
// `@docusaurus/faster` + `future: { experimental_faster: true }` if build
// speed becomes a concern.
// Published to GitHub Pages at the custom domain https://www.rossoctl.dev
// (HTTPS enforced; the domain lives in static/CNAME). A custom domain serves
// at the root, so baseUrl is '/'. Netlify PR previews also serve at the root;
// DEPLOY_PRIME_URL sets the preview's canonical url.
url: process.env.DEPLOY_PRIME_URL || 'https://www.rossoctl.dev',
baseUrl: '/',
organizationName: 'rossoctl', // GitHub org that owns the repo
projectName: '.github', // repo name
// Relaxed to 'warn' so the docs synced from rossoctl/rossoctl:docs/ (which
// still contain some cross-repo relative links) don't fail the Pages build.
// Tighten to 'throw' once the upstream docs links are cleaned up.
onBrokenLinks: 'warn',
markdown: {
// 'detect' = .md files render as (lenient) CommonMark, .mdx as MDX. Lets the
// synced upstream GitHub-flavored .md render without MDX parse errors on bare
// '<', '{', or raw HTML. Our own .mdx pages keep MDX powers.
format: 'detect',
mermaid: true, // render ```mermaid fenced blocks as diagrams (used by the docs)
hooks: {
onBrokenMarkdownLinks: 'warn',
},
},
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
{
// === TEMPORARY: docs hidden until ready for public launch ===
// The docs aren't ready to go public yet; the landing page and other
// pages ship first. `docs: false` stops Docusaurus from generating any
// /docs/* routes at all, so they're unreachable by direct URL, search,
// and sitemap — not merely hidden from the navbar. Doc authoring
// continues upstream in rossoctl/rossoctl:docs/.
// TO RESTORE: delete `docs: false` and uncomment the block below.
// docs: false,
docs: {
// Read docs from a local docs/ folder that mirrors the source of
// truth 1:1. This folder is NOT committed — scripts/sync-docs.sh syncs
// it from rossoctl/rossoctl:docs/ at build time. routeBasePath keeps
// the public URLs at /docs/* and the navbar label is "Docs".
path: 'docs',
routeBasePath: 'docs',
sidebarPath: './sidebars.ts',
// "Edit this page" points at the source of truth upstream.
editUrl: 'https://github.com/rossoctl/rossoctl/tree/main/docs/',
// Versioning: the current (un-versioned) docs are the in-progress
// "dev" docs, shown in the header version dropdown. No released
// versions exist yet. When the first is cut
// (`npm run docusaurus docs:version 0.7`), it becomes the default
// "latest" and "dev" stays as the work-in-progress version.
exclude: [
// Internal working notes — not part of the published site.
'superpowers/**',
],
versions: {
current: {
label: 'dev',
},
},
},
// Blog is an EXTERNAL Medium link (see navbar) — no local blog.
blog: false,
theme: {
customCss: './src/css/custom.css',
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
filename: 'sitemap.xml',
},
} satisfies Preset.Options,
],
],
plugins: [
// Offline, build-time full-text search. No external service.
[require.resolve('docusaurus-lunr-search'), {languages: ['en']}],
// Dedicated docs instance for the Contributing section, so /contributing
// renders with the SAME layout as docs (breadcrumb, content position,
// typography) instead of a bespoke standalone page. Same pattern llm-d
// uses for its Community section.
[
'@docusaurus/plugin-content-docs',
{
id: 'contributing',
path: 'contributing',
routeBasePath: 'contributing',
sidebarPath: './sidebarsContributing.ts',
editUrl: 'https://github.com/Ibrahim2595/rossoctl-website/tree/main/',
},
],
// "Ecosystem Guide" — a faithful recreation of rossoctl/ecosystem-guide,
// rebranded to rossoctl. This instance IS the site landing experience:
// routeBasePath '/' serves it at the site root, and welcome.md (slug '/')
// is the homepage, reproducing the upstream Welcome/README page inside the
// normal docs layout (left sidebar + content), NOT a custom hero. The
// sidebar groups mirror that repo's mkdocs.yml nav. Pages: About,
// Onboarding, Key Dates, Content, Resources.
[
'@docusaurus/plugin-content-docs',
{
id: 'ecosystem',
path: 'ecosystem',
routeBasePath: '/',
sidebarPath: './sidebarsEcosystem.ts',
editUrl:
'https://github.com/rossoctl/ecosystem-guide/tree/main/content/',
},
],
],
// Enables Mermaid diagram rendering (paired with markdown.mermaid: true).
themes: ['@docusaurus/theme-mermaid'],
themeConfig: {
image: 'img/logo.svg',
colorMode: {
respectPrefersColorScheme: true,
},
navbar: {
title: 'rossoctl',
logo: {
alt: 'rossoctl',
src: 'img/logo.svg',
// clicking the logo/title goes to '/', the landing page
},
items: [
{
type: 'docSidebar',
sidebarId: 'docsSidebar',
position: 'left',
label: 'Documentation',
},
{
// Single "Contributing" page rendered from the contributing docs
// instance (docs layout + breadcrumbs). Content mirrors rossoctl's
// CONTRIBUTING.md.
type: 'docSidebar',
sidebarId: 'contributingSidebar',
docsPluginId: 'contributing',
position: 'left',
label: 'Contributing',
},
{
// EXTERNAL blog — opens in a new tab.
href: 'https://medium.com/rossoctl-the-agentic-platform',
label: 'Blog',
position: 'left',
target: '_blank',
rel: 'noopener noreferrer',
},
{
// EXTERNAL YouTube channel (demos + talks) — opens in a new tab.
href: 'https://www.youtube.com/@Rossoctl',
label: 'Videos',
position: 'left',
target: '_blank',
rel: 'noopener noreferrer',
},
// === TEMPORARY: "dev" version dropdown hidden until docs go public. ===
// It only links into /docs/*, so it's removed while docs are unpublished.
// TO RESTORE: uncomment this item (requires re-enabling `docs` in the preset above).
/* {
// Docs version selector, on the left after Blog. Rendered as an
// explicit dropdown (caret + menu) because Docusaurus collapses its
// built-in `docsVersionDropdown` to a plain link while only one
// version exists. Selecting "dev" opens the first docs page
// (Getting Started). When v0.7 is cut, replace this with
// `{ type: 'docsVersionDropdown', position: 'left' }` — it will then
// auto-list v0.7 (latest) and dev.
type: 'dropdown',
label: 'dev',
position: 'left',
items: [
{
label: 'dev',
to: '/docs/category/getting-started',
},
],
}, */
{
// Live GitHub star count (icon + "N stars"), fetched client-side.
// See src/components/GitHubStars + theme/NavbarItem/ComponentTypes.
type: 'custom-gitHubStars',
position: 'right',
repo: 'rossoctl/rossoctl',
},
{
// Slack icon + small "Join Slack" label (see .header-slack-link in custom.css).
href: 'https://ibm.biz/rossoctl-slack',
position: 'right',
className: 'header-slack-link',
label: 'Join Slack',
'aria-label': 'Slack community',
},
],
},
footer: {
style: 'dark',
logo: {
alt: 'rossoctl',
src: 'img/logo.svg',
width: 22,
height: 22,
},
// Design footer: brand + a left-aligned row of doc links, no copyright.
// (The mock's "Intro to llm-d" is an llm-d template leftover — replaced
// with rossoctl-appropriate doc links.)
links: [
{
items: [
// === TEMPORARY: docs footer links hidden until docs go public. ===
// TO RESTORE: uncomment these four links.
// {label: 'Documentation', to: '/docs/category/getting-started'},
// {label: 'Quickstart', to: '/docs/overview/quickstart'},
// {label: 'Architecture', to: '/docs/concepts/architecture'},
// {label: 'Guides', to: '/docs/category/guides'},
{label: 'Contributing', to: '/contributing'},
],
},
],
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['bash', 'yaml', 'json', 'go'],
},
} satisfies Preset.ThemeConfig,
};
export default config;