Directory Structure
Directory Structure
When pushing a directory, the folder layout automatically creates document hierarchy in Outline.
Rules
index.mdorREADME.mdin a directory → becomes the parent document- Other
.mdfiles in the same directory → become children of that parent - Subdirectories → create nested levels
- Files at the root of the push path → become top-level collection documents
Example
Given this directory:
docs/
├── index.md → "Documentation" (top-level parent)
├── quickstart.md → "Quick Start" (child of Documentation)
├── guide/
│ ├── index.md → "Guide" (child of Documentation, parent of below)
│ ├── install.md → "Installation" (child of Guide)
│ └── auth.md → "Authentication" (child of Guide)
└── reference/
├── index.md → "Reference" (child of Documentation, parent of below)
└── commands.md → "Commands" (child of Reference)Results in this Outline structure:
Collection: Engineering
├── Documentation
│ ├── Quick Start
│ ├── Guide
│ │ ├── Installation
│ │ └── Authentication
│ └── Reference
│ └── CommandsSort Order
Documents are pushed in this order (ensuring parents exist before children):
- Shallower depth first
index.md/README.mdbefore other files at the same level- Alphabetical within the same priority
Overriding with Metadata
You can override the automatic parent with a <!-- Parent: ... --> header:
<!-- Parent: Reference -->
<!-- Title: API Reference -->
# API ReferenceThis places the document under “Reference” regardless of its file location.
Tips
- Use
index.mdfor section landing pages (they become group parents) - Keep directory names meaningful — they don’t directly map to titles, but help organize your source
- The title always comes from the file content, not the directory name