serra / xscale-guide

Create a beautiful guide from selected content on our wiki
Other
0 stars 1 forks source link

Build Status

Scripts to create the XSCALE guide from our wiki.

The guide is published on https://XSCALE-Alliance.github.io/xscale-guide/, in web, pdf and epub format.

XSCALE is like a pod of dolphins, not dancing elephants

Contributing

If you want to contribute to the content of the guide, you should probably head over to the XSCALE wiki. Look for tiddlers (wiki pages) with the tag guide. We will regularly update the guide with the latest versions of those tiddlers.

This repository is mainly concerned with the creation and publication of the guide; a mostly automated process. Want to contribute to this? Hack away. Good places to start are Makefile and import_tiddlers.py. Pull requests with improvements are appreciated.

How to use

We use Python, Sphinx and Pandoc for creating our guide. We suggest you create a virtualenv, but this is optional.

virtualenv venv
source venv/bin/activate

Before doing anything else, bootstrap the project:

make bootstrap

At this stage, all dependencies should have been installed in your (virtual) environment.

To build the guide run:

make guide

This will create an html, epub and pdf version of the guide, which can be found in _build/html, _build/epub, and _build/rinoh respectively.

You can also start the guide in server mode. This will monitor changes to source files and rebuild and refresh the browser when needed:

make server

How it works

We download the latest version of our wiki into the _wiki folder, by running make download. Then we import the wiki tiddlers into our guide, and transform them into .rst format, by running make import.

We combine these imported pages with some custom .rst files into our guide using Sphinx.

Sphinx creates html, epub and pdf versions of our guide. All of these are published using Github Pages.

Travis CI is used for continuous intgeration and publishing of the guide. Commits to the master branch are deployed to Github Pages by Travis; see .travis.yml for details.


CC BY-SA

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License