Browse Source

Remove useless next/contents. Little sphinx fixes

pull/242/head
Florian Mounier 10 years ago
parent
commit
39bbf5633e
  1. 5
      docs/documentation/basic_customizations.rst
  2. 2
      docs/documentation/builtin_styles.rst
  3. 4
      docs/documentation/chart_types.rst
  4. 4
      docs/documentation/custom_styles.rst
  5. 2
      docs/documentation/first_steps.rst
  6. 3
      docs/documentation/index.rst
  7. 5
      docs/documentation/interpolations.rst
  8. 4
      docs/documentation/metadata.rst
  9. 2
      docs/documentation/other_customizations.rst
  10. 2
      docs/documentation/parametric_styles.rst
  11. 8
      docs/documentation/sparks.rst
  12. 9
      docs/documentation/styles.rst
  13. 2
      docs/documentation/web.rst
  14. 2
      pygal/css/graph.css
  15. 8
      pygal/style.py

5
docs/documentation/basic_customizations.rst

@ -2,9 +2,6 @@ Basic customizations
==================== ====================
.. contents::
How to customize: How to customize:
----------------- -----------------
@ -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 = pygal.Line(no_data_text='No result found')
chart.add('line', []) chart.add('line', [])
Next: `Interpolations <interpolations.html>`_

2
docs/documentation/builtin_styles.rst

@ -3,8 +3,6 @@ Built-in Styles
pygal provides 14 built-in styles: pygal provides 14 built-in styles:
.. contents::
Default Default
------- -------

4
docs/documentation/chart_types.rst

@ -1,9 +1,8 @@
Chart types Chart types
=========== ===========
pygal provides 10 kinds of charts: pygal provides various kinds of charts:
.. contents::
Line charts Line charts
----------- -----------
@ -813,4 +812,3 @@ You can also specify a number for a region and use a department to region aggreg
'976': 212645 '976': 212645
})) }))
Next: `Styles <styles.html>`_

4
docs/documentation/custom_styles.rst

@ -3,8 +3,6 @@ Custom Styles
pygal provides 2 ways to customize styles: pygal provides 2 ways to customize styles:
.. contents::
Using Style class Using Style class
----------------- -----------------
@ -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]) chart.add('E', [7, 4, 2, 1, 2, 10, 0])
Next: `Basic customizations <basic_customizations.html>`_

2
docs/documentation/first_steps.rst

@ -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('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]) bar_chart.add('Padovan', [1, 1, 1, 2, 2, 3, 4, 5, 7, 9, 12])
Next: `Charts types <chart_types.html>`_

3
docs/documentation/index.rst

@ -12,7 +12,4 @@ User documentation
sparks sparks
metadata metadata
other_customizations other_customizations
builtin_styles
parametric_styles
custom_styles
web web

5
docs/documentation/interpolations.rst

@ -2,9 +2,6 @@ Interpolations
============== ==============
.. contents::
Without interpolation: Without interpolation:
---------------------- ----------------------
@ -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 = pygal.Line(interpolate='quadratic', interpolation_precision=3)
chart.add('line', [1, 5, 17, 12, 5, 10]) chart.add('line', [1, 5, 17, 12, 5, 10])
Next: `Sparklines <sparks.html>`_

4
docs/documentation/metadata.rst

@ -1,8 +1,6 @@
Metadata Metadata
======== ========
.. contents::
Labels Labels
------ ------
@ -90,5 +88,3 @@ You can specify a dictionary to xlink with all links attributes:
'target': '_self'} 'target': '_self'}
}]) }])
Next: `Other customizations <other_customizations.html>`_

2
docs/documentation/other_customizations.rst

@ -1,8 +1,6 @@
Other customizations Other customizations
==================== ====================
.. contents::
Logarithmic Logarithmic
----------- -----------

2
docs/documentation/parametric_styles.rst

@ -3,8 +3,6 @@ Parametric Styles
pygal provides 5 parametric styles: pygal provides 5 parametric styles:
.. contents::
Usage Usage
----- -----

8
docs/documentation/sparks.rst

@ -4,9 +4,6 @@ Sparklines
pygal provides a simple way to get beautiful sparklines. pygal provides a simple way to get beautiful sparklines.
.. contents::
Basic Basic
----- -----
@ -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.add('', [1, 3, 5, 16, 13, 3, 7])
chart.render_sparktext() chart.render_sparktext()
 `▁▁▂█▆▁▃`  ``▁▁▂█▆▁▃``
You can also specify an explicit minimum for the values: You can also specify an explicit minimum for the values:
@ -69,7 +66,6 @@ You can also specify an explicit minimum for the values:
chart.add('', [1, 3, 5, 16, 13, 3, 7]) chart.add('', [1, 3, 5, 16, 13, 3, 7])
chart.render_sparktext(relative_to=0) chart.render_sparktext(relative_to=0)
 `▁▂▃█▆▂▄`  ``▁▂▃█▆▂▄``
Next: `Metadata <metadata.html>`_

9
docs/documentation/styles.rst

@ -3,6 +3,9 @@ Styles
There are three ways to style the charts: There are three ways to style the charts:
- Using `built-in themes <builtin_styles.html>`_ .. toctree::
- Using `parametric themes <parametric_styles.html>`_ :maxdepth: 2
- Using `custom themes <custom_styles.html>`_
builtin_styles
parametric_styles
custom_styles

2
docs/documentation/web.rst

@ -1,8 +1,6 @@
Embedding in a web page Embedding in a web page
======================= =======================
.. contents::
Within an embed tag Within an embed tag
------------------- -------------------

2
pygal/css/graph.css

@ -66,7 +66,7 @@
stroke-dasharray: 6,6; stroke-dasharray: 6,6;
} }
{{ id }}.axis text.major { {{ id }}.axis text.major {
font-weight: bold; stroke-width: .25px;
} }
{{ id }}.horizontal .axis.y .guide.line, {{ id }}.horizontal .axis.y .guide.line,

8
pygal/style.py

@ -304,13 +304,13 @@ SolidColorStyle = Style(
RTDStyle = Style( RTDStyle = Style(
background='#fcfcfc', background='#fcfcfc',
plot_background='#ffffff', plot_background='#ffffff',
foreground='#404040', foreground='#707070',
foreground_light='#202020', foreground_light='#404040',
foreground_dark='#606060', foreground_dark='#a0a0a0',
opacity='.8', opacity='.8',
opacity_hover='.9', opacity_hover='.9',
transition='400ms ease-in', 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, styles = {'default': DefaultStyle,

Loading…
Cancel
Save