Skip to content

Interface: BuildCssApiOptions

Defined in: emitters/markdown/src/build.ts:29

Options for buildCssApi.

Extends

Properties

baseHref?

ts
optional baseHref?: string;

Defined in: emitters/markdown/src/render.ts:36

Link prefix for page links (defaults to "/"; e.g. "/api/css/").

Inherited from

RenderIndexOptions.baseHref


configuration?

ts
optional configuration?: CssDocConfiguration;

Defined in: emitters/markdown/src/build.ts:35

The tag configuration to parse with (e.g. from @cssdoc/config).


css

ts
css: string | string[];

Defined in: emitters/markdown/src/build.ts:31

The CSS source (one string, or several concatenated).


headingPrefix?

ts
optional headingPrefix?: string;

Defined in: emitters/markdown/src/render.ts:26

Heading prefix for the page title (defaults to no prefix, i.e. just the record name).

Inherited from

RenderEntryOptions.headingPrefix


intro?

ts
optional intro?: string;

Defined in: emitters/markdown/src/render.ts:34

An intro paragraph under the H1.

Inherited from

RenderIndexOptions.intro


outDir

ts
outDir: string;

Defined in: emitters/markdown/src/build.ts:33

The output directory (created if missing).


resolveDemo?

ts
optional resolveDemo?: (entry) => string | undefined;

Defined in: emitters/markdown/src/render.ts:24

Choose the demo spec for an entry (defaults to entry.demo).

Parameters

entry

CssDocEntry

Returns

string | undefined

Inherited from

RenderEntryOptions.resolveDemo


resolveToken?

ts
optional resolveToken?: ResolveToken;

Defined in: emitters/markdown/src/render.ts:22

Resolve a consumed token's type/value (adds Type + Value columns to "Tokens consumed").

Inherited from

RenderEntryOptions.resolveToken


sidebarFileName?

ts
optional sidebarFileName?: string;

Defined in: emitters/markdown/src/build.ts:37

The sidebar file name (defaults to css-sidebar.json).


title?

ts
optional title?: string;

Defined in: emitters/markdown/src/render.ts:32

The index H1 (defaults to "CSS API reference").

Inherited from

RenderIndexOptions.title

Released under the MIT License