Update API and HTML style guides.

- 80-character line limit in HTML.
This commit is contained in:
CJ Cenizal 2016-06-09 15:32:03 -07:00
parent 9d8776b199
commit 81fb346a8c
2 changed files with 5 additions and 5 deletions

View file

@ -1,12 +1,12 @@
# Api Style Guide
# API Style Guide
## Paths
API routes must start with the `/api/` path segment, and should be followed by the plugin id if applicable:
*Right:* `/api/marvel/v1/nodes`
*Wrong:* `/marvel/api/v1/nodes`
*Right:* `/api/marvel/nodes`
*Wrong:* `/marvel/api/nodes`
## Versions

View file

@ -1,9 +1,9 @@
# Html Style Guide
# HTML Style Guide
## Multiple attribute values
When a node has multiple attributes that would cause it to exceed the line character limit, each attribute including the first should be on its own line with a single indent. Also, when a node that is styled in this way has child nodes, there should be a blank line between the opening parent tag and the first child tag.
When a node has multiple attributes that would cause it to exceed the 80-character line limit, each attribute including the first should be on its own line with a single indent. Also, when a node that is styled in this way has child nodes, there should be a blank line between the opening parent tag and the first child tag.
```
<ul