-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation for the RichText component to the Block Editor Handbook #15956
Conversation
Hey @jg314! Thanks so much for working on this!
You'll need to generate docs and commit the files that it generates so that Travis CI is happy with this branch and lets us merge it. What error are you receiving when you run |
@noisysocks, thanks for taking such a quick look at this PR. I've pasted the error I'm getting when trying to run
Have you all seen this before? Any idea what I can do to fix it? |
This is a great addition! The RichText component API is exposed in the handbook as part of the block-editor package. See https://developer.wordpress.org/block-editor/packages/packages-block-editor/#RichText Unfortunately, it is undocumented and points to its README. This can be fixed by updating the source JSDoc comment and the changes will be reflected in the handbook. That'd be a great separate PR that would play well with the good work on this one :) |
Thanks for the feedback @nosolosw. It sounds like once we've figured out the issue with |
The issue I mentioned above regarding |
Hey @jg314, it's likely a bug in the docs tool. I'm setting up a Windows environment and looking into it now 🙂 |
Co-Authored-By: Robert Anderson <robert@noisysocks.com>
The necessary URLs have been updated to be absolute. Once I'm able to run Thanks for all the help on this so far everyone. |
All URLs works properly, I'm glad we managed to clarify what's the proper approach. It's still not ideal but at least we have an agreement :) |
I spent some more time today trying to run |
I was finally able to get
Once it runs a lot of |
Hey @noisysocks and @gziolo, is there anything else I can do to move this forward? Thanks again for all the help on this front. |
Hey @jg314, sorry for the delay—I've been away on vacation!
No, that doesn't seem right 😕 This should be the result of diff --git a/docs/manifest-devhub.json b/docs/manifest-devhub.json
index f762d1422..754744fcd 100644
--- a/docs/manifest-devhub.json
+++ b/docs/manifest-devhub.json
@@ -137,6 +137,12 @@
"markdown_source": "../docs/designers-developers/developers/slotfills/plugin-sidebar-more-menu-item.md",
"parent": "slotfills"
},
+ {
+ "title": "RichText Reference",
+ "slug": "richtext",
+ "markdown_source": "../docs/designers-developers/developers/richtext.md",
+ "parent": "developers"
+ },
{
"title": "Internationalization",
"slug": "internationalization", Let's try to get everything fixed up over in #16029 and then we can continue with this PR 🙂 — thanks for your patience! |
Thanks for getting back to me @noisysocks. I really appreciate it. And that sounds good, let's work on #16029 first and then we'll get to this one. |
After the awesome work @noisysocks did on #16029 I was able to commit up the modified manifest.json file and the checks have passed. @noisysocks, is there anything else I can do to help at this point? |
Thanks for your patience @jg314 and for contributing some documentation! This looks like a great start to get in and iterate on 🙂 |
Awesome, I'm happy to see it live. Thanks again for all the help @noisysocks. I really appreciate it. |
Description
Add RichText component documentation to the Block Editor Handbook. Currently all that exists is the Github documentation at https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/rich-text/README.md.
How has this been tested?
I did not test this outside of the basic code example provided in the content. If there is other testing that's needed please let me know.
Types of changes
Other Notes
npm run docs:build
as noted on https://github.com/WordPress/gutenberg/blob/master/docs/contributors/document.md, but I continued to get an error within terminal. Let me know if it would be helpful for me to troubleshoot that.