api-site/firstapp
Donovan Jones f34bc6414a Updates to firstapp README including Prerequisites and more build detail
Change-Id: I07c6c3611e8d27a07d19613ab555c5a825266a62
2015-07-29 19:31:30 -05:00
..
samples Add support for OpenStack .NET SDK in firstapp 2015-07-18 20:52:09 +08:00
source Updates to firstapp README including Prerequisites and more build detail 2015-07-29 19:31:30 -05:00
README.rst Updates to firstapp README including Prerequisites and more build detail 2015-07-29 19:31:30 -05:00
setup.cfg FirstApp: Move source directory up, rename top-level dir 2015-05-01 17:22:46 +02:00
setup.py FirstApp: Move source directory up, rename top-level dir 2015-05-01 17:22:46 +02:00

Writing your first OpenStack application

This tutorial works with the First App Application for OpenStack.

Prerequisites

To build the documentation, install Python Tox.

To install Tox for Ubuntu 14.04 and later:

apt-get install python-tox python-dev libxml2-dev libxslt1-dev

Structure

/source

The /source directory contains the tutorial documentation as reStructuredText (RST). The documentation is built with Sphinx.

The RST source includes conditional output logic, so specifying:

tox -e firstapp-libcloud

will invoke sphinx-build with -t libcloud, meaning sections marked .. only:: libcloud in the RST are built, while others are not built.

To build the documentation, you need Sphinx and the OpenStack docs.openstack.org Sphinx Theme (openstackdocstheme). When you invoke tox, these dependencies are automatically pulled in from the top-level test-requirements.txt.

/samples

The code samples provided in the guide are sourced from files in this directory. Each SDK has its own subdirectory.

/build-libcloud

The HTML documentation is built in this directory. This directory is included in the project .gitignore.