Skip to content

[Docs] Removing docs fragments#3470

Open
fellyph wants to merge 12 commits intotrunkfrom
removing-docs-fragments
Open

[Docs] Removing docs fragments#3470
fellyph wants to merge 12 commits intotrunkfrom
removing-docs-fragments

Conversation

@fellyph
Copy link
Copy Markdown
Collaborator

@fellyph fellyph commented Apr 6, 2026

This pull request removes the fragments to ensure compatibility with the .org script handbook.

  • Removed the use of fragment imports like APIList, ThisIsQueryApi, PlaygroundWpNetWarning, and JSApiShortExample from documentation files, replacing them with inlined content for API lists, caution messages, and code examples. This streamlines the documentation and reduces indirection. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21]

Content clarity and accessibility:

  • API lists are now directly included in the documentation, making it easier for users to see and choose between the available APIs (Query API, Blueprints API, JavaScript API) without needing to follow fragment imports. [1] [2] [3] [4] [5]
  • Caution notes about the reliability of the demo site at playground.wordpress.net are now directly embedded in the relevant docs, improving visibility for users. [1] [2] [3] [4]
  • Short JavaScript API usage examples are now inlined, making it easier for readers to quickly see how to use the API without jumping between files. [1] [2] [3]

Translation and localization:

  • All of the above improvements are also applied to the Bengali (bn) and Spanish (es) documentation, ensuring consistency across languages. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

General cleanup:

  • Removed outdated or redundant warning and work-in-progress notices from documentation fragments. [1] [2]

These changes make the documentation more self-contained, easier to maintain, and more user-friendly for both English and translated versions.

fellyph added 7 commits April 6, 2026 12:50
…PIs and caution regarding the demo site. Removed outdated fragments and improved API descriptions for better user guidance.
…s. Added caution regarding the demo site's reliability and removed outdated fragments. Enhanced API descriptions for better user guidance.
…aution about demo site reliability, improving API descriptions, and removing outdated fragments. Clarified usage of Query API across multiple sections.
…consistency across multiple languages. Improved descriptions of the Query API and streamlined navigation sections. Removed outdated fragments and ensured all links are functional.
…istency across multiple languages. Added caution regarding the demo site's reliability, enhanced descriptions of the Query API, and removed outdated fragments. Streamlined navigation sections for better user experience.
@fellyph fellyph requested review from brandonpayton and Copilot April 6, 2026 11:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes MD/MDX fragment imports from the docs (including localized copies) and inlines the fragment content directly to better align with the WordPress.org handbook tooling.

Changes:

  • Replaced fragment imports (API list, Query API callout, demo-site caution, JS short example) with inlined Markdown/MDX content across docs.
  • Deleted fragment files that are no longer referenced.
  • Applied the same inlining approach across multiple locales.

Reviewed changes

