Giter VIP home page Giter VIP logo

guides's Introduction

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

guides's People

Contributors

funxies avatar knstvk avatar mariodavid avatar skatova avatar spog163 avatar svgor avatar web-devel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.