mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
Adds the Hanzo Platform documentation app with 47 MDX pages covering: - Getting Started (overview, quickstart, concepts, CLI) - Deployments (Kubernetes, Docker Swarm, Compose, Git, Registry, Domains) - Clusters (fleet, registration, provisioning, node pools) - Virtual Machines (AWS, DigitalOcean, Hetzner, volumes, terminal) - Access Control (organizations, roles, permissions, invitations) - Pricing (plans, compute, storage) - API Reference (authentication, organizations, clusters, containers, VMs) Also adds team app and K8s deployment manifest for platform-site.
70 lines
1.9 KiB
TypeScript
70 lines
1.9 KiB
TypeScript
import {
|
|
applyMdxPreset,
|
|
defineConfig,
|
|
defineDocs,
|
|
frontmatterSchema,
|
|
metaSchema,
|
|
} from '@hanzo/docs-mdx/config';
|
|
import { z } from 'zod';
|
|
import jsonSchema from '@hanzo/docs-mdx/plugins/json-schema';
|
|
import lastModified from '@hanzo/docs-mdx/plugins/last-modified';
|
|
|
|
export const docs = defineDocs({
|
|
docs: {
|
|
schema: frontmatterSchema.extend({
|
|
index: z.boolean().default(false),
|
|
}),
|
|
postprocess: {
|
|
includeProcessedMarkdown: true,
|
|
extractLinkReferences: true,
|
|
},
|
|
async: true,
|
|
async mdxOptions(environment) {
|
|
const { rehypeCodeDefaultOptions } = await import('@hanzo/docs-core/mdx-plugins/rehype-code');
|
|
const { remarkStructureDefaultOptions } =
|
|
await import('@hanzo/docs-core/mdx-plugins/remark-structure');
|
|
const { remarkSteps } = await import('@hanzo/docs-core/mdx-plugins/remark-steps');
|
|
|
|
return applyMdxPreset({
|
|
remarkStructureOptions: {
|
|
types: [...remarkStructureDefaultOptions.types, 'code'],
|
|
},
|
|
rehypeCodeOptions: {
|
|
langs: ['ts', 'js', 'rust', 'python', 'go', 'bash', 'json', 'yaml', 'toml', 'jsonc', 'shell', 'powershell', 'dockerfile'],
|
|
inline: 'tailing-curly-colon',
|
|
themes: {
|
|
light: 'github-light',
|
|
dark: 'github-dark',
|
|
},
|
|
transformers: [
|
|
...(rehypeCodeDefaultOptions.transformers ?? []),
|
|
],
|
|
},
|
|
remarkCodeTabOptions: {
|
|
parseMdx: true,
|
|
},
|
|
remarkNpmOptions: {
|
|
persist: {
|
|
id: 'package-manager',
|
|
},
|
|
},
|
|
remarkPlugins: [remarkSteps],
|
|
})(environment);
|
|
},
|
|
},
|
|
meta: {
|
|
schema: metaSchema.extend({
|
|
description: z.string().optional(),
|
|
}),
|
|
},
|
|
});
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
jsonSchema({
|
|
insert: true,
|
|
}),
|
|
lastModified(),
|
|
],
|
|
});
|