JEKYLL(1)
β¨ JEKYLL(1) β¨
okay so bestie, welcome to jekyll β she's a blog-aware, static site generator π and honestly? she's that girl. this is the User Commands manual page, and i'm gonna walk you through every single thing she does, no skips, no shortcuts. periodt.
πΈ USAGE πΈ
jekyll command [options...]
that's it. that's the whole vibe. a command, then whatever options you wanna sprinkle on top π¦
π COMMANDS π
b,buildβ builds the site from its sources and drops the results into the destination directory. the classic. the moment. π₯cleanβ removes the destination directory. justβ¦ deletes it. gone. bye πdocsβ shows you the docs, but plot twist: it requires thejekyll-docsplugin to be installed. no plugin, no docs, sorry bestie πdoctor,hydeβ searches the site and prints out any specific deprecation or configuration issues it finds. think of it as a little check-up for your project π©Ίβ¨help [COMMAND]β shows the help message, and if you hand it aCOMMANDit'll show help for that specific subcommand. so thoughtful π«Άimportβ lets you import blog content from various resources as markdown files straight into the Jekyll./_post/and./_drafts/structure. requires thejekyll-importplugin to be installed. can't do it without her π§new [PATH]β creates a brand new Jekyll site scaffold inPATH. fresh start energy π±new-themeβ creates a new Jekyll theme scaffold. theme girlies rise πs,serve,serverβ serves the site locally. localhost era π»π
ngl, plugins like jekyll-compose can hand you even more commands than the ones documented here, so if you see a command we didn't list, that's why π
π OPTIONS π
there are some general flags to control Jekyll's behavior, and each command can be controlled further with additional options described in their respective manual pages. let's go through all of them, bestie, no cap:
-s,--source [DIR]β source directory, which defaults to./. you can also set this in_config.ymlvia thesource:option β¨-d,--destination [DIR]β destination directory, defaults to./_site. also settable in_config.ymlvia thedestination:option π―-p,--plugins PLUGINS_DIR1[,PLUGINS_DIR2[,...]]β plugins directory, defaults to./_plugins. yes you can comma-stack a whole list of them π--safeβ safe mode, defaults tofalse. this disables custom plugins and ignores links. also settable in_config.ymlvia thesafe:option. lowkey the responsible choice π‘οΈ--layouts DIRβ layouts directory, defaults to./_layoutsπΌοΈ--profileβ generates a Liquid rendering profile. numbers, but make it fashion π-h,--helpβ shows the help output. when in doubt π«Ά-v,--versionβ prints the name and version π-t,--traceβ shows the full backtrace when an error occurs. for when you need the whole story π
π¦ FILES π¦
_config.ymlβ the main configuration is done by default in the file_config.yml. this file can control both Jekyll's behavior (see OPTIONS) and your site/theme configuration variables. if you wanna split the config, or use a non-default file, you can use the--configswitch to define all the configuration files πβ¨
also, go read these, they're iconic:
- <https://jekyllrb.com/docs/configuration/options/>
- <https://jekyllrb.com/docs/configuration/default/>
π ENVIRONMENT π
JEKYLL_ENVβ this environment variable defaults todevelopment, and you can check it during a build via conditional statements to influence the output, for example. it usually only affects thebuildandservecommands. the other well-known value isproduction, but fr fr you can assign it literally any value you want π
more reading:
β SEE ALSO β
jekyll-b(1), jekyll-build(1), jekyll-clean(1), jekyll-docs(1), jekyll-doctor(1), jekyll-help(1), jekyll-hyde(1), jekyll-import(1), jekyll-new(1), jekyll-new-theme(1), jekyll-s(1), jekyll-serve(1), jekyll-server(1)
and there is extensive documentation at <https://jekyllrb.com/docs/> ππ
π«Ά AUTHOR π«Ά
this manual page was originally written by Youhei SASAKI <uwabami@gfd-dennou.org>, for the Debian GNU/Linux system (but may be used by others). it was later updated by Daniel Leidert <dleidert@debian.org>. absolute legends, we thank them for their service πββοΈβ¨
okay that's the whole page, bestie!! this was Jekyll 3.9, dated 2020-10-30 β go build something gorgeous with her, you've got this ππΈπ¦π
π¦ where this page comes from
- debian bookworm: jekyll 4.3.1+dfsg-3+deb12u1 Β· MIT
- debian trixie: jekyll 4.3.4+dfsg-1 Β· MIT
- ubuntu jammy: jekyll 3.9.0+dfsg-4 Β· MIT
- ubuntu noble: jekyll 4.3.2+dfsg-1 Β· MIT
- ubuntu questing: jekyll 4.3.4+dfsg-1
- ubuntu resolute: jekyll 4.4.1+dfsg-2 Β· MIT
- ubuntu stonking: jekyll 4.4.1+dfsg-5 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms