cuba-platform / guides

CUBA platform guides

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CUBA Platform guides

This project contains the the sources for the CUBA Platform guides provided on https://cuba-platform.com/guides

Creating a guide

  1. create a file in _drafts directory (a good starting point is guide-template.adoc).
  2. write the guide

How guides will be deployed

Every guide that is under _posts in the master branch of this project will get picked up as a guide and be served by Github pages.

The normal workflow is to create a not-complete guide in the _drafts directory as well as using PRs in this repository when it comes to releasing a guide.

Running locally

In order to run locally, it is required to have the Jekyll based environment running.

required environment

Mainly following the setup instructions on: https://jekyllrb.com/docs/#instructions

After ruby, jeykll and bundler is installed, execute bundle install in the project directory to get all required dependencies.

running Jekyll locally

With that everything is setup in order to run jekyll locally

$ jekyll serve --config _config.yml

Then http://127.0.0.1:4000/ will serve the local guides

running Jekyll locally with drafts

Normally it is useful to create the guide as a draft. In order to see them as well in the output, add the --drafts flag:

$ jekyll serve --drafts --config _config.yml 

Build Using Docker

Create builder image with required dependencies:

docker build -f docker/builder/Dockerfile -t cuba-platform/guides-builder . 

Build:

docker run --rm --volume="$PWD:/srv/jekyll" cuba-platform/guides-builder jekyll build

Serve:

docker run --rm --volume="$PWD:/srv/jekyll" -p 4000:4000 cuba-platform/guides-builder jekyll serve

About

CUBA platform guides

License:Apache License 2.0


Languages

Language:CSS 74.5%Language:HTML 14.1%Language:JavaScript 8.9%Language:SCSS 2.4%Language:Ruby 0.0%Language:Shell 0.0%Language:Dockerfile 0.0%