Function: createContentService()

Source: 1.0.0-rc.14 · ecc10ae38a81 (uncommitted changes)

ts
function createContentService(app, settings?): object;

Defined in: packages/valaxy/node/content/index.ts:59

Inspect Markdown through Valaxy’s route pipeline without starting a server. Configured route/Markdown hooks run as they do during route generation. Scans are serialized and rebuilt per request so edits and removals are observable.

Parameters

app

ValaxyNode

settings?

ContentServiceOptions = {}

Returns

object

checkPage

ts
checkPage: (path) => Promise<ContentCheckResult>;

Parameters

path

string

Returns

Promise<ContentCheckResult>

dispose

ts
dispose: () => Promise<void>;

Returns

Promise<void>

inspectPage

ts
inspectPage: (path) => Promise<ContentPageInfo>;

Parameters

path

string

Returns

Promise<ContentPageInfo>