Skip to content

Commit cdf7e0b

Browse files
authored
Merge pull request #2 from DRAGGON-Lab/codex/fix-documentation-badge-in-readme
Fix Read the Docs badge build
2 parents eaadd0d + 4e0b43f commit cdf7e0b

7 files changed

Lines changed: 32 additions & 17 deletions

File tree

‎.readthedocs.yaml‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Read the Docs configuration file.
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details.
3+
version: 2
4+
5+
build:
6+
os: ubuntu-24.04
7+
tools:
8+
python: "3.12"
9+
10+
sphinx:
11+
configuration: docs/conf.py
12+
13+
python:
14+
install:
15+
- requirements: docs/requirements.txt
16+
- method: pip
17+
path: .

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Welcome to the LOICA (Logical Operators for Integrated Cell Algorithms) reposito
77

88

99
![PyPI](https://img.shields.io/pypi/v/loica)
10-
[![Documentation Status](https://readthedocs.org/projects/loica/badge/?version=latest)](https://loica.readthedocs.io/en/latest/?badge=latest)
10+
[![Documentation Status](https://readthedocs.org/projects/loica/badge/?version=latest)](https://loica.readthedocs.io/en/latest/)
1111
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/loica)
1212
![PyPI - License](https://img.shields.io/pypi/l/loica)
1313

@@ -43,7 +43,7 @@ For more details please refer to our [Wiki](https://github.com/RudgeLab/LOICA/wi
4343

4444
## Documentation
4545

46-
Please visit our documentation with API reference at Read the Docs [loica.rtfd.io](https://loica.rtfd.io)
46+
Please visit our documentation with API reference at Read the Docs: [loica.readthedocs.io](https://loica.readthedocs.io/en/latest/).
4747

4848
## Tutorials
4949

‎docs/conf.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
]
3737

3838
# See https://sphinx-autoapi.readthedocs.io/en/latest/reference/config.html
39-
autoapi_dirs = ['../loica']
39+
autoapi_dirs = ['../src/loica']
4040
# autoapi_options = ['members', 'undoc-members', 'show-inheritance',
4141
# 'show-module-summary', 'special-members']
4242
autoapi_type = 'python'
@@ -67,4 +67,5 @@
6767
# Add any paths that contain custom static files (such as style sheets) here,
6868
# relative to this directory. They are copied after the builtin static files,
6969
# so a file named "default.css" will overwrite the builtin "default.css".
70-
html_static_path = ['_static']
70+
# html_static_path can be enabled when custom static assets are added.
71+
html_static_path = []

‎docs/index.rst‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@ Welcome to LOICA's documentation!
99

1010
.. toctree::
1111
:maxdepth: 2
12-
12+
1313
introduction
14-
15-
============
16-
Introduction
17-
============
1814

1915
Welcome to the LOICA (Logical Operators for Integrated Cell Algorithms) repository, our Python package for designing, modeling and characterizing genetic networks.
2016

‎docs/requirements.txt‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# these are fixed in accordance with rtd recommendations: https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html#pinning-dependencies
2-
sphinx==4.4.0
3-
sphinx_rtd_theme==1.0.0
4-
sphinx-autoapi==1.8.4
1+
# These pins follow Read the Docs' reproducible-build recommendations while
2+
# staying compatible with the current Read the Docs build image.
3+
sphinx==7.4.7
4+
sphinx_rtd_theme==2.0.0
5+
sphinx-autoapi==3.6.0

‎src/loica/geneproduct.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class GeneProduct:
1414
Initial concentration of the gene product in Molar
1515
degradation_rate : int | float
1616
Degradation rate of the gene product
17-
type_ : str, optional
17+
type\_ : str, optional
1818
Molecular type of the gene product, could be 'PRO' or 'RNA'
1919
uri : str, optional
2020
SynBioHub URI

‎src/loica/sample.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class Sample:
1818
strain : str
1919
Name of the strain in the sample
2020
21-
Methods
21+
Methods
2222
-------
23-
add_supplement(supplement, concentration)
24-
stablishes the concentration of Supplement
23+
set_supplement(supplement, concentration, profile=None)
24+
Sets the concentration profile for a supplement.
2525
"""
2626
def __init__(self,
2727
genetic_network=None,

0 commit comments

Comments
 (0)