Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 00a1174

Browse files
authored
Correct broken *.md links (#7108)
1 parent f27456d commit 00a1174

File tree

37 files changed

+265
-283
lines changed

37 files changed

+265
-283
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# WooCommerce Blocks <!-- omit in toc -->
22

33
[![Latest Tag](https://img.shields.io/github/tag/woocommerce/woocommerce-gutenberg-products-block.svg?style=flat&label=Latest%20Tag)](https://github.com/woocommerce/woocommerce-gutenberg-products-block/releases)
4-
[![View](https://img.shields.io/badge/Project%20Components-brightgreen.svg?style=flat)](https://woocommerce.github.io/woocommerce-gutenberg-products-block)
4+
[![View](https://img.shields.io/badge/Project%20Components-brightgreen.svg?style=flat)](https://woocommerce.github.io/woocommerce-blocks/)
55
![JavaScript and CSS Linting](https://github.com/woocommerce/woocommerce-gutenberg-products-block/workflows/JavaScript%20and%20CSS%20Linting/badge.svg?branch=trunk)
66
![PHP Coding Standards](https://github.com/woocommerce/woocommerce-gutenberg-products-block/workflows/PHP%20Coding%20Standards/badge.svg?branch=trunk)
77
![Automated tests](https://github.com/woocommerce/woocommerce-gutenberg-products-block/workflows/Automated%20tests/badge.svg?branch=trunk)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# WooCommerce Blocks - General Purpose Components
22

3-
These are shared components used in WooCommerce blocks, and may be used in the store front end (shopper experience) as well as the editor or admin dashboard.
3+
These are shared components used in WooCommerce blocks, and may be used in the store front end (shopper experience) as well as the editor or admin dashboard.
44

5-
See [_Components & Storybook_](docs/contributors/storybook.md) doc for more information.
5+
See [_Components & Storybook_](../../../../docs/contributors/contributing/storybook-and-components.md) doc for more information.

assets/js/data/schema/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
## Table of contents <!-- omit in toc -->
44

5-
- [Table of contents](#table-of-contents)
65
- [Actions](#actions)
76
- [`receiveRoutes( routes, namespace = '/wc/blocks' )`](#receiveroutes-routes-namespace--wcblocks-)
87
- [Selectors](#selectors)

assets/js/editor-components/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ These are shared components used in WooCommerce blocks for the editor (Gutenberg
44

55
Many of our blocks need rich, smart components to provide an interface for selecting or configuring blocks with WooCommerce data. Often there are multiple blocks that need such components. Components in this collection are used in multiple blocks, and may include logic for working with Woo data specifically (e.g. products, shipping methods, product categories).
66

7-
See [Storybook & Components](docs/contributors/storybook.md) doc for more information.
7+
See [Storybook & Components](../../../docs/contributors/contributing/storybook-and-components.md) doc for more information.
88

99
<!-- FEEDBACK -->
1010

bin/hook-docs/data/actions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/johnbillion/wp-hooks-generator/0.7.0/schema.json",
2+
"$schema": "https://raw.githubusercontent.com/wp-hooks/generator/0.9.0/schema.json",
33
"hooks": [
44
{
55
"name": "woocommerce_add_to_cart",

bin/hook-docs/data/filters.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/johnbillion/wp-hooks-generator/0.7.0/schema.json",
2+
"$schema": "https://raw.githubusercontent.com/wp-hooks/generator/0.9.0/schema.json",
33
"hooks": [
44
{
55
"name": "__experimental_woocommerce_blocks_add_data_attributes_to_block",
@@ -339,18 +339,6 @@
339339
},
340340
"args": 1
341341
},
342-
{
343-
"name": "woocommerce_admin_disabled",
344-
"file": "InboxNotifications.php",
345-
"type": "filter",
346-
"doc": {
347-
"description": "",
348-
"long_description": "",
349-
"tags": [],
350-
"long_description_html": ""
351-
},
352-
"args": 1
353-
},
354342
{
355343
"name": "woocommerce_apply_individual_use_coupon",
356344
"file": "StoreApi/Utilities/CartController.php",

bin/hook-docs/format-hook-doc/files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const files = ( sources ) => {
22
return sources && sources.length
33
? {
44
ul: sources.map( ( file ) => {
5-
return `[${ file }](../../src/${ file })`;
5+
return `[${ file }](../../../../src/${ file })`;
66
} ),
77
}
88
: null;

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ The following tutorials from [developer.woocommerce.com](https://developer.wooco
146146

147147
[We're hiring!](https://woocommerce.com/careers/) Come work with us!
148148

149-
🐞 Found a mistake, or have a suggestion? [Leave feedback about this document here.](https://github.com/woocommerce/woocommerce-blocks/issues/new?assignees=&labels=type%3A+documentation&template=--doc-feedback.md&title=Feedback%20on%20./docs/readme.md)
149+
🐞 Found a mistake, or have a suggestion? [Leave feedback about this document here.](https://github.com/woocommerce/woocommerce-blocks/issues/new?assignees=&labels=type%3A+documentation&template=--doc-feedback.md&title=Feedback%20on%20./docs/README.md)
150150

151151
<!-- /FEEDBACK -->
152152

docs/contributors/components.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
22

33
This repo includes [Storybook](https://storybook.js.org) tooling so we can test and develop components in isolation.
44

5-
The storybook is automatically built and published to [GitHub pages](https://woocommerce.github.io/woocommerce-gutenberg-products-block/) on every push to the main branch. See [travis.yml](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/trunk/.travis.yml) for details.
6-
7-
<https://woocommerce.github.io/woocommerce-gutenberg-products-block/>
5+
The storybook is automatically built and published to [GitHub pages](https://woocommerce.github.io/woocommerce-blocks/) on every push to the main branch.
86

97
## Where are our components?
108

119
We have components in a few folders, for different contexts.
1210

13-
- [`assets/js/base/components`](https://github.com/woocommerce/woocommerce-gutenberg-products-block/tree/trunk/assets/js/base/components)
14-
- [`assets/js/editor-components`](https://github.com/woocommerce/woocommerce-gutenberg-products-block/tree/trunk/assets/js/editor-components)
15-
- [`assets/js/icons`](https://github.com/woocommerce/woocommerce-gutenberg-products-block/tree/trunk/assets/js/icons)
11+
- [`assets/js/base/components`](../../assets/js/base/components)
12+
- [`assets/js/editor-components`](../../assets/js/editor-components)
13+
- [`assets/js/icons`](../../assets/js/icons)
1614

1715
**`assets/js/base/components`** are used in front-end code, as well as editor & admin.
1816
These components help us build consistent interfaces across the front end (shopper) experience and elsewhere.
@@ -27,7 +25,7 @@ They allow us to build a consistent and powerful UI for merchants for authoring
2725

2826
**`assets/js/icons`** is a suite of icons and SVG images that we use in our interfaces.
2927

30-
For more info about individual components, refer to [Storybook](https://woocommerce.github.io/woocommerce-gutenberg-products-block/) or individual readme files.
28+
For more info about individual components, refer to [Storybook](https://woocommerce.github.io/woocommerce-blocks/) or individual readme files.
3129

3230
## How to run Storybook locally and test components
3331

docs/contributors/contributing/getting-started.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
## Table of contents <!-- omit in toc -->
44

5-
- [Cloning the Git Repository](#cloning-the-git-repository)
6-
- [Configuring your WordPress site](#configuring-your-wordpress-site)
7-
- [Installing dependencies](#installing-dependencies)
8-
- [Building the plugin files](#building-the-plugin-files)
9-
- [Legacy builds](#legacy-builds)
10-
- [Create a plugin package in ZIP format](#create-a-plugin-package-in-zip-format)
11-
- [Linting](#linting)
12-
- [Running the Blocks plugin](#running-the-blocks-plugin)
13-
- [Developer Tools (Visual Studio Code)](#developer-tools-visual-studio-code)
14-
- [EditorConfig](#editorconfig)
15-
- [ESLint](#eslint)
16-
- [Prettier](#prettier)
17-
- [Testing](#testing)
5+
- [Cloning the Git Repository](#cloning-the-git-repository)
6+
- [Configuring your WordPress site](#configuring-your-wordpress-site)
7+
- [Installing dependencies](#installing-dependencies)
8+
- [Building the plugin files](#building-the-plugin-files)
9+
- [Legacy builds](#legacy-builds)
10+
- [Create a plugin package in ZIP format](#create-a-plugin-package-in-zip-format)
11+
- [Linting](#linting)
12+
- [Running the Blocks plugin](#running-the-blocks-plugin)
13+
- [Developer Tools (Visual Studio Code)](#developer-tools-visual-studio-code)
14+
- [EditorConfig](#editorconfig)
15+
- [ESLint](#eslint)
16+
- [Prettier](#prettier)
17+
- [Testing](#testing)
1818

1919
Before you can begin contributing to the Blocks plugin there are several steps and tools required to setup your local development environment.
2020

@@ -52,7 +52,7 @@ To install dependencies, you will need the following tools installed on your mac
5252
- [`npm` and `node.js`](https://nodejs.org)
5353
- [`composer`](https://getcomposer.org)
5454

55-
See [`package.json` `engines`](../../package.json) for details of required versions.
55+
See [`package.json` `engines`](../../../package.json) for details of required versions.
5656

5757
Once you have `node` and `composer` setup, install the dependencies from the command line:
5858

@@ -79,7 +79,7 @@ This plugin supports two type of builds:
7979

8080
The legacy builds are loaded in a site environment where the WordPress version doesn't meet minimum requirements for a component used in a set build.
8181

82-
You can read more about legacy builds in the [this doc](./assets/js/legacy/README.md).
82+
You can read more about legacy builds in the [this doc](../../../assets/js/legacy/README.md).
8383

8484
## Create a plugin package in ZIP format
8585

@@ -96,9 +96,9 @@ Run `$ npm run lint` to check code against our linting rules.
9696

9797
This script runs 3 sub-commands: `lint:php`, `lint:css`, `lint:js`. Use these to run linters across the codebase (linters check for valid syntax).
9898

99-
- `lint:php` runs phpcs via composer, which uses the [phpcs.xml](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/trunk/phpcs.xml) rule set.
100-
- `lint:css` runs stylelint over all the scss code in `assets/css`, using the rules in [.stylelintrc.json.](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/trunk/.stylelintrc.json)
101-
- `lint:js` runs eslint over all the JavaScript, using the rules in [.eslintrc.js.](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/trunk/.eslintrc.js)
99+
- `lint:php` runs phpcs via composer, which uses the [phpcs.xml](../../../phpcs.xml) rule set.
100+
- `lint:css` runs stylelint over all the scss code in `assets/css`, using the rules in [.stylelintrc.json.](../../../.stylelintrc.json)
101+
- `lint:js` runs eslint over all the JavaScript, using the rules in [.eslintrc.js.](../../../.eslintrc.js)
102102

103103
Note; linters are also ran before commits via Git. If there are any violations, you will not be able to commit your changes until they are fixed, unless you add the `--no-verify` flag to your commit command.
104104

@@ -148,7 +148,7 @@ You’ll find a handful of scripts in `package.json` that performs the automated
148148
- JS tests: `npm run test`
149149
- Run `npm run wp-env` command to setup the development environment in Docker.
150150

151-
To find out more about how to run automated JavaScript tests, check out the documentation on [JavaScript Testing](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/trunk/docs/contributors/javascript-testing.md).
151+
To find out more about how to run automated JavaScript tests, check out the documentation on [JavaScript Testing](../../contributors/contributing/javascript-testing.md).
152152

153153
<!-- FEEDBACK -->
154154

0 commit comments

Comments
 (0)