Skip to content

Commit 83037d3

Browse files
committed
Edit documentation conf
1 parent 5eb5eaf commit 83037d3

6 files changed

Lines changed: 65 additions & 22 deletions

File tree

docs/rtd_environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ dependencies:
77
- python=3.9
88
- pip
99
- ipython
10-
- nbsphinx
10+
- jupyter
11+
- myst-nb
1112
- numpydoc
1213
- sphinx
1314
- sphinx-autobuild

docs/source/background/interface_plots.ipynb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# The Interface Functions and Solution Container\n",
7+
"# The Interface Functions and Solution Container"
8+
]
9+
},
10+
{
11+
"cell_type": "markdown",
12+
"metadata": {},
13+
"source": [
814
"\n",
915
"In this tutorial, we demonstrate how to use the interface functions of the `dcegm` package to visualize the solved model and explain the structure of the solution container, which is the output of the `solve` function.\n",
1016
"\n",

docs/source/background/specify_exogenous_processes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Specifying Exogenous Processes in the DCEGM Module
22

3+
34
## Overview
45

56
Exogenous processes in the ```dcegm``` module define how state variables evolve over time based on transition probabilities. These transition probabilities must be properly specified to ensure consistency with the model structure. This document outlines how to define exogenous processes and specify them within the model's ```options``` dictionary.

docs/source/conf.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
"sphinx.ext.doctest",
3434
"sphinx.ext.extlinks", # link to websites using abbreviations
3535
"sphinx.ext.napoleon",
36+
"myst_nb", # Already present per rtd_environment.yml
37+
"sphinx.ext.mathjax", # For math in notebooks
38+
"sphinx.ext.githubpages", # For gh-pages'
3639
]
3740

3841
# Add any paths that contain templates here, relative to this directory.
@@ -48,8 +51,10 @@
4851
# List of patterns, relative to source directory, that match files and
4952
# directories to ignore when looking for source files.
5053
# This pattern also affects html_static_path and html_extra_path.
51-
exclude_patterns = []
54+
exclude_patterns = ["_build", "**.ipynb_checkpoints"]
5255

56+
# Ensure Jupyter notebooks are parsed
57+
nbsphinx_allow_errors = True # Optional: continue build even if code cells fail
5358

5459
# -- Options for HTML output -------------------------------------------------
5560

@@ -63,6 +68,9 @@
6368
"top_of_page_button": "edit",
6469
"navigation_with_keys": True,
6570
"sidebar_hide_name": False,
71+
"source_repository": "https://github.com/OpenSourceEconomics/dc-egm",
72+
"source_branch": "main",
73+
"source_directory": "docs/source",
6674
"footer_icons": [
6775
{
6876
"name": "GitHub",
@@ -75,7 +83,7 @@
7583
"class": "",
7684
},
7785
],
78-
"announcement": "This documentation is under construction.",
86+
#"announcement": "This documentation is under construction.",
7987
}
8088

8189
# Add any paths that contain custom static files (such as style sheets) here,
@@ -92,3 +100,7 @@
92100

93101
# Path for sphinx-autoapi
94102
autoapi_dirs = ["../../src"]
103+
104+
source_suffix = [".rst", ".ipynb", ".md"]
105+
106+
# note: do not add .ipynb when nbspinx is enabled, otherwise you get the "missing title" error

docs/source/development/team.rst

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,43 @@ Team
55
=======
66

77

8-
+---------------------------------------------------------------+-------------------------------------------------------------------+
9-
+ .. figure:: ../_static/images/max.jpeg + .. figure:: ../_static/images/sebastian.jpeg +
10-
+ :width: 120px + :width: 120px +
11-
+ + +
12-
+ `Max Blesch <https://github.com/MaxBlesch>`_ + `Sebastian Gsell <https://github.com/segsell>`_ +
13-
+---------------------------------------------------------------+-------------------------------------------------------------------+
14-
+ .. figure:: ../_static/images/bruno.jpeg + .. figure:: ../_static/images/annica.jpeg +
15-
+ :width: 120px + :width: 120px +
16-
+ + +
17-
+ `Bruno Veltri <https://github.com/BVeltri>`_ + `Annica Gehlen <https://github.com/amageh>`_ +
18-
+---------------------------------------------------------------+-------------------------------------------------------------------+
19-
+ .. figure:: ../_static/images/gregor.png + .. figure:: ../_static/images/Frederik.jpeg +
20-
+ :width: 120px + :width: 120px +
21-
+ + +
22-
+ `Gregor Schueler <https://github.com/gregor-schueler>`_ + `Frederik Emil Larsen <https://github.com/LarsenFred>`_ +
23-
+---------------------------------------------------------------+-------------------------------------------------------------------+
8+
.. _team:
9+
10+
11+
Team
12+
=======
13+
14+
15+
.. list-table::
16+
:widths: 50 50
17+
:header-rows: 0
18+
19+
* - .. figure:: ../_static/images/max.jpeg
20+
:width: 120px
21+
22+
`Max Blesch <https://github.com/MaxBlesch>`_
23+
24+
- .. figure:: ../_static/images/sebastian.jpeg
25+
:width: 120px
26+
27+
`Sebastian Gsell <https://github.com/segsell>`_
28+
29+
* - .. figure:: ../_static/images/bruno.jpeg
30+
:width: 120px
31+
32+
`Bruno Veltri <https://github.com/BVeltri>`_
33+
34+
- .. figure:: ../_static/images/annica.jpeg
35+
:width: 120px
36+
37+
`Annica Gehlen <https://github.com/amageh>`_
38+
39+
* - .. figure:: ../_static/images/gregor.png
40+
:width: 120px
41+
42+
`Gregor Schueler <https://github.com/gregor-schueler>`_
43+
44+
- .. figure:: ../_static/images/Frederik.jpeg
45+
:width: 120px
46+
47+
`Frederik Emil Larsen <https://github.com/LarsenFred>`_

docs/source/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ savings, including additional discrete choices.
3535

3636
background/limitations
3737
background/literature
38-
background/interface_plots.ipynb
39-
background/specify_exogenous_processes.ipynb
38+
background/specify_exogenous_processes.md
4039
background/timing_benchmarks.ipynb
4140

4241

0 commit comments

Comments
 (0)