Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
c89aec0
DOC: SimpleITK -> ITK
thewtex Jan 14, 2025
316934e
WIP: RTD stub
thewtex Jan 14, 2025
a82ffe5
ENH: Update ReadTheDocs publish version to v1.0.0
thewtex Jan 15, 2025
0b77f0f
ENH: Update ReadTheDocs publish version to v1.0.0
thewtex Jan 15, 2025
332052f
ENH: Update ReadTheDocs publish version to v1.0.0
thewtex Jan 15, 2025
03bf52e
ENH: Update ReadTheDocs publish version to v1.2.0
thewtex Jan 15, 2025
edba8a7
ENH: Update ReadTheDocs publish version to v1.4.0
thewtex Jan 15, 2025
3742329
ENH: Update ReadTheDocs publish version to v1.6.0
thewtex Jan 15, 2025
152e3c0
ENH: Update ReadTheDocs publish version to v1.8.0
thewtex Jan 15, 2025
aa864fd
ENH: Update ReadTheDocs publish version to v2.0.0
thewtex Jan 15, 2025
6d7b8c4
ENH: Update ReadTheDocs publish version to v2.2.0
thewtex Jan 15, 2025
c7cc8c5
ENH: Update ReadTheDocs publish version to v2.4.0
thewtex Jan 15, 2025
dda8a36
ENH: Update ReadTheDocs publish version to v2.8.0
thewtex Jan 15, 2025
2d30a92
ENH: Update ReadTheDocs publish version to v3.0.0
thewtex Jan 15, 2025
f342b97
ENH: Update ReadTheDocs publish version to v3.2.0
thewtex Jan 15, 2025
7e25bcb
ENH: Update ReadTheDocs publish version to v3.4.0
thewtex Jan 15, 2025
e7cd211
ENH: Update ReadTheDocs publish version to v3.6.0
thewtex Jan 15, 2025
d57bd2f
ENH: Update ReadTheDocs publish version to v3.8.0
thewtex Jan 15, 2025
b78026e
ENH: Update ReadTheDocs publish version to v3.10.0
thewtex Jan 15, 2025
c02e5be
ENH: Update ReadTheDocs publish version to v3.12.0
thewtex Jan 15, 2025
80bf2a6
ENH: Update ReadTheDocs publish version to v3.14.0
thewtex Jan 15, 2025
0682f4e
ENH: Update ReadTheDocs publish version to v3.16.0
thewtex Jan 15, 2025
ab12778
ENH: Update ReadTheDocs publish version to v3.18.0
thewtex Jan 15, 2025
c9ac994
ENH: Update ReadTheDocs publish version to v3.20.0
thewtex Jan 15, 2025
f0fa775
ENH: Update ReadTheDocs publish version to v4.0.0
thewtex Jan 15, 2025
f8031ba
ENH: Update ReadTheDocs publish version to v4.1.0
thewtex Jan 15, 2025
1800dd6
ENH: Update ReadTheDocs publish version to v4.2.0
thewtex Jan 15, 2025
6e46e46
ENH: Update ReadTheDocs publish version to v4.3.0
thewtex Jan 15, 2025
482c9c0
ENH: Update ReadTheDocs publish version to v4.3.0
thewtex Jan 15, 2025
03cfb36
ENH: Update ReadTheDocs publish version to v4.4.0
thewtex Jan 15, 2025
944672c
ENH: Update ReadTheDocs publish version to v4.5.0
thewtex Jan 15, 2025
686c15b
ENH: Update ReadTheDocs publish version to v4.6.0
thewtex Jan 15, 2025
295f26b
ENH: Update ReadTheDocs publish version to v4.7.0
thewtex Jan 15, 2025
d68ba4e
ENH: Update ReadTheDocs publish version to v4.8.0
thewtex Jan 15, 2025
38f9b15
ENH: Update ReadTheDocs publish version to v4.8.0
thewtex Jan 16, 2025
40e7ee2
ENH: Update ReadTheDocs publish version to v4.9.0
thewtex Jan 16, 2025
3078145
ENH: Update ReadTheDocs publish version to v4.10.0
thewtex Jan 16, 2025
70b737e
ENH: Update ReadTheDocs publish version to v4.2.0
thewtex Jan 16, 2025
6c5828b
ENH: Update ReadTheDocs publish version to v4.11.0
thewtex Jan 16, 2025
f04e9c7
ENH: Update ReadTheDocs publish version to v4.3.0
thewtex Jan 16, 2025
f075d82
ENH: Update ReadTheDocs publish version to v4.4.0
thewtex Jan 16, 2025
037d924
ENH: Update ReadTheDocs publish version to v4.5.0
thewtex Jan 16, 2025
5ef800c
ENH: Update ReadTheDocs publish version to v4.6.0
thewtex Jan 16, 2025
0747869
ENH: Update ReadTheDocs publish version to v4.7.0
thewtex Jan 16, 2025
7137e9c
ENH: Update ReadTheDocs publish version to v4.8.0
thewtex Jan 16, 2025
08a00ff
ENH: Update ReadTheDocs publish version to v4.9.0
thewtex Jan 16, 2025
91bb710
ENH: Update ReadTheDocs publish version to v4.10.0
thewtex Jan 16, 2025
68e9eed
ENH: Update ReadTheDocs publish version to v4.12.0
thewtex Jan 16, 2025
c21eea4
ENH: Update ReadTheDocs publish version to v4.13.0
thewtex Jan 16, 2025
2211945
ENH: Update ReadTheDocs publish version to v5.0.0
thewtex Jan 16, 2025
35f2483
ENH: Update ReadTheDocs publish version to v5.1.0
thewtex Jan 16, 2025
f3ca845
ENH: Update ReadTheDocs publish version to v5.3.0
thewtex Jan 16, 2025
419982d
ENH: Update ReadTheDocs publish version to v5.2.0
thewtex Jan 16, 2025
e0e33a7
BUG: Fix RTD html extraction directory
thewtex Jan 16, 2025
4dc98ea
ENH: Update GitHub Org to InsightSoftwareConsortium
thewtex Jan 17, 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
30 changes: 29 additions & 1 deletion .github/workflows/Doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,56 @@ on:
jobs:
doxygen:

runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build Docker Image for Doxygen
run: |
docker build -f Dockerfile -t itk-doxygen .

- name: Docker Doxygen generation
run: |
docker run --name itk-dox itk-doxygen
mkdir -p artifacts
docker cp itk-dox:/ITKDoxygen.tar.gz artifacts/ITKDoxygen-${GITHUB_SHA}.tar.gz
docker cp itk-dox:/ITKDoxygenXML.tar.gz artifacts/ITKDoxygenXML-${GITHUB_SHA}.tar.gz

- name: Archive Doxygen Artifacts
uses: actions/upload-artifact@v4
with:
name: doxygen
path: |
artifacts/ITKDoxygenXML-*.tar.gz
artifacts/ITKDoxygen-*.tar.gz

- name: Publish to latest GitHub Release
if: github.ref == 'refs/heads/main'
run: |
sudo apt install -y zstd

pushd artifacts

cp ITKDoxygen-*.tar.gz InsightDoxygenDocHtml-latest.tar.gz
gunzip InsightDoxygenDocHtml-latest.tar.gz
zstd -f -10 -T6 --long=31 InsightDoxygenDocHtml-latest.tar -o InsightDoxygenDocHtml-latest.tar.zst
gzip -9 InsightDoxygenDocHtml-latest.tar

cp ITKDoxygenXML-*.tar.gz InsightDoxygenDocXml-latest.tar.gz
gunzip InsightDoxygenDocXml-latest.tar.gz
zstd -f -10 -T6 --long=31 InsightDoxygenDocXml-latest.tar -o InsightDoxygenDocXml-latest.tar.zst
gzip -9 InsightDoxygenDocXml-latest.tar

