Skip to content

Commit

Permalink
Read corneto version in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pablormier committed Apr 25, 2024
1 parent 52facde commit 8f134fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
copyright = "2023, Saez-Rodriguez group"
author = "Pablo Rodriguez-Mier"


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

Expand Down Expand Up @@ -68,6 +69,11 @@
typehints_defaults = "braces"


import corneto
myst_substitutions = {
"version": corneto.__version__,
}

source_suffix = {
".rst": "restructuredtext",
".ipynb": "myst-nb",
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ pip install git+https://github.com/saezlab/corneto.git@dev
# For the latest stable release, use:
pip install corneto
```

**Version**: {{version}}

```{gallery-grid}
:grid-columns: 1 2 3 3
Expand Down

0 comments on commit 8f134fb

Please sign in to comment.