Files
orca/docs/site/versioning.config.ts
mirror 34fa2cd5ca
Skill update round trip / roundtrip (false, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, latest) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
source snapshot 2026-09-02
2026-09-02 02:03:16 +08:00

33 lines
970 B
TypeScript

/**
* The single source of truth for the public docs version layout.
*
* Keep the current docs in `content/docs` so existing URLs stay stable. The
* reserved `content/versions/<id>` layout gives a future versioned loader a
* predictable source tree; versioned routes are not enabled yet.
*/
export type DocsVersion = {
readonly id: string
readonly label: string
readonly sourceDir: string
readonly urlPrefix: string
}
export const docsVersioning = {
current: {
id: 'latest',
label: 'Latest',
sourceDir: 'content/docs',
urlPrefix: '/docs'
},
versionsDir: 'content/versions',
versions: [] as readonly DocsVersion[]
} as const
export type DocsVersionId = (typeof docsVersioning.versions)[number]['id']
export function docsVersionPath(version: string = docsVersioning.current.id): string {
return version === docsVersioning.current.id
? docsVersioning.current.urlPrefix
: `${docsVersioning.current.urlPrefix}/${version}`
}