one-click template to use just-the-docs on GitHub Pages
The Just the Docs template is a bare-minimum template to create a Jekyll site. It uses the Just the Docs theme and can be built and published on GitHub Pages. The site can also be built and previewed locally, and published on other platforms. It uses a gem-based approach and the GitHub Pages/Actions workflow to build and publish the site on GitHub Pages.
To get started with creating a site:
After completing the creation of your new site on GitHub, update it as needed:
To change the version of the theme and/or Jekyll:
To add a plugin:
_config.yml
. For example, to add jekyll-default-layout:gem 'jekyll-default-layout'
_config.yml
:plugins:
- jekyll-default-layout
To publish your site on GitHub Pages:
_config.yml
to:baseurl: '/YOUR-SITE-NAME'
_config.yml
to your site on GitHub.To build and preview your site locally:
bundle install
.bundle exec jekyll serve
to build your site and preview it at localhost:4000
._site
.To publish your built site on a different platform:
_site
.The Just the Docs template is a versatile solution for creating Jekyll sites. It provides easy installation and customization options, and allows for seamless publishing on GitHub Pages and other platforms. With its gem-based approach and GitHub Pages/Actions workflow integration, building, previewing, and publishing sites becomes a streamlined process.