Skip to content

Commit

Permalink
Remove CSS and update development docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Nov 1, 2024
1 parent f34da1a commit 7aa9349
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 118 deletions.
20 changes: 0 additions & 20 deletions doc/_static/css/custom.css

This file was deleted.

6 changes: 2 additions & 4 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,8 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_css_files = [
'css/custom.css',
]
# html_static_path = ['_static']

html_favicon = "images/favicon-32x32.png"


Expand Down
19 changes: 19 additions & 0 deletions doc/development/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,25 @@ We use Sphinx to build the documentation. To build the documentation locally, yo
This will build the documentation in the :code:`doc/_build/html` folder. You can open the :code:`index.html` file in your browser to see the documentation.

Adding new documentation
------------------------

Documentation can be added as a
`sphinx-gallery <https://sphinx-gallery.github.io/stable/index.html>`_
python file ('tutorials')
or a
`sphinx rst <https://sphinx-tutorial.readthedocs.io/step-1/>`_
file (all other sections).

To add a new tutorial, add your ``.py`` file to ``spikeinterface/examples``.
Then, update the ``spikeinterface/doc/tutorials_custom_index.rst`` file
to make a new card linking to the page and an optional image. See
``tutorials_custom_index.rst`` header for more information.

For other sections, write your documentation in ``.rst`` format and add
the page to the appropriate ``index.rst`` file found in the relevant
folder (e.g. ``how_to/index.rst``).

How to run code coverage locally
--------------------------------
To run code coverage locally, you can use the following command:
Expand Down
1 change: 0 additions & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ SpikeInterface is made of several modules to deal with different aspects of the
overview
get_started/index
tutorials_custom_index
tutorials/index
how_to/index
modules/index
api
Expand Down
128 changes: 35 additions & 93 deletions doc/tutorials_custom_index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
:orphan:

TutorialsNew
Tutorials
============

Longer form tutorials about using SpikeInterface. Many of these are downloadable as notebooks or Python scripts so that you can "code along" with the tutorials.
Longer form tutorials about using SpikeInterface. Many of these are downloadable
as notebooks or Python scripts so that you can "code along" with the tutorials.

If you're new to SpikeInterface, we recommend trying out the :ref:`get_started/quickstart:Quickstart tutorial` first.
If you're new to SpikeInterface, we recommend trying out the
:ref:`get_started/quickstart:Quickstart tutorial` first.

Updating from legacy
--------------------
Expand All @@ -35,77 +37,53 @@ These tutorials focus on the :py:mod:`spikeinterface.core` module.
.. grid:: 1 2 2 3
:gutter: 2

.. grid-item-card::
.. grid-item-card:: Recording objects
:link-type: ref
:link: sphx_glr_tutorials_core_plot_1_recording_extractor.py
:img-top: /tutorials/core/images/thumb/sphx_glr_plot_1_recording_extractor_thumb.png
:img-alt: Recording objects
:class-card: gallery-card
:text-align: center

.. raw:: html

<div class="grid-item-card-title default-title">Recording objects</div>
<div class="hover-content">Manage loaded recordings in SpikeInterface</div>

.. grid-item-card::
.. grid-item-card:: Sorting objects
:link-type: ref
:link: sphx_glr_tutorials_core_plot_2_sorting_extractor.py
:img-top: /tutorials/core/images/thumb/sphx_glr_plot_2_sorting_extractor_thumb.png
:img-alt: Sorting objects
:class-card: gallery-card
:text-align: center

.. raw:: html

<div class="grid-item-card-title default-title">Sorting objects</div>
<div class="hover-content">Explore sorting extractor features</div>

.. grid-item-card::
.. grid-item-card:: Handling probe information
:link-type: ref
:link: sphx_glr_tutorials_core_plot_3_handle_probe_info.py
:img-top: /tutorials/core/images/thumb/sphx_glr_plot_3_handle_probe_info_thumb.png
:img-alt: Handling probe information
:class-card: gallery-card
:text-align: center

.. raw:: html

<div class="grid-item-card-title default-title">Handling probe information</div>
<div class="hover-content">Handle and visualize probe information</div>

.. grid-item-card::
.. grid-item-card:: SortingAnalyzer
:link-type: ref
:link: sphx_glr_tutorials_core_plot_4_sorting_analyzer.py
:img-top: /tutorials/core/images/thumb/sphx_glr_plot_4_sorting_analyzer_thumb.png
:img-alt: SortingAnalyzer
:class-card: gallery-card
:text-align: center

.. raw:: html

<div class="grid-item-card-title default-title">SortingAnalyzer</div>
<div class="hover-content">Analyze sorting results with ease</div>

.. grid-item-card::
.. grid-item-card:: Append and/or concatenate segments
:link-type: ref
:link: sphx_glr_tutorials_core_plot_5_append_concatenate_segments.py
:img-top: /tutorials/core/images/thumb/sphx_glr_plot_5_append_concatenate_segments_thumb.png
:img-alt: Append/Concatenate segments
:class-card: gallery-card
:text-align: center

.. raw:: html

<div class="grid-item-card-title default-title">Append and/or concatenate segments</div>
<div class="hover-content">Combine segments efficiently</div>

.. grid-item-card::
.. grid-item-card:: Handle time information
:link-type: ref
:link: sphx_glr_tutorials_core_plot_6_handle_times.py
:img-top: /tutorials/core/images/thumb/sphx_glr_plot_6_handle_times_thumb.png
:img-alt: Handle time information
:class-card: gallery-card

.. raw:: html

<div class="grid-item-card-title default-title">Handle time information</div>
<div class="hover-content">Manage and analyze time information</div>
:text-align: center

Extractors tutorials
--------------------
Expand All @@ -115,29 +93,21 @@ The :py:mod:`spikeinterface.extractors` module is designed to load and save reco
.. grid:: 1 2 2 3
:gutter: 2

.. grid-item-card::
.. grid-item-card:: Read various formats
:link-type: ref
:link: sphx_glr_tutorials_extractors_plot_1_read_various_formats.py
:img-top: /tutorials/extractors/images/thumb/sphx_glr_plot_1_read_various_formats_thumb.png
:img-alt: Read various formats
:class-card: gallery-card
:text-align: center

.. raw:: html

<div class="grid-item-card-title default-title">Read various formats</div>
<div class="hover-content">Read different recording formats efficiently</div>

.. grid-item-card::
.. grid-item-card:: Working with unscaled traces
:link-type: ref
:link: sphx_glr_tutorials_extractors_plot_2_working_with_unscaled_traces.py
:img-top: /tutorials/extractors/images/thumb/sphx_glr_plot_2_working_with_unscaled_traces_thumb.png
:img-alt: Unscaled traces
:class-card: gallery-card

.. raw:: html

<div class="grid-item-card-title default-title">Working with unscaled traces</div>
<div class="hover-content">Learn about managing unscaled traces</div>
:text-align: center

Quality metrics tutorial
------------------------
Expand All @@ -147,29 +117,21 @@ The :code:`spikeinterface.qualitymetrics` module allows users to compute various
.. grid:: 1 2 2 3
:gutter: 2

.. grid-item-card::
.. grid-item-card:: Quality Metrics
:link-type: ref
:link: sphx_glr_tutorials_qualitymetrics_plot_3_quality_mertics.py
:img-top: /tutorials/qualitymetrics/images/thumb/sphx_glr_plot_3_quality_mertics_thumb.png
:img-alt: Quality Metrics
:class-card: gallery-card
:text-align: center

.. raw:: html

<div class="grid-item-card-title default-title">Quality Metrics</div>
<div class="hover-content">Evaluate sorting quality using metrics</div>

.. grid-item-card::
.. grid-item-card:: Curation Tutorial
:link-type: ref
:link: sphx_glr_tutorials_qualitymetrics_plot_4_curation.py
:img-top: /tutorials/qualitymetrics/images/thumb/sphx_glr_plot_4_curation_thumb.png
:img-alt: Curation Tutorial
:class-card: gallery-card

.. raw:: html

<div class="grid-item-card-title default-title">Curation Tutorial</div>
<div class="hover-content">Learn how to curate spike sorting data</div>
:text-align: center

Comparison tutorial
-------------------
Expand All @@ -179,17 +141,13 @@ The :code:`spikeinterface.comparison` module allows you to compare sorter output
.. grid:: 1 2 2 3
:gutter: 2

.. grid-item-card::
.. grid-item-card:: Sorter Comparison
:link-type: ref
:link: sphx_glr_tutorials_comparison_plot_5_comparison_sorter_weaknesses.py
:img-top: /tutorials/comparison/images/thumb/sphx_glr_plot_5_comparison_sorter_weaknesses_thumb.png
:img-alt: Sorter Comparison
:class-card: gallery-card

.. raw:: html

<div class="grid-item-card-title default-title">Sorter Comparison</div>
<div class="hover-content">Compare sorter outputs and assess weaknesses</div>
:text-align: center

Widgets tutorials
-----------------
Expand All @@ -199,53 +157,37 @@ The :code:`widgets` module contains several plotting routines (widgets) for visu
.. grid:: 1 2 2 3
:gutter: 2

.. grid-item-card::
.. grid-item-card:: RecordingExtractor Widgets
:link-type: ref
:link: sphx_glr_tutorials_widgets_plot_1_rec_gallery.py
:img-top: /tutorials/widgets/images/thumb/sphx_glr_plot_1_rec_gallery_thumb.png
:img-alt: Recording Widgets
:class-card: gallery-card
:text-align: center

.. raw:: html

<div class="grid-item-card-title default-title">RecordingExtractor Widgets</div>
<div class="hover-content">Visualize recordings with widgets</div>

.. grid-item-card::
.. grid-item-card:: SortingExtractor Widgets
:link-type: ref
:link: sphx_glr_tutorials_widgets_plot_2_sort_gallery.py
:img-top: /tutorials/widgets/images/thumb/sphx_glr_plot_2_sort_gallery_thumb.png
:img-alt: Sorting Widgets
:class-card: gallery-card
:text-align: center

.. raw:: html

<div class="grid-item-card-title default-title">SortingExtractor Widgets</div>
<div class="hover-content">Explore sorting data using widgets</div>

.. grid-item-card::
.. grid-item-card:: Waveforms Widgets
:link-type: ref
:link: sphx_glr_tutorials_widgets_plot_3_waveforms_gallery.py
:img-top: /tutorials/widgets/images/thumb/sphx_glr_plot_3_waveforms_gallery_thumb.png
:img-alt: Waveforms Widgets
:class-card: gallery-card
:text-align: center

.. raw:: html

<div class="grid-item-card-title default-title">Waveforms Widgets</div>
<div class="hover-content">Display waveforms using SpikeInterface</div>

.. grid-item-card::
.. grid-item-card:: Peaks Widgets
:link-type: ref
:link: sphx_glr_tutorials_widgets_plot_4_peaks_gallery.py
:img-top: /tutorials/widgets/images/thumb/sphx_glr_plot_4_peaks_gallery_thumb.png
:img-alt: Peaks Widgets
:class-card: gallery-card

.. raw:: html

<div class="grid-item-card-title default-title">Peaks Widgets</div>
<div class="hover-content">Visualize detected peaks</div>
:text-align: center

Download All Examples
---------------------
Expand Down

0 comments on commit 7aa9349

Please sign in to comment.