Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://doi.org/10.5281/zenodo.3597474
27 August 2025, 14:32:56 UTC
  • Code
  • Branches (0)
  • Releases (7)
  • Visits
    • Branches
    • Releases
      • 7
      • 7
      • 6
      • 5
      • 4
      • 3
      • 2
      • 1
    • b6d380b
    • /
    • MouseLand-Kilosort-8f396c7
    • /
    • docs
    • /
    • conf.py
    Raw File Download

    To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
    Select below a type of object currently browsed in order to display its associated SWHID and permalink.

    • content
    • directory
    • snapshot
    • release
    origin badgecontent badge
    swh:1:cnt:e3c19cec4f224aa3f9711341ed15e55eb37d4ed6
    origin badgedirectory badge
    swh:1:dir:1080bfb52e507caf38bdd75b0c0a87246c60e2d0
    origin badgesnapshot badge
    swh:1:snp:cde65436e19c7a8c490b366892685f110e246dcf
    origin badgerelease badge
    swh:1:rel:4aa70d8c6bf4aecf2297faaca70d7dba2d9e7b48

    This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
    Select below a type of object currently browsed in order to generate citations for them.

    • content
    • directory
    • snapshot
    • release
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    conf.py
    # NOTE: To build locally, run the following from the top level of the Kilosort4
    #       repository:
    #       `conda install -c conda-forge pandoc`
    #       Then reinstall Kilosort4 with docs dependencies:
    #       `pip install -e .[docs]`
    #       Then build the html with:
    #       `sphinx-build -b html docs/ docs/build/html`
    #       For api: `sphinx-apidoc -f -o docs/source/api kilosort` (WIP)
    #                For now, add to api.rst manually instead.       
    
    # Configuration file for the Sphinx documentation builder.
    #
    # For the full list of built-in configuration values, see the documentation:
    # https://www.sphinx-doc.org/en/master/usage/configuration.html
    
    # Download README from main branch when building documentation, following:
    # https://stackoverflow.com/questions/66495200/is-it-possible-to-include-external-rst-files-in-my-documentation
    from urllib.request import urlretrieve
    urlretrieve (
        "https://raw.githubusercontent.com/MouseLand/Kilosort/main/README.md",
        "README.md"
    )
    
    # -- Project information -----------------------------------------------------
    # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
    
    project = 'Kilosort4'
    copyright = '2024, Marius Pachitariu, Jacob Pennington & Carsen Stringer'
    author = 'Jacob Pennington (documentation)'
    release = '0.0.1'
    
    # -- General configuration ---------------------------------------------------
    # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
    
    extensions = [
        'sphinx.ext.doctest',
        'myst_parser',            # Use markdown files in addition to .rst
        'nbsphinx',               # Render notebooks
        'sphinx_rtd_theme',
        'sphinx.ext.autodoc',
        'sphinx.ext.napoleon',
        'sphinx.ext.viewcode'
        ]
    
    autoapi_dirs = ['.../kilosort']
    master_doc = 'index'
    
    # Notebooks will be displayed even if they include errors
    nbsphinx_allow_errors = True
    # Don't auto-execute notebooks.
    nbsphinx_execute = 'never'
    
    templates_path = ['_templates']
    exclude_patterns = []
    
    
    
    # -- Options for HTML output -------------------------------------------------
    # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
    html_logo = 'https://osf.io/download/67f0132e7cd1c79b16829846/'
    
    # The theme to use for HTML and HTML Help pages.  See the documentation for
    # a list of builtin themes.
    #
    html_theme = 'sphinx_rtd_theme'
    
    html_theme_options = {
        'canonical_url': '',
        'analytics_id': 'UA-XXXXXXX-1',  #  Provided by Google in your dashboard
        'logo_only': False,
        'display_version': True,
        'prev_next_buttons_location': 'top',
        'style_external_links': False,
        'style_nav_header_background': 'Gray',
        # Toc options
        'collapse_navigation': True,
        'sticky_navigation': True,
        'navigation_depth': 4,
        'includehidden': True,
        'titles_only': False
    }
    html_static_path = ['_static']
    

    back to top

    Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
    The source code of Software Heritage itself is available on our development forge.
    The source code files archived by Software Heritage are available under their own copyright and licenses.
    Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API