Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
c4862dc
add readthedocs yaml
HenrZu Jan 23, 2025
bf1cbf0
add docs files
HenrZu Jan 23, 2025
47db25c
path conf file
HenrZu Jan 23, 2025
a3d25f3
change yaml
HenrZu Jan 23, 2025
3e57f6e
move readthedocs file, first draft
HenrZu Jan 24, 2025
ad3eca4
config in root
HenrZu Jan 24, 2025
c884788
change copyright
HenrZu Jan 24, 2025
aaeebe1
CHG: Add and try out Furo Layout
kilianvolmer Jan 24, 2025
73a725e
CHG: Include logo
kilianvolmer Jan 24, 2025
b36ac2c
FIX: path tho logo updated
kilianvolmer Jan 24, 2025
5b7bc33
CHG: Add footer link to github
kilianvolmer Jan 24, 2025
e1e73af
CHG: Add copy buttons to code lines
kilianvolmer Jan 24, 2025
0689a9e
NEW: Test breathe integration
kilianvolmer Jan 27, 2025
9ec1f0d
CHG: Add doxygen file generation
kilianvolmer Jan 27, 2025
3b06076
CHG: Add breathe to environment
kilianvolmer Jan 27, 2025
4999e63
CHG: remove unnecessary path to breathe extension
kilianvolmer Jan 27, 2025
4a79299
NEW: Example page for SDE SIR model
kilianvolmer Jan 27, 2025
dbb1f61
CHG: Add crossreference to models page
kilianvolmer Jan 27, 2025
86fda1a
NEW: second model explanation added
kilianvolmer Jan 27, 2025
5e22298
CHG: Remove lumache example
kilianvolmer Jan 29, 2025
32782ec
CHG: Add exhale plus some minor details
kilianvolmer Jan 30, 2025
f12ed46
CHG: Modify .gitignore for work with exhale
kilianvolmer Jan 30, 2025
14ec28e
NEW: Added hoverxref as test
kilianvolmer Jan 30, 2025
d3aa60f
CHG: Add automatically generated files folder
kilianvolmer Jan 31, 2025
94303d4
FIX: Prolong the underline
kilianvolmer Jan 31, 2025
e59ae84
CHG: Add autosummary support for python
kilianvolmer Jan 31, 2025
a1e9e83
CHG: Add memilio-python packages, hoverxref autoref
kilianvolmer Feb 6, 2025
1d358fd
Merge pull request #1 from HenrZu/pythonapi
kilianvolmer Feb 6, 2025
637ed51
CHG: Add memilio-epidata to requirements
kilianvolmer Feb 6, 2025
47e123a
CHG: Test importing memilio instead of using path
kilianvolmer Feb 6, 2025
d3edd92
CHG: Test new requirements file layout
kilianvolmer Feb 6, 2025
73fa9ba
CHG: Try fix add libmagic
kilianvolmer Feb 6, 2025
c38b3fc
FIX: change libmagic
kilianvolmer Feb 6, 2025
9aec082
FIX: formatting mistake in requirements.txt
kilianvolmer Feb 6, 2025
8066b6e
FIX: Use python-magic 0.4.13
kilianvolmer Feb 6, 2025
86eed16
CHG: Install libmagic1 via apt
kilianvolmer Feb 6, 2025
4d61892
Merge branch 'exhale'
kilianvolmer Feb 7, 2025
1a64d7c
CHG: Added exhale settings
kilianvolmer Feb 7, 2025
04d60d0
CHG: Doxygen only interpretes cpp/memilio
kilianvolmer Feb 7, 2025
b0b8182
CHG: Remove additional cpp-API page
kilianvolmer Feb 7, 2025
b68bfc8
CHG: reformatted docstrings using pyment (with human supervision)
kilianvolmer Feb 7, 2025
bc69e3f
FIX: remove cppapi from index toctree
kilianvolmer Feb 7, 2025
e399204
CHG: Changed docstring of _init_
kilianvolmer Feb 7, 2025
93125e6
CHG: Remove ! from docstrings begin
kilianvolmer Feb 7, 2025
1a038d1
CHG: readded model folder to doxygen
kilianvolmer Feb 9, 2025
4430acc
Merge pull request #2 from HenrZu/python_doctexts_fixed
kilianvolmer Feb 9, 2025
5ac1db7
CHG: Only load models in doxyfile to speedup compilation
kilianvolmer Feb 9, 2025
82cbdff
CHG: Stop doxygen from generating HTML output
kilianvolmer Feb 9, 2025
01bd8ab
CHG: Updated file docstrings
kilianvolmer Feb 10, 2025
cf43089
NEW: Add missing readmes
kilianvolmer Mar 5, 2025
8e2b2c0
NEW: Overwrite breadcrumbs file to add github logo
kilianvolmer Mar 5, 2025
221bb15
CHG: Use rst layout
kilianvolmer Mar 5, 2025
584f5eb
CHG: Do not load shinx_remove_toctrees
kilianvolmer Mar 5, 2025
770c30c
FIX: Link to Braunschweig added
kilianvolmer Mar 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -280,5 +280,7 @@ pycode/memilio-epidata/memilio/epidata/CredentialsRegio.ini
# Docs
docs/html
docs/xml
docs/source/api
docs/source/generated

