Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Latest commit

 

History

History
100 lines (73 loc) · 3.86 KB

CONTRIBUTING.md

File metadata and controls

100 lines (73 loc) · 3.86 KB

Contributing to ciao-project.github.io

This repository contains the source code for the ciao-project.github.io web site. The source code is composed of two separate entities; a Jekyll theme, Jekyll Documentation Theme that provides the look and feel of the website in addition to the code that manages things like the table of contents, blogs, etc, and the textual content of the web-site that describes the Cloud Integrated Advanced Orchestrator project. An attempt has been made to try to keep the textual and theme content separate. The webpages displayed on the site are generated from markdown (actually krampdown) files, all of which are stored in the top level ciao directory.

Updating an existing web page

The webpages you see on ciao-project.github.io are generated on the fly by github pages when a new commit is pushed to this repository. HTML content is generated by applying the Jekyll Documentation Theme to the markdown files in the ciao directory. This is nice as it means that the webpage can be updated by simply modifying a markdown file and pushing the change to the repository.

It is possible to run the Jekyll Documentation Theme locally on your machine before submitting a pull request. The site content and theme can be compiled to HTML, stored in the _site folder and served up by a web server bound to localhost. You'll be able to view your changes by pointing your browser at the reported URL. See Getting started with the Documentation Theme for Jekyll for more details.

Adding a new web page

There are three steps involved here.

  1. Create a new markdown file in the appropriate directory under the ciao directory. Note the directory hierarchy used in the ciao folder is chosen to mirror the organisation of the web site presented by the sidebar. This hierarchy is not reflected in the source code of the final generated web site. When jekyll generates the HTML pages it places them all in the root directory of the website.

  2. Add the frontmatter to the markdown file. If you do not do this your markdown file will not be converted to HTML.

  3. Update the sidebar

Sending Pull Requests

Fork the repository, create a new branch, push the changes to the branch in your fork and send a pull request.

In order to get a clear contribution chain of trust we use the [signed-off-by language] (https://01.org/community/signed-process) used by the Linux kernel project.

Patch format

Beside the signed-off-by footer, we expect each patch to comply with the following format:

<component>: Change summary

More detailed explanation of your changes: Why and how.
Wrap it to 72 characters.
See [here] (http://chris.beams.io/posts/git-commit/)
for some more good advice.

Fixes: <URL to bug fix if appropriate>

Signed-off-by: <[email protected]>

For example:

Remove references to 01org
    
A number of places in the documentation used out of date
URLs and package names for ciao components.  This commit fixes
the issue, by replacing 01org, with ciao-project.
    
Fixes: https://github.com/ciao-project/ciao-project.github.io/issues/2
    
Signed-off-by: Mark Ryan <[email protected]>