mirror of https://github.com/twbs/bootstrap.git
				
				
				
			Update contributing file
* Remove notes on repo section * Update hirearchy of coding standards sections
This commit is contained in:
		
							parent
							
								
									13a4fb678b
								
							
						
					
					
						commit
						554c24d9ae
					
				|  | @ -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 | ## Pull requests | ||||||
| 
 | 
 | ||||||
| - Try to submit pull requests against the latest `*-wip` branch for easier merging | - 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 | - Two spaces for indentation, never tabs | ||||||
| - Double quotes only, never single quotes | - Double quotes only, never single quotes | ||||||
| - Always use proper indentation | - Always use proper indentation | ||||||
| - Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags) | - Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags) | ||||||
| 
 | 
 | ||||||
| 
 | ### CSS | ||||||
| 
 |  | ||||||
| ## Coding standards: CSS |  | ||||||
| 
 | 
 | ||||||
| - Adhere to the [Recess CSS property order](http://markdotto.com/2011/11/29/css-property-order/) | - 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) | - 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 | - 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). | - 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). | ||||||
| 
 | 
 | ||||||
| 
 | ### JS | ||||||
| 
 |  | ||||||
| ## Coding standards: JS |  | ||||||
| 
 | 
 | ||||||
| - No semicolons | - No semicolons | ||||||
| - Comma first | - Comma first | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue