ostree/docs
Dan Nicholson 3c7449397a docs: Provide bundler setup for building site locally
This mimics the GitHub Pages environment so that you can build and serve
the site locally for testing. It's will also be required later for using
Jekyll Actions[1] instead of the automated GitHub Pages flow.

1. https://github.com/marketplace/actions/jekyll-actions
2021-05-21 10:13:15 -06:00
..
_sass/color_schemes docs: Add Jekyll and theme config 2020-10-01 19:32:12 +02:00
_config.yml docs: Provide bundler setup for building site locally 2021-05-21 10:13:15 -06:00
adapting-existing.md *: rename master branch to main 2021-05-07 16:55:03 +02:00
atomic-upgrades.md *: rename master to main in tests & examples 2021-05-07 16:55:03 +02:00
buildsystem-and-repos.md docs: Fix various typos 2020-10-19 10:55:49 -04:00
contributing-tutorial.md *: rename master branch to main 2021-05-07 16:55:03 +02:00
CONTRIBUTING.md *: rename master branch to main 2021-05-07 16:55:03 +02:00
deployment.md docs: Fix various typos 2020-10-19 10:55:49 -04:00
formats.md docs: Fix various typos 2020-10-19 10:55:49 -04:00
Gemfile docs: Provide bundler setup for building site locally 2021-05-21 10:13:15 -06:00
index.md docs: Fix CONTRIBUTING link 2021-05-20 16:45:12 -06:00
introduction.md docs: Move and update pages from the manual 2020-10-02 14:34:48 +02:00
README-historical.md docs: Move historical README to the docs 2020-10-02 14:38:28 +02:00
README.md docs: Provide bundler setup for building site locally 2021-05-21 10:13:15 -06:00
related-projects.md docs: Add Torizon to related projects and OS 2021-03-04 17:04:38 -03:00
repo.md *: rename master to main in tests & examples 2021-05-07 16:55:03 +02:00
repository-management.md *: rename master to main in tests & examples 2021-05-07 16:55:03 +02:00

This documentation is written in Jekyll format to be published on GitHub Pages. The rendered HTML will be automatically built and published, but you can also use Jekyll locally to test changes.

First you need to install Ruby and RubyGems to get Jekyll and the other gem dependencies. This is easiest using the distro's packages. On RedHat systems this is rubygems and on Debian systems this is ruby-rubygems.

Next Bundler is needed to install the gems using the provided Gemfile. You can do this by running gem install bundler or using distro packages. On RedHat systems this is rubygem-bundler and on Debian systems this is ruby-bundler.

Now you can prepare the Jekyll environment. Change to this directory and run:

bundle config set --local path vendor/bundle
bundle install

Finally, render and serve the site locally with Jekyll:

bundle exec jekyll serve