Skip to content

Commit

Permalink
Write configuration doc
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed Jul 8, 2015
1 parent 65bdc4a commit 61d269d
Show file tree
Hide file tree
Showing 105 changed files with 1,818 additions and 1,307 deletions.
2 changes: 1 addition & 1 deletion demo/moulinrouge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def create_app():
def before_request():
if request.args.get('etree'):
etree.to_etree()
else:
elif request.args.get('lxml'):
etree.to_lxml()

def _random(data, order):
Expand Down
14 changes: 14 additions & 0 deletions demo/moulinrouge/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ def test_gauge():
gauge.add('No', [99, -99])
return gauge.render_response()

@app.route('/test/gauge/log')
def test_gauge_log():
gauge = Gauge(logarithmic=True)

gauge.add('Need l', [200.3, 500.12])
gauge.add('Need z', [10, 1000.5])
return gauge.render_response()

@app.route('/test/pyramid')
def test_pyramid():
pyramid = Pyramid()
Expand Down Expand Up @@ -713,4 +721,10 @@ def test_datetimeline():
line.x_label_rotation = 45
return line.render_response()

@app.route('/test/order_min')
def test_order_min():
line = Line(order_min=-32)
line.add('_', [1, 32, 12, .4, .009])
return line.render_response()

return list(sorted(filter(lambda x: x.startswith('test'), locals())))
3 changes: 2 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ help:

clean:
rm -rf $(BUILDDIR)/*
rm -rf api/*

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
Expand Down Expand Up @@ -192,7 +193,7 @@ pseudoxml:
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."

rst:
sphinx-apidoc -f -o api ../pygal
sphinx-apidoc -f -e -M -H API -o api ../pygal

auto:
sphinx-autobuild . _build/html
Expand Down
9 changes: 0 additions & 9 deletions docs/api.rst

This file was deleted.

4 changes: 2 additions & 2 deletions docs/api/modules.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pygal
=====
API
===

.. toctree::
:maxdepth: 4
Expand Down
7 changes: 7 additions & 0 deletions docs/api/pygal.adapters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.adapters module
=====================

.. automodule:: pygal.adapters
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.colors.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.colors module
===================

.. automodule:: pygal.colors
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.config module
===================

.. automodule:: pygal.config
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.etree.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.etree module
==================

.. automodule:: pygal.etree
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.bar.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.bar module
======================

.. automodule:: pygal.graph.bar
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.base.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.base module
=======================

.. automodule:: pygal.graph.base
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.box.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.box module
======================

.. automodule:: pygal.graph.box
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.dot.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.dot module
======================

.. automodule:: pygal.graph.dot
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.funnel.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.funnel module
=========================

.. automodule:: pygal.graph.funnel
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.gauge.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.gauge module
========================

.. automodule:: pygal.graph.gauge
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.graph.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.graph module
========================

.. automodule:: pygal.graph.graph
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.histogram.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.histogram module
============================

.. automodule:: pygal.graph.histogram
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.horizontal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.horizontal module
=============================

.. automodule:: pygal.graph.horizontal
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.horizontalbar.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.horizontalbar module
================================

.. automodule:: pygal.graph.horizontalbar
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.horizontalstackedbar.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.horizontalstackedbar module
=======================================

.. automodule:: pygal.graph.horizontalstackedbar
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.line.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.line module
=======================

.. automodule:: pygal.graph.line
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.map.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.map module
======================

.. automodule:: pygal.graph.map
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.pie.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.pie module
======================

.. automodule:: pygal.graph.pie
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.public.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.public module
=========================

.. automodule:: pygal.graph.public
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.pyramid.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.pyramid module
==========================

.. automodule:: pygal.graph.pyramid
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/api/pygal.graph.radar.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pygal.graph.radar module
========================

.. automodule:: pygal.graph.radar
:members:
:undoc-members:
:show-inheritance:

0 comments on commit 61d269d

Please sign in to comment.