Skip to content

Conversation

@mejo-
Copy link
Member

@mejo- mejo- commented Jan 12, 2026

📝 Summary

This PR adds a new occ command occ collectives:import:directory to import markdown files and referenced attachments from a given directory path.

The import function first imports all markdown files and then tries to fix relative links and references to local attachment files.

So far it's only tested with markdown created by Dokuwiki2Markdown as the aim is to add support for migrating a Dokuwiki instance to Collectives.

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

mejo- added 16 commits January 16, 2026 13:17
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Doesn't add the pages to subpage order of parent page and doesn't call
notifyPush. Therefore it's a bit less memory greedy.

Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
…wFile

Further memory saving improvements when processing many files.

Signed-off-by: Jonas <jonas@freesources.org>
Further memory saving improvements when processing many files.

Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Further memory saving improvements when processing many files.

Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- force-pushed the feat/import_markdown branch from c35b436 to 9ddb854 Compare January 16, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants