Skip to content

Commit b5555c0

Browse files
committed
cleaned up/organized docs
1 parent 0d82eca commit b5555c0

File tree

6 files changed

+44
-36
lines changed

6 files changed

+44
-36
lines changed

README.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

README.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
mpl-probscale: Real probability scales for matplotlib
2+
=====================================================
3+
4+
.. image:: https://travis-ci.org/phobson/watershed.svg?branch=master
5+
:target: https://travis-ci.org/phobson/watershed
6+
7+
.. image:: https://coveralls.io/repos/phobson/mpl-probscale/badge.svg?branch=master&service=github
8+
:target: https://coveralls.io/github/phobson/mpl-probscale?branch=master
9+
10+
11+
Simply importing ``probscale`` let's you use probability scales in your matplotlib figures:
12+
13+
.. code-block:: python
14+
15+
import matplotlib.pyplot as plt
16+
import probscale
17+
18+
plt.style.use('ggplot')
19+
fig, ax = plt.subplots(figsize=(8, 4))
20+
ax.set_ylim(1e-2, 1e2)
21+
ax.set_yscale('log')
22+
23+
ax.set_xlim(0.5, 99.5)
24+
ax.set_xscale('prob')
25+
26+
27+
.. image:: /img/example.png
28+

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
77
PAPER =
8-
BUILDDIR = _build
8+
BUILDDIR = ../../mpl-probscale-docs
99

1010
# User-friendly check for sphinx-build
1111
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)

docs/conf.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
import os
1818
import shlex
1919

20-
import mock
21-
22-
MOCK_MODULES = ['numpy', 'scipy', 'matplotlib', 'matplotlib.pyplot', 'scipy.stats']
23-
for mod_name in MOCK_MODULES:
24-
sys.modules[mod_name] = mock.Mock()
2520

2621
# If extensions (or modules to document with autodoc) are in another directory,
2722
# add these directories to sys.path here. If the directory is relative to the
@@ -33,7 +28,13 @@
3328
# If your documentation needs a minimal Sphinx version, state it here.
3429
#needs_sphinx = '1.0'
3530

36-
source_suffix = ['.rst']
31+
from recommonmark.parser import CommonMarkParser
32+
33+
source_parsers = {
34+
'.md': CommonMarkParser,
35+
}
36+
37+
source_suffix = ['.rst', '.md']
3738

3839
numpydoc_show_class_members = False
3940
autodoc_member_order = 'bysource'
@@ -129,7 +130,7 @@
129130

130131
# The theme to use for HTML and HTML Help pages. See the documentation for
131132
# a list of builtin themes.
132-
html_theme = 'alabaster'
133+
html_theme = 'sphinx_rtd_theme'
133134

134135
# Theme options are theme-specific and customize the look and feel of a theme
135136
# further. For a list of options available for each theme, see the

docs/index.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Welcome to probscale's documentation!
7-
=====================================
86
9-
Contents:
7+
.. include:: ../README.rst
8+
9+
10+
11+
API References
12+
==============
1013

1114
.. toctree::
1215
:maxdepth: 2
@@ -16,7 +19,6 @@ Contents:
1619
probscale.rst
1720

1821

19-
2022
Indices and tables
2123
==================
2224

docs/make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ REM Command file for Sphinx documentation
55
if "%SPHINXBUILD%" == "" (
66
set SPHINXBUILD=sphinx-build
77
)
8-
set BUILDDIR=_build
8+
set BUILDDIR=../../mpl-probscale-docs
99
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
1010
set I18NSPHINXOPTS=%SPHINXOPTS% .
1111
if NOT "%PAPER%" == "" (

0 commit comments

Comments
 (0)