]> git.parisson.com Git - timeside.git/commitdiff
Doc: Clean-up conf.py
authorThomas Fillon <thomas@parisson.com>
Fri, 16 Jan 2015 08:43:17 +0000 (09:43 +0100)
committerThomas Fillon <thomas@parisson.com>
Fri, 16 Jan 2015 09:12:54 +0000 (10:12 +0100)
- Remove path to sample wavfile
- Restore default parameters for *html_domain_indices* . The previous command was preventing np-modindex to appear as a second module index. This seems to be covered by 'numpydoc_show_class_members = False'. (See https://github.com/matplotlib/matplotlib/issues/1837/)

doc/source/conf.py
doc/source/intro.rst
doc/source/tutorial/quick_start.rst

index 7c5796009ef21d2e1ba404ad845e1b603a8105af..afbc635f3e0280e65e8f9e2990e43ac3eb41caee 100644 (file)
@@ -35,11 +35,6 @@ extensions = ['sphinx.ext.autodoc',
               'matplotlib.sphinxext.plot_directive']
 
 doctest_path = os.path.abspath('../../')
-doctest_global_setup = '''
-import os
-# os.getcwd() -> /doc
-wav_file = os.path.join(os.getcwd(),'../tests/samples/sweep.mp3')
-'''
 
 autodoc_default_flags = 'show-inheritance'
 autoclass_content = 'both'
@@ -61,7 +56,7 @@ master_doc = 'index'
 
 # General information about the project.
 project = u'TimeSide'
-copyright = u'2014, Guillaume Pellerin, Paul Brossier, Thomas Fillon'
+copyright = u'2015, Guillaume Pellerin, Paul Brossier, Thomas Fillon'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
@@ -164,9 +159,9 @@ html_static_path = ['_static']
 #html_additional_pages = {}
 
 # If false, no module index is generated.
-#html_domain_indices = True
+html_domain_indices = True
 # This is required to remove the superfluous np module index added by numpydoc
-html_domain_indices = ['py-modindex']
+#html_domain_indices = ['py-modindex']
 
 # If false, no index is generated.
 #html_use_index = True
index 99913bf15ceccd70de46b83aabec8b68bb6584c0..f87016375fa63196d21e43022c3e0db19f49c476 100644 (file)
@@ -62,10 +62,11 @@ To list all available plugins:
 
 .. testcleanup:: 
 
+   import os
    os.remove('sweep.ogg')
    os.remove('waveform.png')
 
-.. doctest:: 
+.. doctest::
 
    >>> import timeside
    >>> timeside.core.list_processors()  # doctest: +SKIP
@@ -73,7 +74,7 @@ To list all available plugins:
 
 Define some processors:
 
-.. doctest:: 
+.. doctest::
 
     >>> from timeside.core import get_processor
     >>> from timeside.core.tools.test_samples import samples
@@ -85,13 +86,13 @@ Define some processors:
 
 Then run the *magic* pipeline:
 
-.. doctest:: 
+.. doctest::
 
     >>> (decoder | grapher | analyzer | encoder).run()
 
 Render the grapher results:
 
-.. doctest:: 
+.. doctest::
 
     >>> grapher.render(output='waveform.png')
 
index 2b46f1ede1708a8f6c024e22263a7b32088bfc28..4b75de51ee03a8dd30e8d285ebb5e4dce0293fed 100644 (file)
@@ -4,6 +4,10 @@
 
 A most basic operation, transcoding, is easily performed with two processors:
 
+.. testsetup:: *
+
+    import os
+
 .. testcleanup:: test_1
 
    os.remove('sweep.ogg')