Skip to content

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:

bash
npm install --save-dev linopress-cli typedoc typedoc-plugin-markdown

1. Point TypeDoc at your code ​

Add a typedoc.json with your entry points, or reuse the one you have:

json
{
  "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".

ts
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:

bash
npx linopress plan --all

Pushing to Linear needs a personal API key. Create one in Linear under Settings → Account → Security & access, and pass it as LINEAR_API_KEY:

bash
LINEAR_API_KEY=lin_api_… npx linopress push --all

The 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 ​

MIT licensed. Not made by or affiliated with Linear.