Copilot reviewed 35 out of 35 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
packages/docs/site/i18n/tl/docusaurus-plugin-content-docs/current/main/quick-start-guide.md Inlines the “ThisIsQueryApi” callout text
packages/docs/site/i18n/tl/docusaurus-plugin-content-docs/current/main/intro.md Replaces API list fragment with an inlined API list
packages/docs/site/i18n/pt-BR/docusaurus-plugin-content-docs/current/main/quick-start-guide.md Inlines the “ThisIsQueryApi” callout text
packages/docs/site/i18n/pt-BR/docusaurus-plugin-content-docs/current/main/intro.md Replaces API list fragment with an inlined API list
packages/docs/site/i18n/pt-BR/docusaurus-plugin-content-docs/current/developers/06-apis/javascript-api/01-index.md Inlines the short JavaScript API HTML example
packages/docs/site/i18n/pt-BR/docusaurus-plugin-content-docs/current/developers/03-build-an-app/01-index.md Inlines demo-site caution + API list + Query API callout
packages/docs/site/i18n/pt-BR/docusaurus-plugin-content-docs/current/_fragments/_work_in_progress.md Deletes unused fragment
packages/docs/site/i18n/pt-BR/docusaurus-plugin-content-docs/current/_fragments/_this_is_query_api.md Deletes unused fragment
packages/docs/site/i18n/pt-BR/docusaurus-plugin-content-docs/current/_fragments/_playground_wp_net_may_stop_working.md Deletes unused fragment
packages/docs/site/i18n/pt-BR/docusaurus-plugin-content-docs/current/_fragments/_api_list.mdx Deletes unused fragment
packages/docs/site/i18n/ja/docusaurus-plugin-content-docs/current/main/quick-start-guide.md Inlines the “ThisIsQueryApi” callout text
packages/docs/site/i18n/ja/docusaurus-plugin-content-docs/current/main/intro.md Replaces API list fragment with an inlined API list
packages/docs/site/i18n/ja/docusaurus-plugin-content-docs/current/developers/06-apis/javascript-api/01-index.md Inlines the short JavaScript API HTML example
packages/docs/site/i18n/ja/docusaurus-plugin-content-docs/current/developers/06-apis/01-index.md Inlines Query API callout, JS example, demo-site caution, and API list
packages/docs/site/i18n/ja/docusaurus-plugin-content-docs/current/developers/03-build-an-app/01-index.md Inlines demo-site caution + API list + Query API callout
packages/docs/site/i18n/gu/docusaurus-plugin-content-docs/current/main/quick-start-guide.md Inlines the “ThisIsQueryApi” callout text
packages/docs/site/i18n/gu/docusaurus-plugin-content-docs/current/main/intro.md Replaces API list fragment with an inlined API list
packages/docs/site/i18n/fr/docusaurus-plugin-content-docs/current/main/quick-start-guide.md Inlines the “ThisIsQueryApi” callout text
packages/docs/site/i18n/fr/docusaurus-plugin-content-docs/current/main/intro.md Inlines API list and adjusts formatting/comment blocks
packages/docs/site/i18n/fr/docusaurus-plugin-content-docs/current/developers/03-build-an-app/01-index.md Inlines demo-site caution + API list + Query API callout
packages/docs/site/i18n/es/docusaurus-plugin-content-docs/current/main/quick-start-guide.md Inlines the “ThisIsQueryApi” callout text
packages/docs/site/i18n/es/docusaurus-plugin-content-docs/current/main/intro.md Replaces API list fragment with an inlined API list
packages/docs/site/i18n/es/docusaurus-plugin-content-docs/current/developers/03-build-an-app/01-index.md Inlines demo-site caution + API list + Query API callout
packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/quick-start-guide.md Inlines the “ThisIsQueryApi” callout text
packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/current/main/intro.md Replaces API list fragment with an inlined API list
packages/docs/site/docs/main/quick-start-guide.md Inlines the “ThisIsQueryApi” callout text
packages/docs/site/docs/main/intro.md Replaces API list fragment with an inlined API list
packages/docs/site/docs/developers/06-apis/javascript-api/01-index.md Inlines the short JavaScript API HTML example
packages/docs/site/docs/developers/06-apis/01-index.md Inlines Query API callout, JS example, demo-site caution, and API list
packages/docs/site/docs/developers/03-build-an-app/01-index.md Inlines demo-site caution + API list + Query API callout
packages/docs/site/docs/_fragments/_work_in_progress.md Deletes unused fragment
packages/docs/site/docs/_fragments/_this_is_query_api.md Deletes unused fragment
packages/docs/site/docs/_fragments/_playground_wp_net_may_stop_working.md Deletes unused fragment
packages/docs/site/docs/_fragments/_js_api_short_example.mdx Deletes unused fragment
packages/docs/site/docs/_fragments/_api_list.mdx Deletes unused fragment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…ated fragments and improving clarity. Adjusted comment syntax for better readability and streamlined navigation sections.
@fellyph fellyph requested review from a team and ashfame April 6, 2026 13:25
@fellyph fellyph added the [Type] Documentation Improvements or additions to documentation label Apr 6, 2026
fellyph and others added 4 commits April 7, 2026 09:55
…ent/developers/06-apis/01-index.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ent/main/quick-start-guide.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants