The Jekyll gem makes a
jekyll executable available to you in your Terminal
window. You can use this command in a number of ways:
Changes to _config.yml are not included during automatic regeneration.
_config.yml master configuration file contains global configurations
and variable definitions that are read once at execution time. Changes made to
during automatic regeneration are not loaded until the next execution.
Note Data Files are included and reloaded during automatic regeneration.
Destination folders are cleaned on site builds
The contents of
<destination> are automatically
cleaned, by default, when the site is built. Files or folders that are not
created by your site will be removed. Files and folders you wish to retain
<destination> may be specified within the
Do not use an important location for
instead, use it as a staging area and copy files from there to your web server.
Jekyll also comes with a built-in development server that will allow you to preview what the generated site will look like in your browser locally.
Be aware of default behavior
As of version 2.4, the
serve command will watch for changes automatically. To disable this, you can use
jekyll serve --no-watch, which preserves the old behavior.
These are just a few of the available configuration options.
Many configuration options can either be specified as flags on the command line,
or alternatively (and more commonly) they can be specified in a
file at the root of the source directory. Jekyll will automatically use the
options from this file when run. For example, if you place the following lines
Then the following two commands will be equivalent:
For more about the possible configuration options, see the configuration page.
If you’re interested in browsing these docs on-the-go, install the
jekyll-docs gem and run
jekyll docs in your terminal.