adamziel / playground-docs-workflow

Experimenting with maintaining WordPress docs using WordPress Playground
https://adamziel.github.io/playground-docs-workflow/
11 stars 2 forks source link

Markdown Importer #51

Open adamziel opened 4 months ago

adamziel commented 4 months ago

WordPress for Docs require a markdown importing pipeline. Let's integrate one with Playground, see also https://github.com/adamziel/site-transfer-protocol

Furthermore, migrating existing projects into Playground/based workflow would be much easier if there was a markdown importer — upload a zipped directory structure with markdown files inside (optionally including frontmatter), and get a hierarchy of WordPress pages with valid blocks.

Cc @jordesign as This sounds like a data liberation project.

Let's also do this while we are working on git imports https://github.com/WordPress/playground-tools/issues/314

jordesign commented 4 months ago

This kind of thing would be brilliant!

What kind of structure would/could something like this look like within the ZIP file?

adamziel commented 4 months ago

Yes and yes :) also markdown hrefs would be preserved as WordPress links

jordesign commented 4 months ago

I like this a lot !

carstingaxion commented 2 months ago

directories for pages/sub-pages?

I'd like to add another level, the root level should be post_type followed by pages/subpages.

That would allow to import any kind of content, may it be deeply nested hierarchical pages or posts with no hierarchy at all. Or whatever custom post type someone's (documentation) website would need.