Skip to content

Commit 8c48270

Browse files
authored
Remove references to Read the Docs (#1348)
1 parent b6a180e commit 8c48270

8 files changed

Lines changed: 39 additions & 75 deletions

File tree

.readthedocs.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

README.md

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- markdownlint-disable -->
22
<p align="center">
3-
<a href="http://torchio.rtfd.io/">
3+
<a href="https://torchio-project.github.io/torchio/">
44
<img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/source/favicon_io/for_readme_2000x462.png" alt="TorchIO logo">
55
</a>
66
</p>
@@ -39,8 +39,8 @@ at [OpenAI](https://openai.com/) ([link](https://jack-clark.net/2020/03/17/)).
3939
<a href="https://github.com/TorchIO-project/torchio/actions/workflows/tests.yml">
4040
<img src="https://github.com/TorchIO-project/torchio/actions/workflows/tests.yml/badge.svg" alt="Tests status">
4141
</a>
42-
<a href="https://torchio.rtfd.io/?badge=latest">
43-
<img src="https://img.shields.io/readthedocs/torchio?label=Docs&logo=Read%20the%20Docs" alt="Documentation status">
42+
<a href="https://github.com/TorchIO-project/torchio/actions/workflows/docs.yml">
43+
<img src="https://github.com/TorchIO-project/torchio/actions/workflows/docs.yml/badge.svg" alt="Documentation status">
4444
</a>
4545
<a href="https://app.codecov.io/github/TorchIO-project/torchio">
4646
<img src="https://codecov.io/gh/TorchIO-project/torchio/branch/main/graphs/badge.svg" alt="Coverage status">
@@ -94,13 +94,13 @@ at [OpenAI](https://openai.com/) ([link](https://jack-clark.net/2020/03/17/)).
9494
---
9595

9696
<p align="center">
97-
<a href="https://torchio.readthedocs.io/transforms/augmentation.html">
97+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html">
9898
<img style="width: 600px; overflow: hidden;" src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/fpg_progressive.gif" alt="Progressive artifacts">
9999
</a>
100100
</p>
101101

102102
<p align="center">
103-
<a href="https://torchio.readthedocs.io/transforms/augmentation.html">
103+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html">
104104
<img style="width: 360px; height: 360px; overflow: hidden;" src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/augmentation.gif" alt="Augmentation">
105105
</a>
106106
</p>
@@ -111,93 +111,93 @@ at [OpenAI](https://openai.com/) ([link](https://jack-clark.net/2020/03/17/)).
111111
<tr>
112112
<td align="center">Original</td>
113113
<td align="center">
114-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomblur">Random blur</a>
114+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomblur">Random blur</a>
115115
</td>
116116
</tr>
117117
<tr>
118118
<td align="center"><img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/1_Lambda_mri.png" alt="Original"></td>
119119
<td align="center">
120-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomblur">
120+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomblur">
121121
<img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/2_RandomBlur_mri.gif" alt="Random blur">
122122
</a>
123123
</td>
124124
</tr>
125125
<tr>
126126
<td align="center">
127-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomflip">Random flip</a>
127+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomflip">Random flip</a>
128128
</td>
129129
<td align="center">
130-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomnoise">Random noise</a>
130+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomnoise">Random noise</a>
131131
</td>
132132
</tr>
133133
<tr>
134134
<td align="center">
135-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomflip">
135+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomflip">
136136
<img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/3_RandomFlip_mri.gif" alt="Random flip">
137137
</a>
138138
</td>
139139
<td align="center">
140-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomnoise">
140+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomnoise">
141141
<img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/4_Compose_mri.gif" alt="Random noise">
142142
</a>
143143
</td>
144144
</tr>
145145
<tr>
146146
<td align="center">
147-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomaffine">Random affine transformation</a>
147+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomaffine">Random affine transformation</a>
148148
</td>
149149
<td align="center">
150-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomelasticdeformation">Random elastic transformation</a>
150+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomelasticdeformation">Random elastic transformation</a>
151151
</td>
152152
</tr>
153153
<tr>
154154
<td align="center">
155-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomaffine">
155+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomaffine">
156156
<img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/5_RandomAffine_mri.gif" alt="Random affine transformation">
157157
</a>
158158
</td>
159159
<td align="center">
160-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomelasticdeformation">
160+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomelasticdeformation">
161161
<img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/6_RandomElasticDeformation_mri.gif" alt="Random elastic transformation">
162162
</a>
163163
</td>
164164
</tr>
165165
<tr>
166166
<td align="center">
167-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randombiasfield">Random bias field artifact</a>
167+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randombiasfield">Random bias field artifact</a>
168168
</td>
169169
<td align="center">
170-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randommotion">Random motion artifact</a>
170+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randommotion">Random motion artifact</a>
171171
</td>
172172
</tr>
173173
<tr>
174174
<td align="center">
175-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randombiasfield">
175+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randombiasfield">
176176
<img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/7_RandomBiasField_mri.gif" alt="Random bias field artifact">
177177
</a>
178178
</td>
179179
<td align="center">
180-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randommotion">
180+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randommotion">
181181
<img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/8_RandomMotion_mri.gif" alt="Random motion artifact">
182182
</a>
183183
</td>
184184
</tr>
185185
<tr>
186186
<td align="center">
187-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomspike">Random spike artifact</a>
187+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomspike">Random spike artifact</a>
188188
</td>
189189
<td align="center">
190-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomghosting">Random ghosting artifact</a>
190+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomghosting">Random ghosting artifact</a>
191191
</td>
192192
</tr>
193193
<tr>
194194
<td align="center">
195-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomspike">
195+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomspike">
196196
<img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/9_RandomSpike_mri.gif" alt="Random spike artifact">
197197
</a>
198198
</td>
199199
<td align="center">
200-
<a href="http://torchio.rtfd.io/transforms/augmentation.html#randomghosting">
200+
<a href="https://torchio-project.github.io/torchio/transforms/augmentation.html#randomghosting">
201201
<img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/10_RandomGhosting_mri.gif" alt="Random ghosting artifact">
202202
</a>
203203
</td>
@@ -207,13 +207,13 @@ at [OpenAI](https://openai.com/) ([link](https://jack-clark.net/2020/03/17/)).
207207
---
208208

209209
<p align="center">
210-
<a href="https://torchio.readthedocs.io/patches/patch_training.html#queue">
210+
<a href="https://torchio-project.github.io/torchio/patches/patch_training.html#queue">
211211
<img style="width: 640px; height: 360px; overflow: hidden;" src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/queue.gif" alt="Queue">
212212
</a>
213213
</p>
214214

215-
([Queue](https://torchio.readthedocs.io/patches/patch_training.html#queue)
216-
for [patch-based training](https://torchio.readthedocs.io/patches/index.html))
215+
([Queue](https://torchio-project.github.io/torchio/patches/patch_training.html#queue)
216+
for [patch-based training](https://torchio-project.github.io/torchio/patches/index.html))
217217

218218
<!-- markdownlint-restore -->
219219

@@ -265,20 +265,19 @@ This project is supported by the following institutions:
265265

266266
## Getting started
267267

268-
See [Getting started](https://torchio.readthedocs.io/quickstart.html) for
269-
[installation](https://torchio.readthedocs.io/quickstart.html#installation)
268+
See [Getting started](https://torchio-project.github.io/torchio/quickstart.html) for
269+
[installation](https://torchio-project.github.io/torchio/quickstart.html#installation)
270270
instructions
271-
and a [Hello, World!](https://torchio.readthedocs.io/quickstart.html#hello-world)
271+
and a [Hello, World!](https://torchio-project.github.io/torchio/quickstart.html#hello-world)
272272
example.
273273

274274
Longer usage examples can be found in the
275275
[tutorials](https://github.com/TorchIO-project/torchio/blob/main/tutorials/README.md).
276276

277-
All the documentation is hosted on
278-
[Read the Docs](http://torchio.rtfd.io/).
277+
Read the [documentation](https://torchio-project.github.io/torchio/) for more information.
279278

280279
Please
281-
[open a new issue](https://github.com/TorchIO-project/torchio/issues/new/choose)
280+
[create an issue](https://github.com/TorchIO-project/torchio/issues/new/choose)
282281
if you think something is missing.
283282

284283
## Contributors

docs/source/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ If you found a bug or have a feature request, please open an issue:
8181
:target: https://github.com/TorchIO-project/torchio/blob/main/tutorials/README.md
8282
:alt: Google Colab notebooks
8383

84-
.. |Docs-status| image:: https://img.shields.io/readthedocs/torchio?label=Docs&logo=Read%20the%20Docs
85-
:target: https://torchio.rtfd.io/?badge=latest
84+
.. |Docs-status| image:: https://github.com/TorchIO-project/torchio/actions/workflows/docs.yml/badge.svg
85+
:target: https://github.com/TorchIO-project/torchio/actions/workflows/docs.yml
8686
:alt: Documentation status
8787

8888
.. |Tests-status| image:: https://github.com/TorchIO-project/torchio/actions/workflows/tests.yml/badge.svg

justfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ bump-python:
4343
new_version_string = f"{old_version.major}.{old_version.minor + 1}"
4444
python_version_path.write_text(new_version_string + "\n")
4545

46-
docs_config_path = Path(".readthedocs.yml")
47-
docs_config = docs_config_path.read_text()
48-
docs_config = docs_config.replace(
49-
f'python: "{old_version_string}"',
50-
f'python: "{new_version_string}"',
51-
)
52-
docs_config_path.write_text(docs_config)
53-
5446
tests_workflow_path = Path(".github/workflows/tests.yml")
5547
tests_workflow = tests_workflow_path.read_text()
5648
tests_workflow = tests_workflow.replace(

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ tiotr = "torchio.cli.apply_transform:app"
5858
torchio-transform = "torchio.cli.apply_transform:app"
5959

6060
[project.urls]
61-
Homepage = "http://torchio.rtfd.io"
61+
Homepage = "https://torchio-project.github.io/torchio"
6262
Source = "https://github.com/TorchIO-project/torchio"
6363
"Issue tracker" = "https://github.com/TorchIO-project/torchio/issues"
64-
Documentation = "http://torchio.rtfd.io"
64+
Documentation = "https://torchio-project.github.io/torchio"
6565
"Release notes" = "https://github.com/TorchIO-project/torchio/releases"
6666

6767
[dependency-groups]

src/torchio/data/image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ class Image(dict):
121121
>>> image = tio.ScalarImage('t1.npy', reader=numpy_reader)
122122
123123
.. _lazy loaders: https://en.wikipedia.org/wiki/Lazy_loading
124-
.. _preprocessing: https://torchio.readthedocs.io/transforms/preprocessing.html#intensity
125-
.. _augmentation: https://torchio.readthedocs.io/transforms/augmentation.html#intensity
124+
.. _preprocessing: https://torchio-project.github.io/torchio/transforms/preprocessing.html#intensity
125+
.. _augmentation: https://torchio-project.github.io/torchio/transforms/augmentation.html#intensity
126126
.. _NiBabel docs: https://nipy.org/nibabel/image_orientation.html
127127
.. _NiBabel docs on coordinates: https://nipy.org/nibabel/coordinate_systems.html#the-affine-matrix-as-a-transformation-between-spaces
128128
.. _3D Slicer wiki: https://www.slicer.org/wiki/Coordinate_systems

src/torchio/transforms/data_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_subject(self):
7575
'If the input is a dictionary, a value for "include" must'
7676
' be specified when instantiating the transform. See the'
7777
' docs for Transform:'
78-
' https://torchio.readthedocs.io/transforms/transforms.html#torchio.transforms.Transform'
78+
' https://torchio-project.github.io/torchio/transforms/transforms.html#torchio.transforms.Transform'
7979
)
8080
raise RuntimeError(message)
8181
subject = self._get_subject_from_dict(

src/torchio/transforms/preprocessing/spatial/crop_or_pad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class CropOrPad(SpatialTransform):
5959
6060
.. warning:: If :attr:`target_shape` is ``None``, subjects in the dataset
6161
will probably have different shapes. This is probably fine if you are
62-
using `patch-based training <https://torchio.readthedocs.io/patches/index.html>`_.
62+
using `patch-based training <https://torchio-project.github.io/torchio/patches/index.html>`_.
6363
If you are using full volumes for training and a batch size larger than
6464
one, an error will be raised by the :class:`~torch.utils.data.DataLoader`
6565
while trying to collate the batches.

0 commit comments

Comments
 (0)