Replies: 3 comments 2 replies
-
I have questions. How are we going to deal with media uploads (videos, screenshots, GIFs)?
If the content is going to be in GitHub anyway, I'd love to see another button "Edit in GitHub" as well. For those contributors that like this workflow better.
This can be rather annoying if happens every time you click on button. Is there a way to add "Never show this again" option or maybe just add a very visible link to a guideline?
This would be very much appreciated. On that note, if the user is logged in to WordPress.org and has GitHub profile connected, is it really necessary to go through GH connection when clicked on "Edit in Playground" button? Can we make it a condition: you don't get to see the button unless your WP.ORG profile is connected to GH. And then, when clicked on button I'm already there, doing PR on my own behalf. |
Beta Was this translation helpful? Give feedback.
-
I spoke to Matt about this and he wants contributors to be logged in into both WP.org and GH accounts. But I do not know which keeps track of which accounts. |
Beta Was this translation helpful? Give feedback.
-
With the recent addition of GitDirectoryResource and the markdown<->blocks conversion tools, this Blueprint loads all Gutenberg markdown files into Playground as WordPress pages using real blocks. It works in local dev env for now. We'll need a CORS proxy to make it work on playground.wordpress.net: {
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"login": true,
"landingPage": "/wp-admin/?markdown-file-path=docs/contributors/accessibility-testing.md",
"constants": {
"STATIC_FILES_ROOT": "/wordpress/wp-content/static-content"
},
"steps": [
{
"step": "resetData"
},
{
"step": "writeFiles",
"writeToPath": "/wordpress/wp-content/static-content",
"filesTree": {
"resource": "git:directory",
"url": "https://github.com/wordpress/gutenberg.git",
"ref": "trunk",
"path": "docs"
}
},
{
"step": "writeFiles",
"writeToPath": "/wordpress/wp-content/plugins",
"filesTree": {
"resource": "git:directory",
"url": "https://github.com/adamziel/playground-content-converters.git",
"ref": "trunk",
"path": "src"
}
},
{
"step": "activatePlugin",
"pluginPath": "import-static-files/import-static-files.php"
},
{
"step": "activatePlugin",
"pluginPath": "store-markdown-as-post-meta/index.php"
},
{
"step": "activatePlugin",
"pluginPath": "convert-markdown-to-blocks-in-js/convert-markdown-to-blocks-in-js.php"
},
{
"step": "activatePlugin",
"pluginPath": "save-pages-as-static-files/index.php"
}
]
} The following technical challenges need to be addressed to make this editing workflow practical:
More and more streams of work in Playground are getting blocked by the URL rewriting issue. We now have good technical foundations to start building a general solution that would also solve for importing WXR, site transfers, etc. |
Beta Was this translation helpful? Give feedback.
-
The Markdown Editing Workflow prototype allowed me to create a Gutenberg Handbook Pull Request entirely from my web browser.
Let's expand it into a reusable, free, open-source tool for publishing and collaborating on documentation.
What do we need for Version 1 MVP?
As Version 1 MVP, let's for solve these two use-cases:
This way we'll explore the basic contribution workflows, publishing changes, and make it all reusable in different repositories. On our way there, we'll need to implement a few vital improvements listed in the Markdown Editing Workflow PR.
Contributing to WordPress Playground documentation
Playground documentation is a custom Docusaurus app. It requires a local build, has annoying quirks around table of contents and Playground blocks, and figuring out the right MDX tends to be challenging. We could replace it with a "WordPress Markdown" pipeline edited through Playground.
Here's what we'd need to get to an MVP:
git push
-> Publish a static site. We can reuse the prototype from https://github.com/adamziel/playground-docs-workflow.Contributing to Theme Developer Handbook
@justintadlock mentioned Theme Developer Handbook is a separate site with no easy way to contribute to. Playground could provide that way. Here's what we'd need to get to an MVP:
Edit in Playground
link to every pagegit push
-> WordPress.org pages workflow.Does that sound right @justintadlock @juanmaguitar @bph @ndiego @ryanwelcher? Can we remove any of these items? Are we missing any? Also CCing @dd32 @StevenDufresne @tellyworth
Other considerations
As a rough prototype, the current Markdown Editing Workflow is heavily optimized for a single data format: Markdown. I'd like to refactor the code to have a single import/export core where we could plug in other input and output formats. This could mean either reusing the existing import/export infrastructure, or creating a new one – depending on which is more useful:
This way, we'll also unlock the following applications:
git push
-> WordPress deploy workflow.Furthermore, I'd like to approach this in a core-first way and explore the site transfer problem space, e.g. the problem of rewriting URLs between sites.
Let's follow these heuristics where they're useful and diverge when they're not:
Related discussions
Related code explorations
Related resources
sluggify()
. wordpress-develop#5466cc @brandonpayton @bgrgicak @jordesign @mtias @zzap @dmsnell
Beta Was this translation helpful? Give feedback.
All reactions