Skip to content

Commit 39704ae

Browse files
committed
Take parentId from frontmatter
1 parent 9612153 commit 39704ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ You can include metadata in your markdown file using YAML frontmatter:
216216
```markdown
217217
---
218218
title: My Document Title
219-
parentNpi: abc123
219+
parentId: abc123
220220
---
221221

222222
# Document content starts here
@@ -230,7 +230,7 @@ parentNpi: abc123
230230

231231
**Parent Resolution Priority:**
232232
1. CLI option (`--parent`)
233-
2. Frontmatter (`parentNpi`)
233+
2. Frontmatter (`parentId`)
234234
3. None (document created at space root)
235235

236236
**Examples:**
@@ -267,7 +267,7 @@ cat document.md | funcli documents create z2zK66AaEF --title "New Document"
267267
# my-document.md
268268
---
269269
title: API Documentation
270-
parentNpi: def456
270+
parentId: def456
271271
---
272272

273273
# API Reference

src/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ documentsCommand
193193
}
194194

195195
// Determine parent (priority: CLI arg > frontmatter)
196-
const parentDocumentId = options.parent || frontmatter.parentNpi;
196+
const parentDocumentId = options.parent || frontmatter.parentId;
197197

198198
// Create document from markdown
199199
const document = await client.createDocument(spaceId, {

0 commit comments

Comments
 (0)