mirror of
				https://github.com/twbs/bootstrap.git
				synced 2025-10-26 00:02:40 -04:00 
			
		
		
		
	Merge pull request #12241 from twbs/jekyll-encoding
Set Jekyll encoding and tweak Windows notes
This commit is contained in:
		
						commit
						208df78971
					
				| @ -64,9 +64,9 @@ Bootstrap's documentation, included in this repo in the root directory, is built | |||||||
| ### Running documentation locally | ### Running documentation locally | ||||||
| 
 | 
 | ||||||
| 1. If necessary, [install Jekyll](http://jekyllrb.com/docs/installation) (requires v1.x). | 1. If necessary, [install Jekyll](http://jekyllrb.com/docs/installation) (requires v1.x). | ||||||
|   - **Windows users:** read [this unofficial guide](https://github.com/juthilo/run-jekyll-on-windows/) to get Jekyll up and running without problems. |   - **Windows users:** Read [this unofficial guide](https://github.com/juthilo/run-jekyll-on-windows/) to get Jekyll up and running without problems. We use Pygments for syntax highlighting, so make sure to read the sections on installing Python and Pygments. | ||||||
| 2. From the root `/bootstrap` directory, run `jekyll serve` in the command line. | 2. From the root `/bootstrap` directory, run `jekyll serve` in the command line. | ||||||
|   - **Windows users:** For Ruby 2.0.0 run `chcp 65001` first to change the command prompt's character encoding ([code page](http://en.wikipedia.org/wiki/Windows_code_page)) to UTF-8 so Jekyll runs without errors. For Ruby 1.9.3 you can alternatively do `SET LANG=en_EN.UTF-8`. In addition, ensure you have Python installed and added in your `PATH` or the build will fail due to our Pygments dependency. |   - **Windows users:** While we use Jekyll's `encoding` setting, you might still need to change the command prompt's character encoding ([code page](http://en.wikipedia.org/wiki/Windows_code_page)) to UTF-8 so Jekyll runs without errors. For Ruby 2.0.0 run `chcp 65001` first. For Ruby 1.9.3 you can alternatively do `SET LANG=en_EN.UTF-8`. | ||||||
| 3. Open <http://localhost:9001> in your browser, and voilà. | 3. Open <http://localhost:9001> in your browser, and voilà. | ||||||
| 
 | 
 | ||||||
| Learn more about using Jekyll by reading its [documentation](http://jekyllrb.com/docs/home/). | Learn more about using Jekyll by reading its [documentation](http://jekyllrb.com/docs/home/). | ||||||
|  | |||||||
| @ -12,6 +12,7 @@ host:             0.0.0.0 | |||||||
| port:             9001 | port:             9001 | ||||||
| baseurl:          / | baseurl:          / | ||||||
| url:              http://localhost:9001 | url:              http://localhost:9001 | ||||||
|  | encoding:         UTF-8 | ||||||
| 
 | 
 | ||||||
| # Custom vars | # Custom vars | ||||||
| current_version:  3.0.3 | current_version:  3.0.3 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user