Skip to content

DocsSiteConfig

Describes a documentation site. Every path is relative to DocsSiteConfig.rootDirectory.

Import:

import type { DocsSiteConfig } from '@mnaoumov/typescript-dev-toolkit/docs-site/docs-site-config';

Signature:

export interface DocsSiteConfig

Properties

PropertyTypeDescription
docsDirectory?stringThe folder holding the site: its src (pages, content.config.ts), public and build output dist.
externalTypeLinks?ReadonlyMap<string, string>Type names mapped to the URL their references link to, for types no documented package declares. The layer documenting an ecosystem's packages fills it with that ecosystem's references.
guidesDirectory?stringThe folder under <docs>/src/content/docs the guides sidebar group is generated from.
owner?stringThe GitHub account the repository belongs to.
packageSites?ReadonlyMap<string, string>Package names mapped to the root URL of their documentation site, with a trailing slash. A type declared in one of them links to its page there. The documented package itself is never linked this way.
repostringThe repository's name. The site is served under it: <siteOrigin>/<repo>/.
repoHomepage?RepoHomepageModeWhat buildDocsSite does, after the build, about the repository's GitHub homepage: compare it with the site's URL and report a mismatch (check), or also set it (set). It reads and writes through the gh CLI, and only ever warns. A workflow's GITHUB_TOKEN can read the homepage but not set it, so in CI set reports too.
rootDirectory?stringThe repository root, holding package.json, tsconfig.json and node_modules.
siteOrigin?stringThe origin every site of the account is served from.
sourceDirectory?stringThe folder whose modules the API reference documents.
titlestringThe site's title, shown in its header.

Links to this page: