-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Summary
When uploading a directory structure to Confluence, allow folders to have actual content by using a matching markdown file's content instead of creating empty folder pages.
Motivation
Currently, when md2cf processes a directory structure, folders are mapped to empty Confluence pages that only serve as parent pages for their children. This results in:
- Empty pages that provide no value to readers
Proposed Solution
When a folder and a markdown file at the same level have matching names (i.e., the markdown file's stem matches the folder name), use the markdown file's parsed content and title for the folder page.
Example
Directory structure:
requirements/
├── requirements.md] # filename stem = "requirements"
├── requirements/ # folder name = "requirements" ✅ Match!
│ └── os.md
└── spec.mdCurrent behavior:
requirements/→ Empty Confluence page with title "requirements"requirements.md→ Separate Confluence page (causes title collision if titles match)
Proposed behavior:
requirements/→ Confluence page with content fromrequirements.md- The page title is parsed from
requirements.md(respects frontmatter, H1 header, or filename fallback) requirements.mdis NOT created as a separate pageos.mdbecomes a child page under this folder page
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels