Commit b60d87940fb for woocommerce
commit b60d87940fbe153dff8861609bb97530c24dda66
Author: Brian Coords <bacoords@gmail.com>
Date: Thu Apr 23 01:49:15 2026 -0700
Fix broken URL and footer logo image in developer docs (#64336)
* fixes woo code reference link
* reverts broken footer image path
* remote leading slash from img url
diff --git a/docs/_docu-tools/docusaurus.config.ts b/docs/_docu-tools/docusaurus.config.ts
index 7e5b7a7eebe..f894e402a50 100644
--- a/docs/_docu-tools/docusaurus.config.ts
+++ b/docs/_docu-tools/docusaurus.config.ts
@@ -35,10 +35,10 @@ const config: Config = {
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
- locales: [ 'en' ],
+ locales: ['en'],
},
- plugins: [ './llms-txt/index.ts', './consent-plugin/index.ts' ],
+ plugins: ['./llms-txt/index.ts', './consent-plugin/index.ts'],
presets: [
[
@@ -49,21 +49,21 @@ const config: Config = {
docs: {
sidebarPath: './sidebars.ts',
path: '../',
- exclude: [ '_docu-tools/**' ],
+ exclude: ['_docu-tools/**'],
showLastUpdateTime: true,
editUrl:
'https://github.com/woocommerce/woocommerce/tree/trunk/docs/docs/',
routeBasePath: '/',
// Custom sidebar filter to remove some items from the docs sidebar.
- async sidebarItemsGenerator( {
+ async sidebarItemsGenerator({
defaultSidebarItemsGenerator,
...args
- } ) {
+ }) {
let sidebarItems = await defaultSidebarItemsGenerator(
args
);
- sidebarItems = filterSidebarItems( sidebarItems );
+ sidebarItems = filterSidebarItems(sidebarItems);
return sidebarItems;
},
},
@@ -200,19 +200,19 @@ const config: Config = {
],
},
],
- copyright: `Copyright © ${ new Date().getFullYear() } Built with Docusaurus. Documentation is licensed under <a href="https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/license.txt/">GPLv3</a> and can be modified in the <a href="https://github.com/woocommerce/woocommerce/">WooCommerce Monorepo</a>.
+ copyright: `Copyright © ${new Date().getFullYear()} Built with Docusaurus. Documentation is licensed under <a href="https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/license.txt/">GPLv3</a> and can be modified in the <a href="https://github.com/woocommerce/woocommerce/">WooCommerce Monorepo</a>.
<div class="docusaurus-footer-for-automattic">
<a href="https://automattic.com/">
An
- <img src="/docs/img/automattic.svg" alt="Automattic" class="automattic-logo automattic-logo-light" />
- <img src="/docs/img/automattic_dark.svg" alt="Automattic" class="automattic-logo automattic-logo-dark" />
+ <img src="img/automattic.svg" alt="Automattic" class="automattic-logo automattic-logo-light" />
+ <img src="img/automattic_dark.svg" alt="Automattic" class="automattic-logo automattic-logo-dark" />
Creation</a>
</div>`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
- additionalLanguages: [ 'php' ],
+ additionalLanguages: ['php'],
},
// colorMode: {
// defaultMode: 'light',
diff --git a/docs/apis/README.md b/docs/apis/README.md
index eeffda80e94..d4c3eedb6c6 100644
--- a/docs/apis/README.md
+++ b/docs/apis/README.md
@@ -53,4 +53,4 @@ The WooCommerce Code Reference is a comprehensive documentation of the WooCommer
The WooCommerce Code Reference is a comprehensive documentation of the internal WooCommerce Classes, API, and functions. It is a great resource for developers to learn about the WooCommerce functionality and how to extend it.
-Explore the [WooCommerce Code Reference](https://developer.wordpress.org/reference/classes/woocommerce/) documentation.
+Explore the [WooCommerce Code Reference](https://woocommerce.github.io/code-reference/) documentation.