Skip to content

Commit

Permalink
correct version in docs, tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Jun 22, 2024
1 parent 4c8b4dd commit 9d94e56
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 25 deletions.
2 changes: 1 addition & 1 deletion docs/api/models/sdcard.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# sdCard
# sdcard

```{eval-rst}
.. automodule:: miniscope_io.models.sdcard
Expand Down
46 changes: 24 additions & 22 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,43 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'miniscope-io'
copyright = '2023, Jonny'
author = 'Jonny, Takuya'
release = '0.1.8'
from importlib.metadata import version as _version

project = "miniscope-io"
copyright = "2023, Jonny"
author = "Jonny, Takuya"
release = _version("miniscope-io")
html_title = "miniscope-io"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
'sphinx.ext.graphviz',
"sphinx.ext.graphviz",
"myst_parser",
'sphinx.ext.napoleon',
'sphinx.ext.autodoc',
'sphinxcontrib.autodoc_pydantic',
'sphinx.ext.intersphinx',
'sphinx.ext.todo'
"sphinx.ext.napoleon",
"sphinx.ext.autodoc",
"sphinxcontrib.autodoc_pydantic",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
]

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]


# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'furo'
html_static_path = ['_static']
html_theme = "furo"
html_static_path = ["_static"]

intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
'matplotlib': ('https://matplotlib.org/stable/', None),
'numpy': ('https://numpy.org/doc/stable/', None),
'pandas': ('https://pandas.pydata.org/docs/', None),
'rich': ('https://rich.readthedocs.io/en/stable/', None)
"python": ("https://docs.python.org/3", None),
"matplotlib": ("https://matplotlib.org/stable/", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"pandas": ("https://pandas.pydata.org/docs/", None),
"rich": ("https://rich.readthedocs.io/en/stable/", None),
}

# ----------
Expand Down Expand Up @@ -70,7 +72,7 @@
# autodoc
# Mock imports for packages we don't have yet - this one is
# for opal kelley stuff we need to figure out the licensing for
autodoc_mock_imports = ['routine']
autodoc_mock_imports = ["routine"]

# todo
todo_include_todos = True
todo_include_todos = True
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ guide/usage
```

```{toctree}
:maxdepth: 2
:maxdepth: 1
:caption: API:
api/devices
Expand All @@ -26,6 +26,7 @@ api/vendor/index

```{toctree}
:caption: Meta:
:maxdepth: 1
meta/changelog
meta/contributing
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ updateDevice = "miniscope_io.device_update:updateDevice"
[tool.ruff]
target-version = "py311"
include = ["miniscope_io/**/*.py", "pyproject.toml"]
exclude = ["tests", "miniscope_io/vendor", "noxfile.py"]
exclude = ["docs", "tests", "miniscope_io/vendor", "noxfile.py"]
line-length = 100

[tool.ruff.lint]
Expand Down

0 comments on commit 9d94e56

Please sign in to comment.