Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

ENH: Move docs folder to sphinx-docs #768

Merged
merged 26 commits into from
Aug 4, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3f49383
📝Move docs folder to sphinx-docs
peterhessey Jul 21, 2022
8f8513d
Trigger build for new URL
peterhessey Jul 21, 2022
3390a4a
📝 Fix build to include README + CHANGLOG
peterhessey Jul 22, 2022
6487d06
📝 Add back in link fixing
peterhessey Jul 22, 2022
da3f4de
🐛 Fix docs links
peterhessey Jul 22, 2022
a319eac
🚨 📝 Fix markdown linting
peterhessey Jul 22, 2022
2591db6
📝 Change relative links to GitHub ones permanently
peterhessey Jul 22, 2022
3d201e2
📝 Replace more relative paths
peterhessey Jul 22, 2022
9fc25a9
⚡️ 📝 Switch to symlinks
peterhessey Jul 25, 2022
e8c6852
📝 Replace README in toctree
peterhessey Jul 25, 2022
e2702b5
📝 Update README
peterhessey Jul 26, 2022
46c1966
🐛 Attempt to fix images not rendering
peterhessey Jul 26, 2022
7f2c2e6
🐛 Fix broken links
peterhessey Jul 26, 2022
8156e79
Remove IDE settings from gitignore
peterhessey Jul 27, 2022
678b616
⚡️ Move docs to `docs/` and add Makefile back
peterhessey Jul 27, 2022
33e3a06
🙈 Update gitignore
peterhessey Jul 27, 2022
27e2893
♻️ ⚡️ Resolve review comments and change theme
peterhessey Jul 28, 2022
07ee50e
📝 🔀 Rebase + markdown linting
peterhessey Aug 2, 2022
686ca06
🔥 Remove build files (again)
peterhessey Aug 2, 2022
cc54f15
🙈 Remove pieline-breaking symlink
peterhessey Aug 2, 2022
11ecd1f
➕ Add furo to sphinx dependencies
peterhessey Aug 2, 2022
5353ae3
📌 Move sphinx deps to environment.yml + lock
peterhessey Aug 3, 2022
f5d3f76
📝 Improve doc folder structure
peterhessey Aug 3, 2022
a30f609
Return to copying instead of symlink
peterhessey Aug 3, 2022
5985fda
📝 Update indexing and titles
peterhessey Aug 3, 2022
efc5f9e
📝 Address review comments
peterhessey Aug 3, 2022
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
Prev Previous commit
Next Next commit
📝 Improve doc folder structure
  • Loading branch information