# End of https://www.gitignore.io/api/c++,node,python
15 changes: 15 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: "2"

build:
os: "ubuntu-22.04"
apt_packages:
- libmagic1
tools:
python: "3.10"

python:
install:
- requirements: docs/requirements.txt

sphinx:
configuration: docs/source/conf.py
4 changes: 2 additions & 2 deletions docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ WARN_LOGFILE =
# spaces.
# Note: If this tag is empty the current directory is searched.

INPUT = ../README.md README.md ../pycode/README.md ../pycode/memilio-epidata/memilio/epidata ../cpp/README.md ../cpp/memilio/ ../cpp/models/
INPUT = ../cpp/models

# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
Expand Down Expand Up @@ -990,7 +990,7 @@ IGNORE_PREFIX =
# If the GENERATE_HTML tag is set to YES doxygen will generate HTML output
# The default value is: YES.

GENERATE_HTML = YES
GENERATE_HTML = NO

# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
Expand Down
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
35 changes: 35 additions & 0 deletions docs/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%

:end
popd
12 changes: 12 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
sphinx==7.1.2
sphinx-rtd-theme==1.3.0rc1
furo
sphinx-copybutton
breathe
sphinx-hoverxref
pycode/memilio-epidata
pycode/memilio-generation
pycode/memilio-plot
pycode/memilio-simulation
pycode/memilio-surrogatemodel
exhale
38 changes: 38 additions & 0 deletions docs/source/_templates/autosummary/class.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{{ fullname | escape | underline}}

.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}

{% block methods %}
{% if '__init__' in methods %}
.. automethod:: __init__
:noindex:
{% endif %}
{% if methods %}
.. rubric:: Methods Summary
.. autosummary::
{% for item in methods %}
~{{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block attributes %}
{% if attributes %}
.. rubric:: Attributes
.. autosummary::
{% for item in attributes %}
~{{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block methods_full %}
{% if methods %}
.. rubric:: Methods
{% for item in methods %}
.. automethod:: {{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
62 changes: 62 additions & 0 deletions docs/source/_templates/autosummary/module.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{{ fullname | escape | underline}}

.. automodule:: {{ fullname }}
:members:
:undoc-members:

{% block attributes %}
{% if attributes %}
.. rubric:: {{ _('Module Attributes') }}

.. autosummary::
{% for item in attributes %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block functions %}
{% if functions %}
.. rubric:: {{ _('Functions') }}

.. autosummary::
{% for item in functions %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block classes %}
{% if classes %}
.. rubric:: {{ _('Classes') }}

.. autosummary::
{% for item in classes %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block exceptions %}
{% if exceptions %}
.. rubric:: {{ _('Exceptions') }}

.. autosummary::
{% for item in exceptions %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block modules %}
{% if modules %}
.. rubric:: Modules

.. autosummary::
:toctree:
:recursive:
{% for item in modules %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
13 changes: 13 additions & 0 deletions docs/source/_templates/breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% extends "!breadcrumbs.html" %}
{%- block breadcrumbs_aside %}
<li class="wy-breadcrumbs-aside", style="margin-left: 20px;">
<a href="https://github.com/SciCompMod/memilio" target="_blank" aria-label="GitHub">
<svg height="24" width="24" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd"
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z">
</path>
</svg>
</a>
</li>
{{ super() }}
{% endblock %}
Loading
Loading