Jekyll is a popular tool for generating static websites from markdown-like text.
Given below are some information useful for when you want to update documentation in a project that uses Jekyll.
As GitHub has native support for Jekyll, it can convert your documentation into HTML and deploy it on the github.io
URL of your project.
Do the following to set up the GitHub Pages website of your project:
Source
as: Deploy from a branch branch master branch and /docs folder (assuming project documentation is in that folder) and click Save .The project website will be available at https://{your_org}.github.io/{your_repo}
the next time the master
branch is updated. Example: https://myorg.github.io/myrepo
Jekyll uses kramdown (a superset of Markdown) for writing content. You can use Intellij (or any other text editor) to update the relevant .md
files.
Recommendation: Limit your content to Markdown and GFMD syntax only i.e., avoid kramdown-specific syntax that are not compatible with Markdown/GFMD
Recommendation: Enable soft-wrapping in your code editor for *.md
files. For example, as explained in Intellij IDEA: Useful settings guide.
.md
source file in GitHub.Typically, the _config.yml
file specifies project-specific site-wide settings.
An example is the title
property, which defines the title of your site, usually the name of your project.
The files in docs/_include
and docs/_layouts
control the template of the pages; the files in docs/_sass
control the style of the pages.
Caution: Modifying these files requires some knowledge and experience with Jekyll. You should only modify them (at your own risk) if you need greater control over the site’s layout.