99 lines
5.5 KiB
Markdown
99 lines
5.5 KiB
Markdown
# Standard Readme
|
|
|
|
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
|
|
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
|
|
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
|
|
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
|
|
|
|
> Readme Standard Style
|
|
|
|
Your README file is normally the first entry point to your code. It should tell people why they should use your module, how they can install it, and how they can use it. Standardizing how you write your README makes creating and maintaining your READMEs easier. Great documentation takes work!
|
|
|
|
This repository contains:
|
|
|
|
1. [The specification](spec.md) for how a standard README should look.
|
|
2. A link to a linter you can use to keep your README maintained ([work in progress](https://github.com/RichardLitt/standard-readme/issues/5)).
|
|
3. A link to [a generator](https://github.com/RichardLitt/generator-standard-readme) you can use to create standard READMEs.
|
|
4. [A badge](#badge) to point to this spec.
|
|
5. [Examples of standard READMEs](example-readmes/) - such as this file you are reading.
|
|
|
|
|
|
## Table of Contents
|
|
|
|
- [Background](#background)
|
|
- [Install](#install)
|
|
- [Usage](#usage)
|
|
- [Generator](#generator)
|
|
- [Badge](#badge)
|
|
- [Example Readmes](#example-readmes)
|
|
- [Contribute](#contribute)
|
|
- [License](#license)
|
|
|
|
## Background
|
|
|
|
Standard Readme started with the issue originally posed by [@maxogden](https://github.com/maxogden) over at [feross/standard](https://github.com/feross/standard) in [this issue](https://github.com/feross/standard/issues/141), about whether or not a tool to standardize readmes would be useful. A lot of that discussion ended up in [zcei's standard-readme](https://github.com/zcei/standard-readme/issues/1) repository. While working on maintaining the [IPFS](https://github.com/ipfs) repositories, I needed a way to standardize Readmes across that organization. This specification started as a result of that.
|
|
|
|
> Your documentation is complete when someone can use your module without ever
|
|
having to look at its code. This is very important. This makes it possible for
|
|
you to separate your module's documented interface from its internal
|
|
implementation (guts). This is good because it means that you are free to
|
|
change the module's internals as long as the interface remains the same.
|
|
|
|
> Remember: the documentation, not the code, defines what a module does.
|
|
|
|
~ [Ken Williams, Perl Hackers](http://mathforum.org/ken/perl_modules.html#document)
|
|
|
|
Writing READMEs is way too hard, and keeping them maintained is difficult. By offloading this process - making writing easier, making editing easier, making it clear whether or not an edit is up to spec or not - you can spend less time worry about whether or not your initial documentation is good, and spend more time writing and using code.
|
|
|
|
As well, standardizing can help elsewhere. By having a standard, users can spend less time searching for the information they want. They can also build tools to gather search terms from descriptions, to automatically run example code, to check licensing, and so on.
|
|
|
|
The goals for this repository are:
|
|
|
|
1. A well defined **specification**. This can be found in the [Spec document](spec.md). It is a constant work in progress; please open issues to discuss changes.
|
|
2. **An example README**. This Readme is fully standard-readme compliant, and there are more examples in the `example-readmes` folder.
|
|
3. A **linter** that can be used to look at errors in a given Readme. Please refer to the [tracking issue](https://github.com/RichardLitt/standard-readme/issues/5).
|
|
4. A **generator** that can be used to quickly scaffold out new READMEs. See [generator-standard-readme](https://github.com/RichardLitt/generator-standard-readme).
|
|
5. A **compliant badge** for users. See [the badge](#badge).
|
|
|
|
## Install
|
|
|
|
This project uses [node](http://nodejs.org) and [npm](https://npmjs.com). Go check them out if you don't have them locally installed.
|
|
|
|
```sh
|
|
$ npm i standard-readme
|
|
```
|
|
|
|
## Usage
|
|
|
|
Currently, this is mainly a documentation package. You will get the most benefit by reading [spec.md](spec.md).
|
|
|
|
### Generator
|
|
|
|
To use the generator, look at [generator-standard-readme](https://github.com/RichardLitt/generator-standard-readme). There is a global executable to run the generator in that package, aliased as `standard-readme`.
|
|
|
|
### Badge
|
|
|
|
If your README is compliant with Standard-Readme and you're on GitHub, it would be great if you could add the badge. This allows people to link back to this Spec, and helps adoption of the README. The badge is **not required**.
|
|
|
|
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
|
|
|
|
To add in Markdown format, use this code:
|
|
|
|
```
|
|
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
|
|
```
|
|
|
|
### Example Readmes
|
|
|
|
To see how the specification has been applied, see the [example-readmes](example-readmes/).
|
|
|
|
## Contribute
|
|
|
|
Feel free to dive in! [Open an issue](https://github.com/RichardLitt/standard-readme/issues/new) or submit PRs.
|
|
|
|
Standard Readme follows the [Contributor Covenant](http://contributor-covenant.org/version/1/3/0/) Code of Conduct.
|
|
|
|
## License
|
|
|
|
[MIT](LICENSE) © Richard Littauer
|