Workspace [[workspace: SyntaxConcept]]SyntaxConcept
Description [[description: text]]textWorkspace Workspace 89%Validation Validation 85%Views NarrativeDoc 83%
A workspace is a directory of QMD.md files that can reference each other. Workspaces provide multi-file structure with automatic object indexing and reference validation.
Syntax [[syntax: text]]textWorkspace Workspace 93%Workspace In Wrong File ValidationError 78%Workspace Parse Command 75%
Workspace structure:
my-project/
├── readme.qmd.md # Workspace root (__Workspace)
├── users.qmd.md
├── storage/
│ ├── readme.qmd.md # Namespace "storage" (__Namespace)
│ ├── tables.qmd.md
│ └── indexes.qmd.md
└── api/
├── readme.qmd.md # Namespace "api" (__Namespace)
└── endpoints.qmd.md
Workspace is defined in root readme.qmd.md via [[id: __Workspace]]. Namespace is defined in subfolder readme.qmd.md via [[id: __Namespace]]. All files in a folder inherit __workspace and __namespace from their anchor files.
Cross File References [[cross_file_refs: text]]textWorkspace Workspace 80%Reference Resolution Algorithm 76%Workspace Validate Command 76%
The parser automatically:
- Finds all objects in all files
- Indexes them by
namespace:Kind:id - Validates all references
- Reports broken links
Cross-namespace reference format: [[#namespace:id]] or [[#namespace:Kind:id]].
Cross-workspace reference format: [[#workspace:namespace:Kind:id]].
Object Metadata [[object_metadata: text]]textWorkspace Workspace 90%Workspace Parse Command 69%Workspace In Wrong File ValidationError 69%
When parsing a workspace, each object gets:
__file— relative file path__line— line number__workspace— reference to__Workspaceobject__namespace— reference to__Namespaceobject (or null for root)
Rules [[rules: text]]textWorkspace Workspace 82%Workspace In Wrong File ValidationError 80%Workspace Parse Command 73%
- Workspace is defined by
__Workspacekind in rootreadme.qmd.md - Namespace is defined by
__Namespacekind in subfolderreadme.qmd.md - All files inherit workspace and namespace from nearest anchor file
- If no anchor found:
__workspace: "default",__namespacenot set - Nested workspaces are forbidden (
nested_workspaceerror) - Workspace and namespace don't affect local references within a single file