Function: createContentService() ​

Source: 1.1.0 · e3417e89b638

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>