Getting started
Linopress runs TypeDoc with typedoc-plugin-markdown and publishes the result. You describe editions, one per audience, and each goes to a target: Linear Documents or Markdown files.
Install
You need Node 22.18 or later. TypeDoc and its Markdown plugin are peer dependencies:
npm install --save-dev linopress-cli typedoc typedoc-plugin-markdown1. Point TypeDoc at your code
Add a typedoc.json with your entry points, or reuse the one you have:
{
"entryPoints": ["./src/index.ts"],
"plugin": ["typedoc-plugin-markdown"],
"outputFileStrategy": "modules",
"readme": "none"
}outputFileStrategy: "modules" gives one page per module, which maps well to one Linear document per module. See TypeDoc's options for the rest.
2. Describe your editions
Create linopress.config.ts next to it. Name it linopress.config.mts if your package.json doesn't set "type": "module".
import { defineConfig } from "linopress-cli/config";
export default defineConfig({
editions: {
// Everything, @internal included, for your team in Linear.
internal: {
typedoc: "typedoc.json",
title: "API (internal)",
target: "linear",
team: "<teamId>", // or project: "<projectId>"
},
// The public API, as Markdown for your docs site.
public: {
typedoc: "typedoc.json",
typedocOptions: { excludeInternal: true },
title: "API",
target: "markdown",
out: "docs/api",
},
},
});3. Plan, then push
plan shows what a push would change and never writes anything:
npx linopress plan --allPushing to Linear needs a personal API key. Create one in Linear under Settings → Account → Security & access, and pass it as LINEAR_API_KEY:
LINEAR_API_KEY=lin_api_… npx linopress push --allThe internal edition shows up in Linear as an index document with one nested document per module. The public edition is written to docs/api/, ready for VitePress or any other static site generator.
4. Commit the manifest
push writes .linopress-manifest.json, which records which Linear document each page became. Commit it: the next push reads it to update those documents instead of creating new ones, and only pages whose content changed are sent again.
Next
- Configuration: editions, targets and every CLI option.
- GitHub Action: plan on pull requests and publish on
mainautomatically.