aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-05-20 00:33:08 -0700
committerMark Otto <[email protected]>2013-05-20 00:33:08 -0700
commit554c24d9ae740f59f78c8494337e67cf5c36670c (patch)
tree7b1a6b07b6eb94ddfd99226e91937b69cd782087
parent13a4fb678ba2fbaf4a0bac650ecf5110fbb257e8 (diff)
downloadbootstrap-554c24d9ae740f59f78c8494337e67cf5c36670c.tar.xz
bootstrap-554c24d9ae740f59f78c8494337e67cf5c36670c.zip
Update contributing file
* Remove notes on repo section * Update hirearchy of coding standards sections
-rw-r--r--CONTRIBUTING.md18
1 files changed, 5 insertions, 13 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 463bfca78..43c716180 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -23,12 +23,6 @@ We only accept issues that are bug reports or feature requests. Bugs must be iso
-## Notes on the repo
-
-As of v2.0.0, Bootstrap's documentation is powered by Mustache templates and built via `make` before each commit and release. This was done to enable internationalization (translation) in a future release by uploading our strings to the [Twitter Translation Center](http://translate.twttr.com/). Any edits to the docs should be first done in the Mustache files and then recompiled into the HTML.
-
-
-
## Pull requests
- Try to submit pull requests against the latest `*-wip` branch for easier merging
@@ -40,16 +34,16 @@ As of v2.0.0, Bootstrap's documentation is powered by Mustache templates and bui
-## Coding standards: HTML
+## Coding standards
+
+### HTML
- Two spaces for indentation, never tabs
- Double quotes only, never single quotes
- Always use proper indentation
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags)
-
-
-## Coding standards: CSS
+### CSS
- Adhere to the [Recess CSS property order](http://markdotto.com/2011/11/29/css-property-order/)
- Multiple-line approach (one property and value per line)
@@ -58,9 +52,7 @@ As of v2.0.0, Bootstrap's documentation is powered by Mustache templates and bui
- For multiple, comma-separated selectors, place each selector on it's own line
- Attribute selectors, like `input[type="text"]` should always wrap the attribute's value in double quotes, for consistency and safety (see this [blog post on unquoted attribute values](http://mathiasbynens.be/notes/unquoted-attribute-values) that can lead to XSS attacks).
-
-
-## Coding standards: JS
+### JS
- No semicolons
- Comma first