Files
spacedrive/docs/lib/shared.ts
T
Jamie Pine 2d380fd264 Move docs to Fumadocs and rewrite the core docs
Replaces the Mintlify setup (mint.json, docs.json, snippets) with a
standalone Fumadocs app in docs/: Next.js app router, meta.json nav per
section, its own bun install. Run with `just dev-docs`.

Content pass alongside the migration: core architecture, data model,
CLI, and networking pages rewritten around the daemon/source-store/
library split, new product-direction.mdx defining the product boundary,
new drive-catalog plan, and the physical-drives plan updated to
reference it. Whitepaper page retired.
2026-09-15 00:59:30 -07:00

29 lines
793 B
TypeScript

import {createGetUrl} from 'fumadocs-core/source';
export const appName = 'Spacedrive';
export const docsRoute = '/';
export const docsImageRoute = '/og/docs';
export const docsContentRoute = '/llms.mdx/docs';
export const gitConfig = {
user: 'spacedriveapp',
repo: 'spacedrive',
branch: 'main'
};
const getContentUrl = createGetUrl(docsContentRoute);
export function getPageMarkdownUrl(page: {slugs: string[]; locale?: string}) {
const segments = [...page.slugs, 'content.md'];
return {segments, url: getContentUrl(segments, page.locale)};
}
const getImageUrl = createGetUrl(docsImageRoute);
export function getPageImageUrl(page: {slugs: string[]; locale?: string}) {
const segments = [...page.slugs, 'image.png'];
return {segments, url: getImageUrl(segments, page.locale)};
}