Skip to content

Latest commit

 

History

History
71 lines (43 loc) · 2.13 KB

README-MAINTAINER.md

File metadata and controls

71 lines (43 loc) · 2.13 KB

Jekyll site CI

Maintainer info

TODO: document how to maintain this site and update the Eclipse hosted web.

Redirect

If pages are moved to a different URL, leave a redirect behind:

redirect_from:
  - /blog/2022/04/17/xpm-v0-13-0-released/

GitHub Actions

The site is automatically generated by a GitHub Actions CI job.

Pushing to master generates the main site, pushes to develop generates the preview.

Prerequisites

Note: for more details, see the xPack README-MAINTAINER page.

The site is generated by Jekyll, which is written in Ruby.

To test locally, install:

Note: the version of bundler included with Ubuntu by default is too old, download and install Ruby and Bundler and do a per-user install.

The Ruby plug-ins are listed in the Gemfile and can be automatically installed by with bundle install.

To generate a local site and start a local server:

bundle exec jekyll serve --baseurl "" --destination _site_local --trace --draft

Add --force_polling to the above if Jekyll is not detecting changes to files while serve is running.

Quick copy/paste

bundle exec jekyll serve --trace --safe --baseurl "/web-preview"

bundle exec jekyll serve --trace --safe

bundle exec jekyll build

bundle exec htmlproofer --allow-hash-href --url-swap \^/web-preview/\:/ ./_site_local

bundle exec htmlproofer --allow-hash-href --url-swap \^/web-preview/\:/ --url-ignore /github.com/xpack/xpack.github.io/blob/master/ ./_site_local

bundle exec htmlproofer --allow-hash-href ./_site_local

bundle exec htmlproofer --allow-hash-href --http_status_ignore=429 ./_site_local