OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Publish generated documentation artifacts.
Goal
Deploy docs to the public docs surface with consistent versioning.
Context
Used by release pipelines to push generated docs to hosting targets.
Source Definition
import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
import { defineCommand } from '../../operations';
import {
DOCS_DOMAIN,
DOCS_OWNERS,
DOCS_STABILITY,
DOCS_TAGS,
} from '../constants';
import { DocsPublishedEvent } from '../events/docsPublished.event';
import { docId } from '../registry';
import type { DocBlock } from '../types';
export const DocsPublishCommand = defineCommand({
meta: {
key: 'docs.publish',
title: 'Publish Documentation',
version: '1.0.0',
description: 'Publish generated documentation artifacts.',
goal: 'Deploy docs to the public docs surface with consistent versioning.',
context:
'Used by release pipelines to push generated docs to hosting targets.',
domain: DOCS_DOMAIN,
owners: DOCS_OWNERS,
tags: [...DOCS_TAGS, 'publish'],
stability: DOCS_STABILITY,
docId: [docId('docs.tech.docs-publish')],
},
capability: {
key: 'docs.system',
version: '1.0.0',
},
io: {
input: DocsPublishInput,
output: DocsPublishOutput,
errors: {
DEPLOY_FAILED: {
description: 'Failed to deploy documentation artifacts.',
http: 500,
when: 'The docs publish step fails to deploy to the target host.',
},
},
},
policy: {
auth: 'admin',
pii: [],
},
sideEffects: {
emits: [
{
ref: DocsPublishedEvent.meta,
when: 'Docs publish completes successfully.',
},
],
},
});