summaryrefslogtreecommitdiff
path: root/docs/README.md
diff options
context:
space:
mode:
authorDan Nicholson <dbn@endlessos.org>2021-05-20 14:48:16 -0600
committerDan Nicholson <dbn@endlessos.org>2021-05-21 10:13:15 -0600
commit3c7449397a6e49df4d717317945ff1274f020606 (patch)
tree1ac15471396cbb00d04969012c398fe3cee4fec1 /docs/README.md
parente4105a0366bf0d905c610a18ad6e343ae9965b2e (diff)
downloadostree-3c7449397a6e49df4d717317945ff1274f020606.tar.gz
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
Diffstat (limited to 'docs/README.md')
-rw-r--r--docs/README.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/README.md b/docs/README.md
new file mode 100644
index 00000000..7963b04e
--- /dev/null
+++ b/docs/README.md
@@ -0,0 +1,28 @@
+This documentation is written in [Jekyll](https://jekyllrb.com/) format
+to be published on [GitHub Pages](https://pages.github.com/). 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](https://www.ruby-lang.org/en/) and
+[RubyGems](https://rubygems.org/) 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](https://bundler.io/) is needed to install the gems using
+the provided [Gemfile](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
+```