popd

gh release delete -R InsightSoftwareConsortium/ITKDoxygen --cleanup-tag latest --yes
gh release create latest --notes="ITK Doxygen documentation built from the ITK master branch." --prerelease --title "ITKDoxygen Latest" -R InsightSoftwareConsortium/ITKDoxygen ./artifacts/InsightDoxygen*
env:
GH_TOKEN: ${{ secrets.github_token }}

- name: Update gh-pages
if: github.ref == 'refs/heads/main'
run: |
Expand Down
22 changes: 22 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version, and other tools you might need
build:
os: ubuntu-24.04
tools:
python: "mambaforge-23.11"

commands:
# Write down your commands here to:
#
# - Install the dependencies of your project
# - Build the documentation
# - Save the generated files in $READTHEDOCS_OUTPUT/html
- mamba remove --force --name rtd --all
- mamba env create -f rtd-environment.yml
- mamba run -n rtd zstd --version
- ./rtd-download.sh
1 change: 1 addition & 0 deletions .rtd-publish-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v5.2.0 2025-01-16-11-44-1737045882
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,21 @@ docker run \
The following commands will copy the tarballs from the
Docker container to your local working directory.
```shell
docker cp itk-dox:/ITKDoxygen.tar.gz SimpleITKDoxygen${TAG:+-${TAG}}.tar.gz
docker cp itk-dox:/ITKDoxygenXML.tar.gz SimpleITKDoxygenXML${TAG:+-${TAG}}.tar.gz
docker cp itk-dox:/ITKDoxygen.tar.gz ITKDoxygen${TAG:+-${TAG}}.tar.gz
docker cp itk-dox:/ITKDoxygenXML.tar.gz ITKDoxygenXML${TAG:+-${TAG}}.tar.gz

# Remove the Docker container after copying the tarballs
docker rm itk-dox
```

### 6. Extract the Doxygen Documentation
Untar these tarballs to extract and verify the Doxygen documentation.
The `SimpleITKDoxygen` tarball contains the HTML documentation,
while the `SimpleITKDoxygenXML` tarball contains the XML documentation.
The `ITKDoxygen` tarball contains the HTML documentation,
while the `ITKDoxygenXML` tarball contains the XML documentation.

```shell
tar -xzf SimpleITKDoxygen${TAG:+-${TAG}}.tar.gz
tar -xzf SimpleITKDoxygenXML${TAG:+-${TAG}}.tar.gz
tar -xzf ITKDoxygen${TAG:+-${TAG}}.tar.gz
tar -xzf ITKDoxygenXML${TAG:+-${TAG}}.tar.gz
```

You may now view the Doxygen documentation by opening the `html/index.html` file.
You may now view the Doxygen documentation by opening the `html/index.html` file.
14 changes: 14 additions & 0 deletions rtd-download.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -eox

DOC_VERSION=$(if [[ "${READTHEDOCS_GIT_IDENTIFIER}" == *v* ]]; then echo "${READTHEDOCS_GIT_IDENTIFIER}"; else echo "latest"; fi)
DOC_VERSION_NO_V=${DOC_VERSION//v/}
curl -LO https://github.com/InsightSoftwareConsortium/ITKDoxygen/releases/download/${DOC_VERSION}/InsightDoxygenDocHtml-${DOC_VERSION_NO_V}.tar.zst

mkdir -p $READTHEDOCS_OUTPUT
unzstd --long=31 ./InsightDoxygenDocHtml-${DOC_VERSION_NO_V}.tar.zst
tar xf \
./InsightDoxygenDocHtml-${DOC_VERSION_NO_V}.tar \
-C $READTHEDOCS_OUTPUT

5 changes: 5 additions & 0 deletions rtd-environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: rtd
channels:
- conda-forge
dependencies:
- zstd
Loading