Several issues with the documentation. #36059
OdifYltsaeb
started this conversation in
Community
Replies: 1 comment 1 reply
-
Hi @OdifYltsaeb, PRs that improve docs are welcome and encouraged! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Preliminary Checks
Summary
I have several issues with the documentation. They are misleading, there is not enough information, they are not up-to-date or there are other things missing.
Background - I'm using docker image (wordpress:latest) and gatsby generated with
gatsby new my-wordpress-gatsby-site https://github.com/gatsbyjs/gatsby-starter-wordpress-blog
1). https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-wordpress/docs/tutorials/configuring-wp-gatsby.md says:
You will see 5 fields related to Gatsby Preview. "Enable Gatsby Preview?", "Use Gatsby Content Sync?", "Content Sync URL", "Preview Webhook", and "Preview JWT secret". If you do not see "Use Gatsby Content Sync?" you're on the latest version of WPGatsby and this field isn't needed.
While in fact the WP-gatsby 2.3.3 has 6 fields. There is no "use gatsby contact sync" field.The information about how to configure and enable the gatsby preview is lacking. The image mentions HTTP://localhost:8000/__refresh as refresh hook, but mentions nothing about having to configure
ENABLE_GATSBY_REFRESH_ENDPOINT
.env.development. The documentation should link here: https://www.gatsbyjs.com/docs/refreshing-content/After enabling the gatsby preview and turning the refresh endpoint on, the gatsby previews still don't work. The __refresh endpoint seems to be working when you run
curl -X POST http://localhost:8000/__refresh
. But ONLY if you do not use the preview button but "UPDATE" button and run the curl command against the __refresh endpoint manually. So I'm guessing the documentation is lacking something else here also.Suggestions on how to improve the documentation:
Steps to Resolve this Issue
...
Beta Was this translation helpful? Give feedback.
All reactions