Skip to content

Commit b3b623a

Browse files
authored
Merge pull request #6 from Genentech/read-the-docs
read the docs
2 parents 62db131 + e28ed9f commit b3b623a

6 files changed

Lines changed: 67 additions & 38 deletions

File tree

.readthedocs.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: 2
2+
3+
sphinx:
4+
configuration: docs/conf.py
5+
python:
6+
install:
7+
- requirements: requirements.docs.txt
8+
9+
build:
10+
os: ubuntu-24.04
11+
tools:
12+
python: "3.12"
13+
jobs:
14+
install:
15+
- pip install -e ".[doc]"
16+
post_checkout:
17+
- git fetch --unshallow || true
18+
# Download and uncompress the binary
19+
# https://git-lfs.github.com/
20+
- wget https://github.com/git-lfs/git-lfs/releases/download/v3.1.4/git-lfs-linux-amd64-v3.1.4.tar.gz
21+
- tar xvfz git-lfs-linux-amd64-v3.1.4.tar.gz git-lfs
22+
# Modify LFS config paths to point where git-lfs binary was downloaded
23+
- git config filter.lfs.process "`pwd`/git-lfs filter-process"
24+
- git config filter.lfs.smudge "`pwd`/git-lfs smudge -- %f"
25+
- git config filter.lfs.clean "`pwd`/git-lfs clean -- %f"
26+
# Make LFS available in current repository
27+
- ./git-lfs install
28+
# Download content from remote
29+
- ./git-lfs fetch
30+
# Make local files to have the real content on them
31+
- ./git-lfs checkout

docs/conf.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@
1111
sys.path.insert(0, str(HERE.parent))
1212
import scallops # noqa
1313

14-
1514
project = "scallops"
1615
copyright = "2026, Genentech"
17-
author = "scallops team"
16+
author = "SCALLOPS team"
1817

1918
# -- General configuration ---------------------------------------------------
2019
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
2120
extensions = [
22-
"myst_parser", # allow md files
2321
"nbsphinx",
2422
"sphinx.ext.autodoc",
2523
"sphinx.ext.autosummary",
@@ -35,35 +33,37 @@
3533
suppress_warnings = [
3634
"nbsphinx",
3735
]
38-
autodoc_default_options = {"members": True, "member-order": "bysource"}
36+
autodoc_default_options = {"members": True}
3937
autodoc_typehints = "description"
4038
autosummary_generate = True
4139
todo_include_todos = False
4240
templates_path = ["_templates"]
4341
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
4442

45-
# intersphinx_mapping = dict(
46-
# matplotlib=("https://matplotlib.org/stable/", None),
47-
# numpy=("https://numpy.org/doc/stable/", None),
48-
# pandas=("https://pandas.pydata.org/pandas-docs/stable/", None),
49-
# pytest=("https://docs.pytest.org/en/latest/", None),
50-
# python=("https://docs.python.org/3", None),
51-
# scipy=("https://docs.scipy.org/doc/scipy/", None),
52-
# seaborn=("https://seaborn.pydata.org/", None),
53-
# skimage=("https://scikit-image.org/docs/stable/api/", None),
54-
# sklearn=("https://scikit-learn.org/dev/", None),
55-
# xarray=("https://docs.xarray.dev/", None),
56-
# )
43+
intersphinx_mapping = dict(
44+
matplotlib=("https://matplotlib.org/stable/", None),
45+
numpy=("https://numpy.org/doc/stable/", None),
46+
pandas=("https://pandas.pydata.org/pandas-docs/stable/", None),
47+
pytest=("https://docs.pytest.org/en/latest/", None),
48+
python=("https://docs.python.org/3", None),
49+
scipy=("https://docs.scipy.org/doc/scipy/", None),
50+
seaborn=("https://seaborn.pydata.org/", None),
51+
skimage=("https://scikit-image.org/docs/stable/api/", None),
52+
sklearn=("https://scikit-learn.org/dev/", None),
53+
xarray=("https://docs.xarray.dev/", None),
54+
)
5755
intersphinx_disabled_reftypes = ["*"]
5856
# -- Options for HTML output -------------------------------------------------
5957
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
6058

6159
html_theme = "sphinx_rtd_theme"
6260
html_static_path = ["_static"]
61+
62+
6363
# Add custom CSS files
64-
html_css_files = [
65-
"css/custom.css",
66-
]
64+
# html_css_files = [
65+
# "css/custom.css",
66+
# ]
6767

6868

6969
def skip_private_members(app, what, name, obj, skip, options):

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ complex biological systems data.
8888
example_commands
8989
workflows
9090
example_notebooks
91-
api
9291
faq
92+
api

docs/install.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22
Installation
33
************
44

5-
.
5+
6+
PyPI Release
7+
=========================
8+
Install SCALLOPS using your favorite environment manager::
9+
10+
pip install scallops
11+
12+
13+
Developer Instructions
14+
========================
615

716

817
1. Clone the repository::
@@ -30,12 +39,3 @@ Installation
3039

3140
.. _Mamba: https://mamba.readthedocs.io/en/latest/installation.html
3241
.. _Conda: https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html
33-
34-
35-
36-
Coming Soon: PyPI Release
37-
=========================
38-
We are planning to upload SCALLOPS to **PyPI** soon . Once available, you will
39-
be able to install the package using::
40-
41-
pip install scallops

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ dask-ml = [
8585
cellpose = [
8686
"cellpose<4"
8787
]
88-
ufish= [
88+
ufish = [
8989
"ufish"
9090
]
9191
test = [
@@ -99,12 +99,11 @@ dev = [
9999
]
100100
doc = [
101101
"ipython",
102-
"myst_parser",
103102
"nbsphinx",
104103
"sphinx-copybutton",
105104
"sphinx",
106105
"sphinx_argparse",
107-
"sphinx_rtd_theme"
106+
"sphinx_rtd_theme",
108107
]
109108
all = [
110109
"napari",

requirements.doc.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
ipython==9.6.0
2-
myst_parser==4.0.1
3-
nbsphinx==0.9.7
1+
ipython==9.9.0
2+
nbsphinx==0.9.8
43
sphinx-copybutton==0.5.2
5-
sphinx==8.1.3
4+
sphinx==9.1.0
65
sphinx_argparse==0.5.2
7-
sphinx_rtd_theme==3.0.2
6+
sphinx_rtd_theme==3.1.0

0 commit comments

Comments
 (0)