The initial pycsw workshop materials were created through funding provided by the Oregon Coastal Management Program, through an FGDC CAP grant, in 2013.
Workshop documentation is stored in reStructuredText. HTML output is generated through the Sphinx documentation utility.
Note: the following steps assume that Python and Python's setuptools package are installed and available in your PATH
-
Install Sphinx
easy_install Sphinx
-
Install the Bootstrap theme for Sphinx
easy_install sphinx_bootstrap_theme
-
Install rst2pdf
easy_install rst2pdf
-
Install the Python Imaging Library
easy_install pil
Note that you can optionally use the pillow library, which seems to work better on Ubuntu
-
Clone the pycsw repository locally
git clone [email protected]:geopython/pycsw-workshop.git pycsw-workshop
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
-
cd into pycsw-workshop directory
-
execute:
make html
-
HTML output is in the _build directory
-
cd into pycsw-workshop directory
-
execute:
sphinx-build -b pdf . _build/html
-
pycsw-Workshop.pdf should have been created in the _build/html/ directory
To publish to the live site, simply run make gh-pages
.
Contributions, fixes, improvements and Pull Requests are always welcome.
- reStructuredText Reference Guide: http://docutils.sourceforge.net/docs/user/rst/quickref.html
- List of Python Packages: https://pypi.python.org/pypi?%3Aaction=index