Skip to content

Update doc #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2

build:
os: "ubuntu-22.04"
tools:
python: "mambaforge-22.9"

conda:
environment: doc/environment.yml

sphinx:
# Path to your Sphinx configuration file.
configuration: doc/conf.py
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Deepberry : segmentation and time-lapse tracking of grapevine berries
# Deepberry : segmentation and time-lapse tracking of grapevine berries

### Installation from source
## Installation from source

# for prediction
mamba create -n grapevine -c conda-forge python=3.12 (3.9>=version<3.13)
Expand All @@ -20,7 +20,7 @@
# (optional) for model validation metrics:
pip install .[validation]

### Maintainers
## Maintainers

* Benoit Daviet ([email protected])
* Fournier Christian ([email protected])
Expand Down
25 changes: 13 additions & 12 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
import os
import sys

from importlib.metadata import metadata

pkg_name='deepberry'
meta = metadata('openalea.' + pkg_name)
release = meta.get("version")
# for example take major/minor
version = ".".join(release.split('.')[:3])

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand All @@ -24,6 +32,7 @@
"sphinx.ext.todo", # support for todo items
"sphinx.ext.napoleon", # support for numpy and google style docstrings
"sphinx_favicon", # support for favicon
"sphinx_copybutton",
"nbsphinx", # for integrating jupyter notebooks
"myst_parser", # for parsing .md files
]
Expand All @@ -32,7 +41,7 @@
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
autosummary_generate = True
exclude_patterns = ["_build", "_templates"]
exclude_patterns = ["build", "_templates"]
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
source_suffix = {
Expand All @@ -49,14 +58,6 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# find version number in /src/$pkg_pth/version.py
pkgver = {}
with open("../src/openalea/deepberry/version.py") as fp:
exec(fp.read(), pkgver)
# The short X.Y version.
version = pkgver["__version__"]
# The full version, including alpha/beta/rc tags.
release = pkgver["__version__"]
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
Expand All @@ -81,9 +82,9 @@
"collapse_navigation": "false",
"icon_links": [
{
"name": "GitLab",
"url": "https://forgemia.inra.fr/phenome/deepberry",
"icon": "fa-brands fa-gitlab",
"name": "GitHub",
"url": "https://github.com/openalea/deepberry",
"icon": "fa-brands fa-github",
},
],
"show_version_warning_banner": True,
Expand Down
2 changes: 1 addition & 1 deletion doc/environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: phenomenal
name: deepberry
channels:
- conda-forge
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ doc = [
"pydata-sphinx-theme",
"myst-parser",
"sphinx-favicon",
"sphinx-copybutton",
"ipykernel",
"ipyvolume",
"ipython_genutils",
"nbsphinx",
]
Expand Down