Skip to content

geopython/pycsw-workshop

Repository files navigation

pycsw-workshop

Build Status

Background

The initial pycsw workshop materials were created through funding provided by the Oregon Coastal Management Program, through an FGDC CAP grant, in 2013.

Structure

Workshop documentation is stored in reStructuredText. HTML output is generated through the Sphinx documentation utility.

Installation

Using easy_install

Note: the following steps assume that Python and Python's setuptools package are installed and available in your PATH

  1. Install Sphinx

    easy_install Sphinx

  2. Install the Bootstrap theme for Sphinx

    easy_install sphinx_bootstrap_theme

  3. Install rst2pdf

    easy_install rst2pdf

  4. Install the Python Imaging Library

    easy_install pil

    Note that you can optionally use the pillow library, which seems to work better on Ubuntu

  5. Clone the pycsw repository locally

    git clone [email protected]:geopython/pycsw-workshop.git pycsw-workshop

Using virtualenv / pip

You can also use virtualenv and pip as follows:


$ virtualenv venv
$ cd venv
$ git clone [email protected]:geopython/pycsw-workshop.git
$ cd pycsw-workshop
$ pip install -r requirements.txt

Generating HTML Output

  1. cd into pycsw-workshop directory

  2. execute:

    make html

  3. HTML output is in the _build directory

Generating PDF Output

  1. cd into pycsw-workshop directory

  2. execute:

    sphinx-build -b pdf . _build/html

  3. pycsw-Workshop.pdf should have been created in the _build/html/ directory

Publishing to Live Site (Committers)

To publish to the live site, simply run make gh-pages.

Contributions

Contributions, fixes, improvements and Pull Requests are always welcome.

Useful External References