mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Update API and HTML style guides.
- 80-character line limit in HTML.
This commit is contained in:
parent
9d8776b199
commit
81fb346a8c
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue