Skip to content

Commit 2c5cca0

Browse files
committed
readme
1 parent 5b3ee86 commit 2c5cca0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ The demo site is a Gatsby blog that has been modified to have some inaccessible
1111
- the [Hello World](https://netlify-plugin-a11y.netlify.com/hello-world/) page has an image with no `alt` text
1212
- the [Second Post](https://netlify-plugin-a11y.netlify.com/my-second-post/) page has a form no submit button, and an input with no label.
1313

14-
You can see the impact of the plugin in the deploy logs of this demo site: https://app.netlify.com/sites/netlify-plugin-a11y/deploys. By default, the plugin is set to error on failure.
14+
You can see the impact of the plugin in the deploy logs of this demo site: https://app.netlify.com/sites/netlify-plugin-a11y/deploys. By default, the plugin is set to error on failure:
15+
16+
17+
![image](https://user-images.githubusercontent.com/6764957/77147207-226b8600-6a63-11ea-91b2-2de449ef6682.png)
1518

1619

1720
But if that is too drastic, you can switch to `resultMode = "warn"` so that builds don't fail:

plugin/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ function netlifyPlugin(conf) {
5858
} else {
5959
results.forEach((res) => {
6060
console.warn(
61-
`${chalk.magenta(res.type)} ${chalk.cyan(res.typeCode)}: ${
61+
`[${chalk.cyan.bold(res.documentTitle)} (${path.relative(
62+
process.cwd(),
63+
res.pageUrl
64+
)})] ${chalk.magenta(res.type)} ${chalk.cyan(res.typeCode)}: ${
6265
res.message
6366
} (${chalk.cyan(res.context)})`
6467
);

0 commit comments

Comments
 (0)