peterhessey committed Aug 3, 2022
commit f5d3f76f8399403a361fb0f57640b03e1eee04db
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ that can route anonymized DICOM images to an inference service.
- The [InnerEye-Inference](https://github.com/microsoft/InnerEye-Inference) component offers a REST API that integrates
with the InnerEye-Gateway, to run inference on InnerEye-DeepLearning models.

Details can be found [here](docs/source/docs/deploy_on_aml.md).
Details can be found [here](docs/source/md/deploy_on_aml.md).

![docs/deployment.png](docs/source/docs/images/deployment.png)
![docs/deployment.png](docs/source/images/deployment.png)

## Licensing

Expand Down
5 changes: 2 additions & 3 deletions TestSubmodule/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ dependencies:
- deprecated==1.2.13
- distro==1.7.0
- docker==4.3.1
- docutils==0.19
- docutils==0.17.1
- dotnetcore2==2.1.23
- entrypoints==0.4
- execnet==1.9.0
Expand All @@ -151,7 +151,7 @@ dependencies:
- gunicorn==20.1.0
- h5py==2.10.0
- hi-ml==0.2.2
- hi-ml-azure==0.2.4
- hi-ml-azure==0.2.2
- humanize==4.2.3
- idna==3.3
- imageio==2.15.0
Expand Down Expand Up @@ -257,7 +257,6 @@ dependencies:
- qtconsole==5.3.1
- qtpy==2.1.0
- querystring-parser==1.2.4
- recommonmark==0.7.1
- requests==2.28.1
- requests-oauthlib==1.3.1
- rich==10.13.0
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def replace_in_file(filepath: Path, original_str: str, replace_str: str) -> None


sphinx_root = Path(__file__).absolute().parent
docs_path = Path(sphinx_root / "docs")
docs_path = Path(sphinx_root / "md")
repository_root = sphinx_root.parent.parent

# Symlink to all files that are in the head of the repository
Expand Down
45 changes: 23 additions & 22 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,35 @@ InnerEye-DeepLearning Documentation

.. toctree::
:maxdepth: 1
:caption: TESTING THIS CAPTION HERE

docs/innereye_deeplearning.md
docs/WSL.md
docs/environment.md
docs/setting_up_aml.md
docs/creating_dataset.md
docs/building_models.md
docs/sample_tasks.md
docs/debugging_and_monitoring.md
md/innereye_deeplearning.md
md/WSL.md
md/environment.md
md/setting_up_aml.md
md/creating_dataset.md
md/building_models.md
md/sample_tasks.md
md/debugging_and_monitoring.md

.. toctree::
:maxdepth: 1
:caption: Further reading for contributors

docs/pull_requests.md
docs/testing.md
docs/contributing.md

docs/hello_world_model.md
docs/deploy_on_aml.md
docs/bring_your_own_model.md
docs/fastmri.md
docs/innereye_as_submodule.md
docs/model_diagnostics.md
docs/move_model.md
docs/releases.md
docs/self_supervised_models.md
docs/CHANGELOG.md
md/pull_requests.md
md/testing.md
md/contributing.md

md/hello_world_model.md
md/deploy_on_aml.md
md/bring_your_own_model.md
md/fastmri.md
md/innereye_as_submodule.md
md/model_diagnostics.md
md/move_model.md
md/releases.md
md/self_supervised_models.md
md/CHANGELOG.md
peterhessey marked this conversation as resolved.
Show resolved Hide resolved

.. toctree::
:caption: API documentation (🚧 Work In Progress 🚧)
Expand Down
1 change: 1 addition & 0 deletions docs/source/md/CHANGELOG.md
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Model Deployment

![deployment.png](images/deployment.png)
![deployment.png](../images/deployment.png)

InnerEye segmentation models using a single DICOM series as input and producing DICOM-RT can be integrated with DICOM networks using:

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Trained model for hippocampal segmentation

## Purpose
Expand Down Expand Up @@ -112,7 +111,7 @@ Note that due to the ADNI Data Usage Agreement we are only able to share aggrega

Dice Score for Left and Right hippocampus respectively on a held-out test set of :

![hippocampus_metrics_boxplot.png](hippocampus_metrics_boxplot.png)
![hippocampus_metrics_boxplot.png](../images/hippocampus_metrics_boxplot.png)
| Structure | count | DiceNumeric_mean | DiceNumeric_std | DiceNumeric_min | DiceNumeric_max | HausdorffDistance_mm_mean | HausdorffDistance_mm_std | HausdorffDistance_mm_min | HausdorffDistance_mm_max | MeanDistance_mm_mean | MeanDistance_mm_std | MeanDistance_mm_min | MeanDistance_mm_max |
|---------------|---------|------------------|-----------------|-----------------|-----------------|---------------------------|--------------------------|--------------------------|--------------------------|----------------------|---------------------|---------------------|---------------------|
| hippocampus_L | 252 | 0.918 | 0.022 | 0.819 | 0.953 | 2.206 | 0.812 | 1.206 | 6.964 | 0.168 | 0.054 | 0.096 | 0.399 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ with the InnnEye-Gateway, to run inference on InnerEye-DeepLearning models.

Details can be found [here](deploy_on_aml.md).

![deployment.png](images/deployment.png)
![deployment.png](../images/deployment.png)

## More information

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ scan. Dark red indicates voxels that are sampled very often, transparent red ind
infrequently.

Example thumbnail when viewed in the AzureML UI:
![Azure ML patch sampling screenshot](images/screenshot_azureml_patch_sampling.png)
![Azure ML patch sampling screenshot](../images/screenshot_azureml_patch_sampling.png)
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ dependencies:
- deprecated==1.2.13
- distro==1.7.0
- docker==4.3.1
- docutils==0.19
- docutils==0.17.1
- dotnetcore2==2.1.23
- entrypoints==0.4
- execnet==1.9.0
Expand All @@ -151,7 +151,7 @@ dependencies:
- gunicorn==20.1.0
- h5py==2.10.0
- hi-ml==0.2.2
- hi-ml-azure==0.2.4
- hi-ml-azure==0.2.2
- humanize==4.2.3
- idna==3.3
- imageio==2.15.0
Expand Down
2 changes: 1 addition & 1 deletion primary_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies:
- gputil==1.4.0
- h5py==2.10.0
- hi-ml==0.2.2
- hi-ml-azure==0.2.2
- imageio==2.15.0
- InnerEye-DICOM-RT==1.0.3
- ipython==7.31.1
Expand Down Expand Up @@ -59,7 +60,6 @@ dependencies:
- pytest-xdist==1.34.0
- pytest==6.0.1
- pytorch-lightning==1.5.5
- recommonmark==0.7.1
- rich==10.13.0
- rpdb==0.1.6
- ruamel.yaml==0.16.12
Expand Down