@open-document/core 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/README.zh-TW.md +1 -0
- package/dist/{build-U81g9Hnk.js → build-BzhYQKev.js} +1 -1
- package/dist/check-CCAaXofH.js +42 -0
- package/dist/cli/bin.js +45 -12
- package/dist/config-CNr8hd5X.js +2461 -0
- package/dist/{config-CSC5lHsR.d.ts → config-P61niZMf.d.ts} +6 -0
- package/dist/context-CJpdjYfU.js +15 -0
- package/dist/{dev-DwwFT6uX.js → dev-BhXgunme.js} +1 -1
- package/dist/diagram-xlVDekYk.js +763 -0
- package/dist/export-B69kDkyp.js +36 -0
- package/dist/import-DBhCpUsl.js +26 -0
- package/dist/index.d.ts +236 -91
- package/dist/index.js +516 -88
- package/dist/ops/index.d.ts +96 -1
- package/dist/ops/index.js +4 -199
- package/dist/ops-BCBmRMCS.js +1275 -0
- package/dist/{preview-C_jbySle.js → preview-Da4Aq9yF.js} +1 -1
- package/dist/sdk-C9nl30dW.d.ts +129 -0
- package/dist/sdk-DhcqZdAw.js +50 -0
- package/dist/vite/index.d.ts +7 -1
- package/dist/vite/index.js +1 -2
- package/env.d.ts +33 -1
- package/package.json +10 -1
- package/skills/create-doc/SKILL.md +7 -3
- package/skills/create-theme/SKILL.md +1 -1
- package/skills/doc-authoring/SKILL.md +86 -6
- package/skills/doc-authoring/references/long-form.md +131 -0
- package/skills/doc-authoring/references/pagination.md +2 -1
- package/src/app/components/data-table.tsx +196 -0
- package/src/app/components/diagram.tsx +76 -0
- package/src/app/components/flow-page.tsx +20 -3
- package/src/app/components/footnote.tsx +196 -0
- package/src/app/components/numbering.tsx +208 -0
- package/src/app/components/themes/theme-preview.tsx +2 -2
- package/src/app/lib/agent-bridge.ts +128 -0
- package/src/app/lib/diagnostics.ts +282 -0
- package/src/app/lib/export-html.ts +35 -11
- package/src/app/lib/export-pdf.ts +54 -19
- package/src/app/lib/flow-measure.ts +100 -31
- package/src/app/lib/flow.test.ts +46 -0
- package/src/app/lib/flow.ts +28 -3
- package/src/app/lib/footnotes.test.tsx +102 -0
- package/src/app/lib/footnotes.ts +94 -0
- package/src/app/lib/labels.ts +175 -0
- package/src/app/lib/page-context.tsx +6 -1
- package/src/app/lib/scan.ts +26 -0
- package/src/app/lib/sdk.test.ts +15 -9
- package/src/app/lib/sdk.ts +37 -11
- package/src/app/lib/use-doc-pages.ts +50 -15
- package/src/app/routes/doc.tsx +158 -115
- package/dist/config-8zkUElGq.js +0 -1169
- package/dist/design-IyRSwCtK.js +0 -52
- package/dist/edit-ops-D2W2plpc.js +0 -1190
package/dist/ops/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { c as ORIENTATIONS, d as PAGE_SIZE_NAMES, l as Orientation, p as PageSizeName } from "../sdk-C9nl30dW.js";
|
|
1
2
|
import "vite";
|
|
2
3
|
//#region src/vite/routes/context.d.ts
|
|
3
4
|
type ApiContext = {
|
|
@@ -8,12 +9,18 @@ type ApiContext = {
|
|
|
8
9
|
/** `docs/.folders.json` — the folder manifest, versioned alongside the docs. */
|
|
9
10
|
manifestPath: string;
|
|
10
11
|
coreVersion: string;
|
|
12
|
+
/**
|
|
13
|
+
* Origin of a dev server already serving this workspace. Headless rendering
|
|
14
|
+
* reuses it instead of booting a second one; absent, it boots its own.
|
|
15
|
+
*/
|
|
16
|
+
serverOrigin?: string;
|
|
11
17
|
};
|
|
12
18
|
type ApiPluginOptions = {
|
|
13
19
|
userCwd: string;
|
|
14
20
|
docsDir?: string;
|
|
15
21
|
assetsDir?: string;
|
|
16
22
|
coreVersion: string;
|
|
23
|
+
serverOrigin?: string;
|
|
17
24
|
};
|
|
18
25
|
declare function makeContext(opts: ApiPluginOptions): ApiContext;
|
|
19
26
|
//#endregion
|
|
@@ -67,6 +74,94 @@ declare function duplicateDocument(ctx: ApiContext, docId: string, newId?: strin
|
|
|
67
74
|
}>;
|
|
68
75
|
declare function deleteDocument(ctx: ApiContext, docId: string): Promise<void>;
|
|
69
76
|
//#endregion
|
|
77
|
+
//#region src/ops/import.d.ts
|
|
78
|
+
type ImportMarkdownOptions = {
|
|
79
|
+
/** Markdown text. One of `markdown` or `file` is required. */
|
|
80
|
+
markdown?: string;
|
|
81
|
+
/** Path to a `.md` file, relative to the workspace root. */
|
|
82
|
+
file?: string;
|
|
83
|
+
docId?: string;
|
|
84
|
+
title?: string;
|
|
85
|
+
subtitle?: string;
|
|
86
|
+
author?: string;
|
|
87
|
+
theme?: string;
|
|
88
|
+
pageSize?: string;
|
|
89
|
+
orientation?: string;
|
|
90
|
+
/** Open with a title page. Defaults to true. */
|
|
91
|
+
cover?: boolean;
|
|
92
|
+
/** Insert a self-filling contents page. Defaults to false. */
|
|
93
|
+
contents?: boolean;
|
|
94
|
+
};
|
|
95
|
+
type ImportResult = {
|
|
96
|
+
id: string;
|
|
97
|
+
entry: string;
|
|
98
|
+
title: string;
|
|
99
|
+
blocks: number;
|
|
100
|
+
/** Local images copied into `docs/<id>/assets/`. */
|
|
101
|
+
assets: string[];
|
|
102
|
+
/** Image references that could not be resolved and were left as written. */
|
|
103
|
+
missingAssets: string[];
|
|
104
|
+
};
|
|
105
|
+
declare function slugify(value: string, fallback?: string): string;
|
|
106
|
+
/**
|
|
107
|
+
* Reads markdown and writes a real open-doc document: `flow()` body, inline
|
|
108
|
+
* styles, a cover, and any local images copied into the document's own assets
|
|
109
|
+
* folder. Nothing about the result is special-cased — it is the same shape an
|
|
110
|
+
* agent would have written by hand, and every editing surface works on it.
|
|
111
|
+
*/
|
|
112
|
+
declare function importMarkdown(ctx: ApiContext, opts: ImportMarkdownOptions): Promise<ImportResult>;
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/app/lib/diagnostics.d.ts
|
|
115
|
+
type LayoutRule = 'unresolved-ref' | 'page-overflow' | 'off-page' | 'blank-page' | 'oversized-block' | 'orphan-heading' | 'tiny-text' | 'broken-image';
|
|
116
|
+
type LayoutSeverity = 'error' | 'warn';
|
|
117
|
+
type LayoutFinding = {
|
|
118
|
+
/** 1-based sheet the problem is on. */
|
|
119
|
+
page: number;
|
|
120
|
+
rule: LayoutRule;
|
|
121
|
+
severity: LayoutSeverity;
|
|
122
|
+
message: string;
|
|
123
|
+
/** Tag plus a text snippet, so the caller can recognise the element. */
|
|
124
|
+
element?: string;
|
|
125
|
+
/** `line:column` in the document source, from the inspector's `data-od-loc`. */
|
|
126
|
+
loc?: string;
|
|
127
|
+
};
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/ops/layout.d.ts
|
|
130
|
+
type LayoutReport = {
|
|
131
|
+
docId: string;
|
|
132
|
+
title: string;
|
|
133
|
+
pageCount: number;
|
|
134
|
+
errors: number;
|
|
135
|
+
warnings: number;
|
|
136
|
+
findings: LayoutFinding[];
|
|
137
|
+
};
|
|
138
|
+
type ExportFormat = 'pdf' | 'html' | 'png';
|
|
139
|
+
type ExportResult = {
|
|
140
|
+
docId: string;
|
|
141
|
+
format: ExportFormat;
|
|
142
|
+
pageCount: number;
|
|
143
|
+
/** Written paths, relative to the workspace root. */
|
|
144
|
+
files: string[];
|
|
145
|
+
};
|
|
146
|
+
/** Closes the warm browser. Call before the process exits so nothing lingers. */
|
|
147
|
+
declare function closeRenderSession(): Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Renders the document headlessly at true page size and reports what is wrong
|
|
150
|
+
* with the layout — the part of a document an agent writing React cannot see.
|
|
151
|
+
*/
|
|
152
|
+
declare function checkLayout(ctx: ApiContext, docId: string): Promise<LayoutReport>;
|
|
153
|
+
declare function renderDocPage(ctx: ApiContext, docId: string, page: number): Promise<{
|
|
154
|
+
docId: string;
|
|
155
|
+
page: number;
|
|
156
|
+
pageCount: number;
|
|
157
|
+
mimeType: string;
|
|
158
|
+
base64: string;
|
|
159
|
+
}>;
|
|
160
|
+
declare function exportDocument(ctx: ApiContext, docId: string, opts?: {
|
|
161
|
+
format?: ExportFormat;
|
|
162
|
+
outDir?: string;
|
|
163
|
+
}): Promise<ExportResult>;
|
|
164
|
+
//#endregion
|
|
70
165
|
//#region src/files/folders.d.ts
|
|
71
166
|
type FolderIcon = {
|
|
72
167
|
type: 'emoji';
|
|
@@ -152,4 +247,4 @@ declare function addComment(ctx: ApiContext, docId: string, loc: Loc, note: stri
|
|
|
152
247
|
id: string;
|
|
153
248
|
}>;
|
|
154
249
|
//#endregion
|
|
155
|
-
export { type ApiContext, type AssetSummary, type DocumentSummary, type Loc, OpsError, type ThemeSummary, addComment, createDocument, createFolder, deleteAsset, deleteDocument, docDir, duplicateDocument, fileDocument, findAssetUsages, listAssets, listDocIds, listDocuments, listFolders, listThemes, makeContext, readDocument, readText, readTheme, renameDocument, resolveEntry, writeAsset, writeDocument, writeText };
|
|
250
|
+
export { type ApiContext, type AssetSummary, type DocumentSummary, type ExportFormat, type ExportResult, type ImportMarkdownOptions, type ImportResult, type LayoutFinding, type LayoutReport, type Loc, ORIENTATIONS, OpsError, type Orientation, PAGE_SIZE_NAMES, type PageSizeName, type ThemeSummary, addComment, checkLayout, closeRenderSession, createDocument, createFolder, deleteAsset, deleteDocument, docDir, duplicateDocument, exportDocument, fileDocument, findAssetUsages, importMarkdown, listAssets, listDocIds, listDocuments, listFolders, listThemes, makeContext, readDocument, readText, readTheme, renameDocument, renderDocPage, resolveEntry, slugify, writeAsset, writeDocument, writeText };
|
package/dist/ops/index.js
CHANGED
|
@@ -1,199 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import fg from "fast-glob";
|
|
6
|
-
//#region src/ops/library.ts
|
|
7
|
-
function themesRoot(ctx, themesDir = "themes") {
|
|
8
|
-
return path.resolve(ctx.userCwd, themesDir);
|
|
9
|
-
}
|
|
10
|
-
async function themeFiles(root) {
|
|
11
|
-
if (!existsSync(root)) return [];
|
|
12
|
-
return (await fg("*.md", {
|
|
13
|
-
cwd: root,
|
|
14
|
-
absolute: true,
|
|
15
|
-
onlyFiles: true
|
|
16
|
-
})).sort();
|
|
17
|
-
}
|
|
18
|
-
function demoFor(root, id) {
|
|
19
|
-
for (const cand of [
|
|
20
|
-
`${id}.demo.tsx`,
|
|
21
|
-
`${id}.demo.jsx`,
|
|
22
|
-
`${id}.demo.ts`,
|
|
23
|
-
`${id}.demo.js`
|
|
24
|
-
]) {
|
|
25
|
-
const p = path.join(root, cand);
|
|
26
|
-
if (existsSync(p)) return p;
|
|
27
|
-
}
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
async function listThemes(ctx, themesDir) {
|
|
31
|
-
const root = themesRoot(ctx, themesDir);
|
|
32
|
-
const out = [];
|
|
33
|
-
for (const file of await themeFiles(root)) {
|
|
34
|
-
const id = path.basename(file, ".md");
|
|
35
|
-
const { fm } = parseFrontmatter(await fs.readFile(file, "utf8"), id);
|
|
36
|
-
out.push({
|
|
37
|
-
id,
|
|
38
|
-
name: fm.name,
|
|
39
|
-
description: fm.description,
|
|
40
|
-
pageSize: fm.pageSize,
|
|
41
|
-
mode: fm.mode,
|
|
42
|
-
hasDemo: demoFor(root, id) !== null
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
return out;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* The full theme document. This is what an agent reads before writing a doc —
|
|
49
|
-
* the palette, type scale, and paste-ready components live in the body.
|
|
50
|
-
*/
|
|
51
|
-
async function readTheme(ctx, themeId, themesDir) {
|
|
52
|
-
const root = themesRoot(ctx, themesDir);
|
|
53
|
-
const file = path.join(root, `${themeId}.md`);
|
|
54
|
-
if (!file.startsWith(root + path.sep) || !existsSync(file)) throw new OpsError(404, `theme not found: ${themeId}`);
|
|
55
|
-
const { fm, body } = parseFrontmatter(await fs.readFile(file, "utf8"), themeId);
|
|
56
|
-
const demoAbs = demoFor(root, themeId);
|
|
57
|
-
return {
|
|
58
|
-
id: themeId,
|
|
59
|
-
frontmatter: fm,
|
|
60
|
-
body,
|
|
61
|
-
demo: demoAbs ? await fs.readFile(demoAbs, "utf8") : void 0
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
/** `scope` is a document id, or `global` for the shared assets directory. */
|
|
65
|
-
async function listAssets(ctx, scope) {
|
|
66
|
-
const dir = resolveScopedAssetsDir(ctx.docsRoot, ctx.globalAssetsRoot, scope);
|
|
67
|
-
if (!dir) throw new OpsError(400, `invalid scope: ${scope}`);
|
|
68
|
-
if (!existsSync(dir)) return [];
|
|
69
|
-
const names = await fs.readdir(dir);
|
|
70
|
-
const out = [];
|
|
71
|
-
for (const filename of names.sort()) {
|
|
72
|
-
const stat = await fs.stat(path.join(dir, filename)).catch(() => null);
|
|
73
|
-
if (!stat?.isFile()) continue;
|
|
74
|
-
out.push({
|
|
75
|
-
scope,
|
|
76
|
-
filename,
|
|
77
|
-
bytes: stat.size,
|
|
78
|
-
importPath: assetImportPath(scope, filename)
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
return out;
|
|
82
|
-
}
|
|
83
|
-
async function writeAsset(ctx, scope, filename, data) {
|
|
84
|
-
const name = validateAssetName(filename);
|
|
85
|
-
if (!name) throw new OpsError(400, "invalid filename");
|
|
86
|
-
const dir = resolveScopedAssetsDir(ctx.docsRoot, ctx.globalAssetsRoot, scope);
|
|
87
|
-
if (!dir) throw new OpsError(400, `invalid scope: ${scope}`);
|
|
88
|
-
await fs.mkdir(dir, { recursive: true });
|
|
89
|
-
const file = resolveScopedAssetFile(ctx.docsRoot, ctx.globalAssetsRoot, scope, name);
|
|
90
|
-
if (!file) throw new OpsError(400, "invalid filename");
|
|
91
|
-
await fs.writeFile(file, data);
|
|
92
|
-
return {
|
|
93
|
-
scope,
|
|
94
|
-
filename: name,
|
|
95
|
-
bytes: data.byteLength,
|
|
96
|
-
importPath: assetImportPath(scope, name)
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
async function deleteAsset(ctx, scope, filename) {
|
|
100
|
-
const file = resolveScopedAssetFile(ctx.docsRoot, ctx.globalAssetsRoot, scope, filename);
|
|
101
|
-
if (!file) throw new OpsError(400, "invalid filename");
|
|
102
|
-
if (!existsSync(file)) throw new OpsError(404, `asset not found: ${scope}/${filename}`);
|
|
103
|
-
await fs.rm(file);
|
|
104
|
-
}
|
|
105
|
-
/** Which documents import this asset — check before deleting one. */
|
|
106
|
-
async function findAssetUsages(ctx, scope, filename) {
|
|
107
|
-
const importPath = assetImportPath(scope, filename);
|
|
108
|
-
const out = [];
|
|
109
|
-
for (const id of await listDocIds(ctx)) {
|
|
110
|
-
const entry = resolveEntry(ctx, id);
|
|
111
|
-
if (!entry) continue;
|
|
112
|
-
const count = countAssetUsages(await fs.readFile(entry, "utf8"), importPath);
|
|
113
|
-
if (count > 0) out.push({
|
|
114
|
-
docId: id,
|
|
115
|
-
count
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
return out;
|
|
119
|
-
}
|
|
120
|
-
async function listFolders(ctx) {
|
|
121
|
-
const manifest = await readManifest(ctx.manifestPath);
|
|
122
|
-
return {
|
|
123
|
-
folders: manifest.folders,
|
|
124
|
-
assignments: manifest.assignments
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
/** Folders always carry an icon; agents rarely care, so this is the fallback. */
|
|
128
|
-
const DEFAULT_FOLDER_ICON = {
|
|
129
|
-
type: "color",
|
|
130
|
-
value: "#6b7280"
|
|
131
|
-
};
|
|
132
|
-
async function createFolder(ctx, rawName, rawIcon) {
|
|
133
|
-
const name = validateName(rawName);
|
|
134
|
-
if (!name) throw new OpsError(400, "invalid folder name");
|
|
135
|
-
const icon = validateIcon(rawIcon ?? DEFAULT_FOLDER_ICON);
|
|
136
|
-
if (!icon) throw new OpsError(400, "invalid icon");
|
|
137
|
-
const manifest = await readManifest(ctx.manifestPath);
|
|
138
|
-
const folder = {
|
|
139
|
-
id: newFolderId(),
|
|
140
|
-
name,
|
|
141
|
-
icon
|
|
142
|
-
};
|
|
143
|
-
manifest.folders.push(folder);
|
|
144
|
-
await writeManifest(ctx.manifestPath, manifest);
|
|
145
|
-
return folder;
|
|
146
|
-
}
|
|
147
|
-
/** Filing only edits assignments — a document id never moves on disk. */
|
|
148
|
-
async function fileDocument(ctx, docId, folderId) {
|
|
149
|
-
const manifest = await readManifest(ctx.manifestPath);
|
|
150
|
-
if (folderId !== null && !manifest.folders.some((f) => f.id === folderId)) throw new OpsError(404, `folder not found: ${folderId}`);
|
|
151
|
-
if (folderId === null) delete manifest.assignments[docId];
|
|
152
|
-
else manifest.assignments[docId] = folderId;
|
|
153
|
-
await writeManifest(ctx.manifestPath, manifest);
|
|
154
|
-
}
|
|
155
|
-
//#endregion
|
|
156
|
-
//#region src/ops/text.ts
|
|
157
|
-
async function sourceOf(ctx, docId) {
|
|
158
|
-
const entry = resolveEntry(ctx, docId);
|
|
159
|
-
if (!entry) throw new OpsError(404, `document not found: ${docId}`);
|
|
160
|
-
return {
|
|
161
|
-
entry,
|
|
162
|
-
source: await fs.readFile(entry, "utf8")
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Resolves a `line:column` (or several candidates) to the editable text runs at
|
|
167
|
-
* that spot. `shown` is the rendered text — when a clicked element belongs to a
|
|
168
|
-
* local helper component, it is what decides which candidate was really meant.
|
|
169
|
-
*/
|
|
170
|
-
async function readText(ctx, docId, locs, shown) {
|
|
171
|
-
if (locs.length === 0) throw new OpsError(400, "at least one loc is required");
|
|
172
|
-
const { source } = await sourceOf(ctx, docId);
|
|
173
|
-
const resolved = resolveTextTarget(source, locs, shown);
|
|
174
|
-
if (!resolved) throw new OpsError(404, "no editable text at that location");
|
|
175
|
-
return resolved;
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* `expected` is the text the caller believes is there; when it no longer
|
|
179
|
-
* matches the write is refused rather than silently overwriting someone else's
|
|
180
|
-
* edit. `index` picks a run when the element mixes text and markup.
|
|
181
|
-
*/
|
|
182
|
-
async function writeText(ctx, docId, loc, text, opts = {}) {
|
|
183
|
-
const { entry, source } = await sourceOf(ctx, docId);
|
|
184
|
-
const result = replaceTextAt(source, loc, text, opts);
|
|
185
|
-
if (!result.ok) throw new OpsError(result.status, result.error);
|
|
186
|
-
if (result.source !== source) await fs.writeFile(entry, result.source, "utf8");
|
|
187
|
-
return { ok: true };
|
|
188
|
-
}
|
|
189
|
-
/** Leaves a `@doc-comment` marker in the source for a later agent pass to act on. */
|
|
190
|
-
async function addComment(ctx, docId, loc, note, hint) {
|
|
191
|
-
if (note.trim() === "") throw new OpsError(400, "note is empty");
|
|
192
|
-
const { entry, source } = await sourceOf(ctx, docId);
|
|
193
|
-
const inserted = insertMarker(source, loc, note.trim(), hint);
|
|
194
|
-
if (!inserted) throw new OpsError(422, "cannot anchor a comment here — pick the surrounding element");
|
|
195
|
-
await fs.writeFile(entry, inserted.source, "utf8");
|
|
196
|
-
return { id: inserted.id };
|
|
197
|
-
}
|
|
198
|
-
//#endregion
|
|
199
|
-
export { OpsError, addComment, createDocument, createFolder, deleteAsset, deleteDocument, docDir, duplicateDocument, fileDocument, findAssetUsages, listAssets, listDocIds, listDocuments, listFolders, listThemes, makeContext, readDocument, readText, readTheme, renameDocument, resolveEntry, writeAsset, writeDocument, writeText };
|
|
1
|
+
import { a as PAGE_SIZE_NAMES, r as ORIENTATIONS } from "../sdk-DhcqZdAw.js";
|
|
2
|
+
import { D as makeContext, _ as listDocuments, b as resolveEntry, d as OpsError, f as createDocument, g as listDocIds, h as duplicateDocument, m as docDir, p as deleteDocument, v as readDocument, x as writeDocument, y as renameDocument } from "../config-CNr8hd5X.js";
|
|
3
|
+
import { _ as importMarkdown, a as deleteAsset, c as listAssets, d as readTheme, f as writeAsset, g as renderDocPage, h as exportDocument, i as createFolder, l as listFolders, m as closeRenderSession, n as readText, o as fileDocument, p as checkLayout, r as writeText, s as findAssetUsages, t as addComment, u as listThemes, v as slugify } from "../ops-BCBmRMCS.js";
|
|
4
|
+
export { ORIENTATIONS, OpsError, PAGE_SIZE_NAMES, addComment, checkLayout, closeRenderSession, createDocument, createFolder, deleteAsset, deleteDocument, docDir, duplicateDocument, exportDocument, fileDocument, findAssetUsages, importMarkdown, listAssets, listDocIds, listDocuments, listFolders, listThemes, makeContext, readDocument, readText, readTheme, renameDocument, renderDocPage, resolveEntry, slugify, writeAsset, writeDocument, writeText };
|