RFC: Research: The Next Generation of the Headless Sitemap - Working Prototype , Conceptual Architecture, cli considerations #17
colinmurphy
started this conversation in
RFC
Replies: 2 comments 2 replies
-
This looks great to me! Thanks @colinmurphy ! |
Beta Was this translation helpful? Give feedback.
1 reply
-
Another option is to proxy the sitemaps from the back end through to the front end. This is what I did on https://wpdecoupled.dev. https://github.com/wpdecoupled/site/blob/main/src/routes/%5Bfile%3Dsitemap%5D/%2Bserver.ts
|
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
-
Abstract
This RFC explores the challenges of incorporating sitemaps into a WordPress headless application and the broader issues faced by the WordPress headless community. After reviewing and assessing various integration approaches, this RFC propose solutions to offer flexibility and a better experience for a developer when adding a sitemap to their WordPress headless application.
Motivation
Our motivation is to provide developers with easy to follow examples and documentation on how to integrate a sitemap into their headless application. We want to offer different solutions when building your sitemap. Additionally we would like to address how to integrate some of the most SEO WordPress plugins that our community uses.
We also want to foster a deeper understanding of the best practices for sitemaps in a headless WordPress aoplication. This means continuously updating and expanding our documentation and examples. We welcome community contributions and aim to build documentation and examples that is intuitive and beneficial to our community.
Research
We have conducted research in a few different aspects relating to sitemaps
Proposal
We propose to offer documentation and examples of how to build a sitemap in this toolkit repository.
From our research we determined that there was two main approaches to building a sitemap in headless WordPress. The first method was fetching and then parsing an existing sitemap from WordPress and the second approach was to create a custom sitemap by fetching the data through an API endpoint such as WP GraphQL.
For our initial set of examples and documentation we plan to document:
Within these examples and documentation we also plan to offer solutions around caching or adding/combining sitemap extensions and multisite.
Alternatives Considered
We have decided not to create a CLI package at this time for sitemaps as we felt that it wasn't the best approach. We also think that adding documentation and examples would be a a better way approach to serve the community as it gives optionality for the developer on how best to build their sitemap for their headless application.
Adoption Strategy
We aim to create the extensive documentation and examples for the WordPress headless community in relation to sitemaps. We will promote and encourage community contributions and reviews to foster a collaborative learning environment.
How Do We Teach This?
We will ensure that our documentation and example projects are easy to follow and provide strong community support.
How Can You Help?
We are excited about this new toolkit and the opportunities it presents for the WordPress headless community.
We’d love your feedback on the following:
RFC Changelog
Beta Was this translation helpful? Give feedback.
All reactions