Website for our icon set that has very basic Jekyll setup.
- Install Ruby and Jekyll with guides here.
- Run
bundle
in the terminal at site's root directory.
- For Windows, run
.1___start_jekyll_server
BAT script. - For other OSes / alternative way, execute this terminal command at site's root directory:
jekyll serve --incremental --host 0.0.0.0 --port 4000 --open_url
After running the BAT or executing the command, it will automatically open local Jekyll server pages in the default browser.
If you can't connect to 0.0.0.0:4000
, try localhost:4000
in browser instead or changing --host 0.0.0.0
to --host localhost
.
Optional! Only needed if you want to test in your mobile devices etc.
- Open port
4000
(TCP protocol) from router's settings. - Find your local IPv4 address of the server PC.
- Start the server.
- Go to
http://[SERVER'S-LOCAL-IPv4-ADDRESS]:4000
on your other device.
Note
Server's local network sharing won't work if--host 0.0.0.0
is changed to--host localhost
.
-
Install Minify with your prefered way.
- On Windows, download binary (
minify_windows_amd64.zip
) and add that .exe to the folder that's on the PATH (c:\Windows
for example, highly recommended to create new PATH variable).
- On Windows, download binary (
-
- For Windows, use the
.2___compress_includes-dir_css_js
BAT script. - For other OSes / alternative way, go to
_includes
directory with terminal and paste these commands:
minify -o bottom-scripts.min.js 1a____bottom-scripts.js minify -o bottom-scripts-module.min.js 1b____bottom-scripts-module.js minify -o modules.min.css 2a____modules.css minify -o noscript-style.min.css 2b____noscript-style.css minify -o fonts.min.css 2c____fonts.css minify -o sanitize.min.css 4a____sanitize.css
- For Windows, use the
While using Jekyll development server, site uses uncompressed CSS & JS files.
Note
Remember to compress CSS & JS files before committing / sending PR!
- Earhacker from Reddit for converting jQuery code to regular JavaScript (referenced code on the site repo).
- trotzig for "micro-optimizing" List.js (#482 PR at List.js repo).
- iA Writer Duo by iA Inc (SIL OFL 1.1).
- Inter by Rasmus Andersson (SIL OFL 1.1).
- Jekyll Minifier by Aleksandr Meniailo (MIT).
- List.js by Jonny Strömberg (MIT).
- Phosphor Icons by Helena Zhang (MIT).
- sanitize.css by CSS Tools (CC0 1.0 Universal).
Custom license, all rights reserved with exceptions mentioned in LICENSE doc.