Skip to content

Commit

Permalink
Remove useless next/contents. Little sphinx fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed Jul 2, 2015
1 parent 5f57307 commit 39bbf56
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 48 deletions.
5 changes: 0 additions & 5 deletions docs/documentation/basic_customizations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ Basic customizations
====================


.. contents::


How to customize:
-----------------

Expand Down Expand Up @@ -615,5 +612,3 @@ Text to display instead of the graph when no data is supplied:
chart = pygal.Line(no_data_text='No result found')
chart.add('line', [])


Next: `Interpolations <interpolations.html>`_
2 changes: 0 additions & 2 deletions docs/documentation/builtin_styles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ Built-in Styles

pygal provides 14 built-in styles:

.. contents::


Default
-------
Expand Down
4 changes: 1 addition & 3 deletions docs/documentation/chart_types.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
Chart types
===========

pygal provides 10 kinds of charts:
pygal provides various kinds of charts:

.. contents::

Line charts
-----------
Expand Down Expand Up @@ -813,4 +812,3 @@ You can also specify a number for a region and use a department to region aggreg
'976': 212645
}))

Next: `Styles <styles.html>`_
4 changes: 0 additions & 4 deletions docs/documentation/custom_styles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ Custom Styles

pygal provides 2 ways to customize styles:

.. contents::


Using Style class
-----------------
Expand Down Expand Up @@ -107,5 +105,3 @@ NB: Now the css rules are prefixed by an unique id, to prevent collisions when i
chart.add('E', [7, 4, 2, 1, 2, 10, 0])


Next: `Basic customizations <basic_customizations.html>`_

2 changes: 0 additions & 2 deletions docs/documentation/first_steps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,3 @@ And finally add a title and some labels:
bar_chart.add('Fibonacci', [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55])
bar_chart.add('Padovan', [1, 1, 1, 2, 2, 3, 4, 5, 7, 9, 12])


Next: `Charts types <chart_types.html>`_
3 changes: 0 additions & 3 deletions docs/documentation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,4 @@ User documentation
sparks
metadata
other_customizations
builtin_styles
parametric_styles
custom_styles
web
5 changes: 0 additions & 5 deletions docs/documentation/interpolations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ Interpolations
==============


.. contents::


Without interpolation:
----------------------

Expand Down Expand Up @@ -111,5 +108,3 @@ You can change the resolution of the interpolation with the help of `interpolati
chart = pygal.Line(interpolate='quadratic', interpolation_precision=3)
chart.add('line', [1, 5, 17, 12, 5, 10])


Next: `Sparklines <sparks.html>`_
4 changes: 0 additions & 4 deletions docs/documentation/metadata.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Metadata
========

.. contents::


Labels
------
Expand Down Expand Up @@ -90,5 +88,3 @@ You can specify a dictionary to xlink with all links attributes:
'target': '_self'}
}])


Next: `Other customizations <other_customizations.html>`_
2 changes: 0 additions & 2 deletions docs/documentation/other_customizations.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Other customizations
====================

.. contents::


Logarithmic
-----------
Expand Down
2 changes: 0 additions & 2 deletions docs/documentation/parametric_styles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ Parametric Styles

pygal provides 5 parametric styles:

.. contents::


Usage
-----
Expand Down
8 changes: 2 additions & 6 deletions docs/documentation/sparks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ Sparklines
pygal provides a simple way to get beautiful sparklines.


.. contents::


Basic
-----

Expand Down Expand Up @@ -59,7 +56,7 @@ If you want to get a simple spartext, use the render_sparktext function:
chart.add('', [1, 3, 5, 16, 13, 3, 7])
chart.render_sparktext()
→ `▁▁▂█▆▁▃`
→ ``▁▁▂█▆▁▃``

You can also specify an explicit minimum for the values:

Expand All @@ -69,7 +66,6 @@ You can also specify an explicit minimum for the values:
chart.add('', [1, 3, 5, 16, 13, 3, 7])
chart.render_sparktext(relative_to=0)
→ `▁▂▃█▆▂▄`
→ ``▁▂▃█▆▂▄``


Next: `Metadata <metadata.html>`_
9 changes: 6 additions & 3 deletions docs/documentation/styles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Styles

There are three ways to style the charts:

- Using `built-in themes <builtin_styles.html>`_
- Using `parametric themes <parametric_styles.html>`_
- Using `custom themes <custom_styles.html>`_
.. toctree::
:maxdepth: 2

builtin_styles
parametric_styles
custom_styles
2 changes: 0 additions & 2 deletions docs/documentation/web.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Embedding in a web page
=======================

.. contents::


Within an embed tag
-------------------
Expand Down
2 changes: 1 addition & 1 deletion pygal/css/graph.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
stroke-dasharray: 6,6;
}
{{ id }}.axis text.major {
font-weight: bold;
stroke-width: .25px;
}

{{ id }}.horizontal .axis.y .guide.line,
Expand Down
8 changes: 4 additions & 4 deletions pygal/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,13 @@ def to_dict(self):
RTDStyle = Style(
background='#fcfcfc',
plot_background='#ffffff',
foreground='#404040',
foreground_light='#202020',
foreground_dark='#606060',
foreground='#707070',
foreground_light='#404040',
foreground_dark='#a0a0a0',
opacity='.8',
opacity_hover='.9',
transition='400ms ease-in',
colors=[colors.rotate('#2980b9', i * 30) for i in range(16)])
colors=[colors.rotate('#2980b9', i * 50) for i in range(16)])


styles = {'default': DefaultStyle,
Expand Down

0 comments on commit 39bbf56

Please sign in to comment.