mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-31 13:28:42 -04:00
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.
29 lines
793 B
TypeScript
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)};
|
|
}
|