2016-05-12 21:57:48 +00:00
# Standard Readme
2015-12-27 21:01:27 +00:00
[![ ](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/)
2015-12-28 21:59:34 +00:00
[![ ](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square )](http://webchat.freenode.net/?channels=%23ipfs)
2015-12-27 21:01:27 +00:00
2016-05-12 22:00:56 +00:00
> Readme Standard Style
2015-12-27 21:01:27 +00:00
2016-05-12 21:26:29 +00:00
This repo is for standardizing how READMEs should look. The goal is to have:
- A well defined specification that other people could look to;
- An example README that can be used for comparison (this README.md is the example);
- A linter that can be used to look at errors in a given Readme;
- A generator that can be used to quickly scaffold out new READMEs.
2015-12-27 23:13:58 +00:00
2016-05-12 21:26:29 +00:00
There are many standards. This is mine.
** Table of Contents **
- [Installation ](#installation-1 )
- [Usage ](#usage )
- [Contribute ](#contribute )
- [Specification ](#specification )
- [Requirements ](#requirements )
- [Sections ](#sections )
- [Name ](#name )
- [one-line description ](#one-line-description )
- [Table of Contents ](#table-of-contents )
- [Usage Section ](#usage-section )
- [API ](#api )
- [Installation ](#installation )
- [License ](#license )
- [Suggestions ](#suggestions )
- [Background section ](#background-section )
- [Conventions ](#conventions )
- [License ](#license-1 )
## Installation
2016-05-12 22:10:19 +00:00
This project uses [node][] and [npm][]. Go check them out if you don't have them locally installed.
2016-05-12 21:26:29 +00:00
```sh
npm i -g standard-readme
```
2015-12-27 23:13:58 +00:00
## Usage
2016-05-12 22:07:20 +00:00
Currently, this is only a Readme spec. There are plans to add [a linter ](https://github.com/RichardLitt/standard-readme/issues/5 ) and [a generator ](https://github.com/RichardLitt/standard-readme/issues/6 ).
2015-12-27 23:13:58 +00:00
## Contribute
2016-05-12 22:07:20 +00:00
Feel free to dive in! [Open an issue ](https://github.com/RichardLitt/standard-readme/issues/new ) or submit PRs.
2015-12-27 23:13:58 +00:00
2016-05-12 21:26:29 +00:00
## Specification
### Requirements
A compliant README must:
- Be called README.md (with capitalization).
- Be a valid Markdown file.
### Sections
#### Name
**Status:** Optional.
**Requirements:**
- Must be first section.
- Must match repository name. If it cannot, there must be a note in the long description about why.
- Must match package manager name. If it cannot, there must be a note in the long description about why.
**Suggestions:**
- Should be self-evident.
#### Banner
**Status:** Optional.
**Requirements:**
- Must link to local image in current repository.
- Must appear directly after the title.
#### Badges
**Requirements:**
2016-05-12 21:58:32 +00:00
- If present, must go beneath banner (if present), or beneath title.
2016-05-12 21:26:29 +00:00
- Must be newline delimited.
2016-05-12 22:10:19 +00:00
#### Short Description
2016-05-12 21:58:32 +00:00
**Requirements:**
- Must be less than 120 characters.
- Must start with `> `
- Must be on it's own line.
2016-05-12 22:10:19 +00:00
- Must match the description in the packager manager's `description` field.
2016-05-12 21:58:32 +00:00
- Must match GitHub's description (if on GitHub).
**Suggestions:**
- Use [gh-description ](https://github.com/RichardLitt/gh-description ) to set and get GitHub description.
2016-05-12 22:10:19 +00:00
- Use `npm show . description` to show the description from a local [npm][] package.
2016-05-12 21:26:29 +00:00
#### Table of Contents
Requirements: There must be a Table of Contents that links to the
#### Usage Section
Suggestions: Cover promises/callbacks, ES6 here.
#### API
Requirements: Describe internal objects and functions, signatures, return types, callbacks, and events. Types covered where not obvious. Caveats.
#### Installation
Requirements: Installation command.
Suggestions: Link to prerequisite sites for language. [npmjs][], [godocs][], etc.
#### License
Requirements: State License.
Suggestions: Link to longer License file.
### Suggestions
#### Background section
Requirements: Motivation, abstract dependencies
#### Conventions
cb for callback
num for Number
int for Integer
bool for Boolean
etc.
2015-12-27 23:13:58 +00:00
## License
2015-12-28 16:01:03 +00:00
MIT (c) Protocol Labs
2016-05-12 22:10:19 +00:00
[node]: http://nodejs.org
2016-05-12 22:11:29 +00:00
[npm]: https://npmjs.com