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

4 add readthedocs #8

Merged
merged 3 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,6 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
poetry.lock
*/README_preprocessed.md
test.ipynb
33 changes: 33 additions & 0 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
API Reference
============

Model
----
.. automodule:: deep_quality_estimation.model
:members:
:undoc-members:
:show-inheritance:

Data Handling
------------
.. automodule:: deep_quality_estimation.data_handler
:members:
:undoc-members:
:show-inheritance:

.. automodule:: deep_quality_estimation.transforms
:members:
:undoc-members:
:show-inheritance:

Utilities
---------
.. automodule:: deep_quality_estimation.center_of_mass
:members:
:undoc-members:
:show-inheritance:

.. automodule:: deep_quality_estimation.enums
:members:
:undoc-members:
:show-inheritance:
11 changes: 7 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
from subprocess import run


sys.path.insert(0, os.path.abspath("../../"))
sys.path.insert(0, os.path.abspath("../.."))


run(["python", "preprocess_readme.py"])

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = "PACKAGE_NAME"
project = "Deep Quality Estimation"
copyright = "2024, Marcel Rosier et al."
author = "Marcel Rosier, Florian Kofler"

Expand All @@ -38,9 +38,12 @@
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "pydata-sphinx-theme"
html_theme = "pydata_sphinx_theme"
html_theme_options = {
"github_url": "https://github.com/BrainLesion/deep_quality_estimation",
}
# html_static_path = ["_static"]

autodoc_mock_imports = ["torch", "monai"] # Mock imports to avoid dependency issues
autodoc_default_options = {
"members": True,
"undoc-members": True,
Expand Down
20 changes: 5 additions & 15 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
PACKAGE_NAME documentation
===================
deep_quality_estimation
=========================

.. include:: ../README_preprocessed.md
:parser: myst_parser.sphinx_


Sections
===================



.. toctree::
:maxdepth: 1
:caption: Getting Started:

readme

.. toctree::
:maxdepth: 2
:caption: API Reference:
:hidden:
:caption: API Reference

api
6 changes: 0 additions & 6 deletions docs/source/readme.rst

This file was deleted.