I didn't know the difference between cgi_escape and uri_escape until it bit me when I had a colon in a title I used uri_escape on. Addressable::URI.encode (from addressable 2.4.0 and later) thought it was a URI and raised an error. I should have been using cgi_escape, which is for strings that will be added to URIs and not uri_escape, which is for encoding strings that are already in a URI. This commit borrows from the addressable docs to make it more specific so that readers choose uri_escape when they already have a URI and cgi_escape when they are just escaping a plain string. |
||
---|---|---|
.. | ||
_data | ||
_docs | ||
_includes | ||
_layouts | ||
_posts | ||
_sass | ||
_tutorials | ||
community | ||
css | ||
fonts | ||
help | ||
img | ||
js | ||
news | ||
redirects | ||
.gitignore | ||
404.html | ||
CNAME | ||
_config.yml | ||
favicon.ico | ||
icomoon-selection.json | ||
index.html | ||
latest_version.txt | ||
readme.md |
readme.md
Jekyll docs site
This directory contains the code for the Jekyll docs site, jekyllrb.com.
Contributing
For information about contributing, see the Contributing page.
Running locally
You can preview your contributions before opening a pull request by running from within the directory:
bundle install --without test test_legacy benchmark
bundle exec rake site:preview
It's just a jekyll site, afterall! 😉
Updating Font Awesome
- Go to https://icomoon.io/app/
- Choose Import Icons and load
icomoon-selection.json
- Choose Generate Font → Download
- Copy the font files and adapt the CSS to the paths we use in Jekyll