This repository has been archived by the owner on Jan 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
54 lines (34 loc) · 1.46 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
stsci.sphinxext
===============
:author: Michael Droettboom, 2011
Purpose
-------
This project contains extensions to Sphinx to build documentation from STScI.
Prerequisites
-------------
- Sphinx 0.6.3 or later, and its dependencies
- numpydoc - provides support for Numpy-style docstring syntax
- The version shipped with Numpy 1.4.0 or later is required
- matplotlib - provides matplotlib extensions for inline plotting
These requirements are not listed in the installation requirements in the
metadata simply because numpy and matplotlib in particular are large and not
easy to deal with, so trying to install a Sphinx theme should not have the
side-effect of trying to install these prerequisites as well.
Usage
-----
These instructions only cover changes from the standard Sphinx
instructions.
Create a new tree for your Sphinx documentation, using
sphinx_quickstart, as described in the `Sphinx introduction
<http://sphinx.pocoo.org/intro.html#setting-up-the-documentation-sources>`_.
Import the stsci_sphinx customizations into your project's `conf.py`
by inserting the following line at the top::
from stsci.sphinxext.conf import *
The "extensions" line in your `conf.py` should also be modified so it
doesn't override the extensions defined by stsci.sphinxext. For
example, change::
extensions = ['sphinx.ext.autodoc']
to::
extensions += ['sphinx.ext.autodoc']
Also, comment out the 'html_theme' line, so your project will use the
stsci.sphinxext one.