-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Summary
Import nodes and edges from markdown file frontmatter, enabling documentation-as-graph workflows.
Scope
New files
src/frontmatter.js— Parsing + extraction (~150 LoC)test/frontmatter.test.js— Tests (~200 LoC, ~15 tests)
Modified files
src/import.js— ExtractimportData(graph, data, opts)fromimportFile(refactor for reuse)src/cli/commands.js— AddimportMarkdownCmdbin/git-mind.js— Add--from-markdownflag to import casesrc/index.js— ExportimportFromMarkdown,parseFrontmatterCHANGELOG.md
Recognized frontmatter
---
id: doc:architecture
title: "Architecture Guide"
implements: spec:auth
relates-to: [spec:a, spec:b]
depends-on: doc:getting-started
documents: module:auth
---CLI
git mind import --from-markdown <glob> --dry-run --json
Design decisions
- Auto-generated IDs:
doc:<path-without-ext>whenidnot specified - Edge type fields in frontmatter map to edge creation
- Simple recursive glob implementation (~30 lines, no new dependencies)
- Refactor: extract
importDatafromimportFilefor pipeline reuse
Part of NEXUS milestone.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels