-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oskar
committed
Feb 3, 2024
1 parent
7dd5979
commit 507f67e
Showing
19 changed files
with
82 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
generated/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,11 @@ | ||
# Building the HTML documentation | ||
|
||
Install sphinx first in your environment. Make sure to have the right version. | ||
Install MedPy with the `[doc]` extras | ||
|
||
pip3 install sphinx==1.6.7 | ||
pip3 install medpy[doc] | ||
|
||
and test if the right binary is called. Higher versions break with the used numpydoc version. | ||
|
||
Then run | ||
Then run in `docs/` | ||
|
||
sphinx-build -aE -b html source/ build/ | ||
|
||
, then edit .rst files belong to Python classes | ||
|
||
source/generated/medpy.graphcut.graph.Graph.rst | ||
source/generated/medpy.graphcut.graph.GCGraph.rst | ||
source/generated/medpy.filter.IntensityRangeStandardization.IntensityRangeStandardization.rst | ||
source/generated/medpy.core.logger.Logger.rst | ||
source/generated/medpy.header.Header.rst | ||
source/generated/medpy.iterators.* | ||
|
||
by removing the line | ||
|
||
.. automethod:: __init__ | ||
|
||
and adding the line | ||
|
||
:toctree: generated/ | ||
|
||
beneath each ".. autosummary::" command. | ||
|
||
Finally rerun the build | ||
|
||
sphinx-build -aE -b html source/ build/ | ||
|
||
|
||
## Enabling the search box | ||
|
||
Remove | ||
|
||
scipy-sphinx-theme/_theme/scipy/searchbox.html | ||
|
||
from the scipy template, as it somehow overrides the search box with a custom link to edit the .rst files in-place online. | ||
|
||
|
||
## Generate the API documentation files | ||
|
||
Run | ||
|
||
sphinx-apidoc -efF -H MedPy -A "Oskar Maier" -V 0.2 -R 1 -o generated/ ../../medpy/medpy/ | ||
You can now find the HTML files in the `build/` folder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
=========== | ||
Information | ||
=========== | ||
|
||
.. toctree:: | ||
:glob: | ||
:maxdepth: 1 | ||
|
||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
============ | ||
Installation | ||
============ | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
fastpath | ||
venv | ||
developmentmode | ||
graphcutsupport | ||
windows | ||
osx | ||
conda | ||
python2 | ||
uninstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
========= | ||
Notebooks | ||
========= | ||
|
||
`Accessing the image's meta-data <https://github.com/loli/medpy/blob/master/notebooks/Accessing%20the%20image's%20meta-data.ipynb>`_. | ||
In this tutorial we will learn how to access and manipulate the image's meta-data form the header. | ||
|
||
`Load, threshold and save an image <https://github.com/loli/medpy/blob/master/notebooks/Load%2C%20threshold%20and%20save%20an%20image.ipynb>`_. | ||
In this tutorial you will learn how to load a medical image with MedPy, how to perform a simple thresholding operation and how to save the resulting binary image. | ||
|
||
`Simple binary image processing <https://github.com/loli/medpy/blob/master/notebooks/Simple%20binary%20image%20processing.ipynb>`_. | ||
In this tutorial you will learn some simple binary image processing. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
========= | ||
Reference | ||
========= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
io | ||
metric | ||
filter | ||
features | ||
iterators | ||
neighbours | ||
graphcut | ||
core | ||
utilities |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
======== | ||
Tutorial | ||
======== | ||
|
||
.. toctree:: | ||
:glob: | ||
:maxdepth: 1 | ||
|
||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters