Skip to content
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

Convert md tutorials to rst and copy them to the website #95

508 changes: 461 additions & 47 deletions docs/poetry.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jaxlib = "^0.4.25"
numpyro = "^0.14.0"
sphinxcontrib-mermaid = "^0.9.2"
polars = "^0.20.16"
matplotlib = "^3.8.3"
sphinx-autodoc-typehints = "^2.1.0"


[build-system]
Expand Down
14 changes: 13 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,24 @@
"sphinx.ext.viewcode",
"sphinx.ext.mathjax",
"sphinxcontrib.mermaid",
"sphinx_autodoc_typehints",
]

# Simplifies printing of type hints
set_type_checking_flag = True
typehints_fully_qualified = False

# Avoid appending the full module name to the class name
add_module_names = False

templates_path = ["_templates"]
exclude_patterns = []

todo_include_todos = True
# Default deph for documentation
toc_deph = 2

# We don't want that explicitly
todo_include_todos = False


# -- Options for HTML output -------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/general/ctoc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Complete Table Of Contents
==========================

.. toctree::
:maxdepth: 4
:maxdepth: 3

../msei_reference/index
../test_reference/index
Expand Down
8 changes: 4 additions & 4 deletions docs/source/msei_reference/model.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
MSEI Model
==========

Hospitalizations
----------------
Hospital Admissions
-------------------

.. automodule:: pyrenew.model.hospitalizations
.. automodule:: pyrenew.model.admissionsmodel
:members:
:undoc-members:
:show-inheritance:

Reproduction Number Renewal Infections
--------------------------------------

.. automodule:: pyrenew.model.rtinfectionsrenewal
.. automodule:: pyrenew.model.rtinfectionsrenewalmodel
:members:
:undoc-members:
:show-inheritance:
Expand Down
2 changes: 1 addition & 1 deletion model/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ pip install git+https://github.com/cdcent/cfa-pyrenew.git

## Demo

The [`docs`](docs) folder contains quarto documents to get you started. It simulates observed hospitalizations using a simple renewal process model and then fits it using a No-U-Turn Sampler.
The [`docs`](docs) folder contains quarto documents to get you started. It simulates observed hospital admissions using a simple renewal process model and then fits it using a No-U-Turn Sampler.
Loading
Loading