Skip to content

Commit e07b3cc

Browse files
committed
auto generate docs
1 parent bb917fd commit e07b3cc

File tree

9 files changed

+716
-95
lines changed

9 files changed

+716
-95
lines changed

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
66
SPHINXOPTS ?=
7-
SPHINXBUILD ?= sphinx-build
7+
SPHINXBUILD ?= sphinx-build
88
SOURCEDIR = source
99
BUILDDIR = build
1010

docs/conf.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# This file only contains a selection of the most common options. For a full
4+
# list see the documentation:
5+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6+
7+
# -- Path setup --------------------------------------------------------------
8+
9+
# If extensions (or modules to document with autodoc) are in another directory,
10+
# add these directories to sys.path here. If the directory is relative to the
11+
# documentation root, use os.path.abspath to make it absolute, like shown here.
12+
#
13+
# import os
14+
# import sys
15+
# sys.path.insert(0, os.path.abspath('.'))
16+
17+
18+
# -- Project information -----------------------------------------------------
19+
20+
import epidemik
21+
22+
project = 'epidemik'
23+
copyright = '2024, Bruno Gonçalves'
24+
author = 'Bruno Gonçalves'
25+
26+
# The full version, including alpha/beta/rc tags
27+
release = epidemik.__version__
28+
29+
30+
# -- General configuration ---------------------------------------------------
31+
32+
# Add any Sphinx extension module names here, as strings. They can be
33+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
34+
# ones.
35+
extensions = [
36+
'sphinx.ext.autodoc',
37+
'sphinx.ext.viewcode',
38+
'sphinx.ext.napoleon',
39+
'sphinx_autodoc_typehints',
40+
]
41+
42+
# Add any paths that contain templates here, relative to this directory.
43+
templates_path = ['_templates']
44+
45+
# List of patterns, relative to source directory, that match files and
46+
# directories to ignore when looking for source files.
47+
# This pattern also affects html_static_path and html_extra_path.
48+
exclude_patterns = []
49+
50+
51+
# -- Options for HTML output -------------------------------------------------
52+
53+
# The theme to use for HTML and HTML Help pages. See the documentation for
54+
# a list of builtin themes.
55+
#
56+
html_theme = 'sphinx_rtd_theme'
57+
58+
# Add any paths that contain custom static files (such as style sheets) here,
59+
# relative to this directory. They are copied after the builtin static files,
60+
# so a file named "default.css" will overwrite the builtin "default.css".
61+
html_static_path = ['_static']

docs/source/epidemik.rst

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
epidemik package
2+
================
3+
4+
Submodules
5+
----------
6+
7+
epidemik.EpiModel module
8+
------------------------
9+
10+
.. automodule:: epidemik.EpiModel
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
epidemik.MetaEpiModel module
16+
----------------------------
17+
18+
.. automodule:: epidemik.MetaEpiModel
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
epidemik.NetworkEpiModel module
24+
-------------------------------
25+
26+
.. automodule:: epidemik.NetworkEpiModel
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
31+
epidemik.utils module
32+
---------------------
33+
34+
.. automodule:: epidemik.utils
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:
38+
39+
Module contents
40+
---------------
41+
42+
.. automodule:: epidemik
43+
:members:
44+
:undoc-members:
45+
:show-inheritance:

docs/source/index.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. epidemik documentation master file, created by
2+
sphinx-quickstart on Sun Mar 30 10:52:07 2025.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Welcome to epidemik's documentation!
7+
====================================
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: Contents:
12+
13+
modules
14+
15+
Indices and tables
16+
==================
17+
18+
* :ref:`genindex`
19+
* :ref:`modindex`
20+
* :ref:`search`

docs/source/modules.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
src
2+
===
3+
4+
.. toctree::
5+
:maxdepth: 4
6+
7+
epidemik

0 commit comments

Comments
 (0)