Skip to content

Commit aae72e9

Browse files
authored
Merge pull request #19 from HonkingGoose/docs/readme
Rewrite readme
2 parents d0a0e00 + 55f528d commit aae72e9

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

README.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
# Accessibility-alt-text-bot
22

3-
This action supports accessible content sharing on GitHub by leaving an automated reminder whenever an image is shared on a GitHub Issue, Pull request, or Discussion without meaningful alternative text (alt text).
4-
Alternative text helps convey the context of the image to those who use assistive technologies such as a screen reader and removes accessibility barriers.
3+
This action reminds users to add a meaningful alternative text to their images.
4+
Alternative text helps users who rely on tools like screen readers, and lowers accessibility barriers.
55

6-
For guidance on setting alternative text, see [Alternative text for images on Primer](https://primer.style/design/guides/accessibility/alternative-text-for-images).
6+
The action can check:
77

8-
Images on GitHub default to using the filename as alt text. This action flags when the alt text has not been updated from the default:
8+
- Issues
9+
- Pull Requests
10+
- Discussions
11+
12+
To learn how to write good alternative text, read [Alternative text for images on Primer](https://primer.style/design/guides/accessibility/alternative-text-for-images).
13+
14+
## Why you may need this action
15+
16+
Images on GitHub default to using the filename as alt text.
17+
This action flags when the alt text has not been updated from the default:
918

1019
<img width="758" alt="Screenshot of an automated actions comment on a GitHub issue that says, 'Uh oh! @monalisa, the image you shared is missing helpful alt text...' and contains instructions for setting alt text" src="https://github.com/github/accessibility-alt-text-bot/assets/16447748/c61cc9c6-f8c8-4bfb-becb-a155c2c9711d">
1120

12-
**Note**: Ordinarily, setting `alt=""` will mark images as decorative. However, GitHub currently renders all images as a link. To avoid rendering links with no names, we recommend always setting alt text on images in GitHub.
21+
> **Note**
22+
> Normally, setting `alt=""` marks images as decorative. But GitHub renders all images as a link. To avoid rendering links with no names, we recommend always setting alt text on images in GitHub.
1323
1424
## How to add this action to your repo
1525

16-
Copy this workflow into any repo you want the accessibility-alt-text-bot to run in.
26+
Copy this workflow into any repo you want the `accessibility-alt-text-bot` to run in:
1727

1828
```yml
1929
name: Accessibility-alt-text-bot
@@ -44,9 +54,10 @@ jobs:
4454
uses: github/[email protected] # Set to latest
4555
```
4656
47-
### Action stability
57+
### Pin the action's version for stability
4858
49-
To ensure you stay on a stable version of this action consider locking the action to a specific version.
59+
We recommend you pin the action to a specific version.
60+
This makes sure you stay on a stable version of this action.
5061
5162
```yml
5263
uses: github/[email protected]
@@ -56,7 +67,8 @@ Replace the ref value with any commit hash.
5667
5768
## License
5869
59-
This project is licensed under the terms of the MIT open source license. Please refer to [MIT](./LICENSE.txt) for the full terms.
70+
This project is licensed under the terms of the MIT open source license.
71+
Please read [the MIT license file](./LICENSE.txt) for the full terms.
6072
6173
## Maintainers
6274
@@ -68,7 +80,7 @@ TODO: Be explicit about support expectations.
6880
6981
## Acknowledgement
7082
71-
Please read [Contributing Guide](./CONTRIBUTING.md) for more information.
83+
Please read our [Contributing Guide](./CONTRIBUTING.md) for more information.
7284
7385
## Contributors ✨
7486
@@ -92,4 +104,5 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
92104
93105
<!-- ALL-CONTRIBUTORS-LIST:END -->
94106
95-
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
107+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification.
108+
Contributions of any kind welcome!

0 commit comments

Comments
 (0)