Skip to content

Commit ca9e13e

Browse files
committed
final corrections
1 parent 2c49ee5 commit ca9e13e

79 files changed

Lines changed: 3194 additions & 3818 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/httomo_docs.yml‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ on:
88
push:
99
branches:
1010
- main
11+
tags:
12+
- 'v*'
13+
schedule:
14+
- cron: '0 6 * * 1'
1115

1216
jobs:
1317
build-docs-publish:
1418
runs-on: ubuntu-latest
15-
env:
16-
HTTOMO_BACKENDS_VERSION: "1.2.0"
1719
defaults:
1820
run:
1921
shell: bash -el {0}
@@ -35,8 +37,7 @@ jobs:
3537
init-shell: bash
3638

3739
- name: Install httomo-backends
38-
run: |
39-
pip install --no-deps "httomo-backends==${HTTOMO_BACKENDS_VERSION}"
40+
run: pip install --no-deps -r ./docs/source/doc-pip-requirements.txt
4041

4142
- name: Generate full yaml pipelines using pipeline directives
4243
run: |
@@ -51,8 +52,16 @@ jobs:
5152
- name: Build docs
5253
run: sphinx-build -W --keep-going -a -E -b html ./docs/source/ ./docs/build/
5354

55+
- name: Check external links
56+
if: github.event_name == 'schedule'
57+
run: sphinx-build -W --keep-going -a -E -b linkcheck ./docs/source/ ./docs/linkcheck/
58+
5459
- name: Publish docs
55-
if: github.ref_type == 'tag' || github.ref_name == 'main'
60+
if: >-
61+
(github.event_name == 'push' &&
62+
(github.ref_type == 'tag' || github.ref_name == 'main')) ||
63+
(github.event_name == 'workflow_dispatch' &&
64+
github.ref_name == 'main')
5665
run: ghp-import -n -p -f ./docs/build
5766
env:
5867
GITHUB_TOKEN: ${{ github.token }}

‎docs/build_sphinx_docs.bat‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ if exist "%SCRIPT_DIR%build" (
2323
rem -a writes all output files.
2424
rem -E rebuilds the Sphinx environment without using the saved cache.
2525
rem -b html selects the HTML builder.
26-
sphinx-build -a -E -b html "%SCRIPT_DIR%source" "%SCRIPT_DIR%build"
26+
rem -W treats warnings as errors; --keep-going reports all warnings in one run.
27+
sphinx-build -W --keep-going -a -E -b html "%SCRIPT_DIR%source" "%SCRIPT_DIR%build"
2728
set "EXIT_CODE=%ERRORLEVEL%"
2829

2930
if not "%EXIT_CODE%"=="0" (

‎docs/source/_static/3d_setup.png‎

-134 KB
Binary file not shown.

‎docs/source/_static/custom.css‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* Highlight selected pages in the primary (left) navigation only.
2+
*
3+
* The direct href selectors cover inactive links. When one of these pages is
4+
* active, Sphinx replaces its href with "#". The :has() selectors identify
5+
* the same navigation group through the other named link and select the
6+
* active entry by its stable first/last position.
7+
*/
8+
.bd-sidebar-primary .bd-sidenav a[href$="yaml.html"],
9+
.bd-sidebar-primary .bd-sidenav:has(a[href$="versioned_downloads.html"])
10+
> li:first-child
11+
> a,
12+
.bd-sidebar-primary .bd-sidenav a[href$="versioned_downloads.html"],
13+
.bd-sidebar-primary .bd-sidenav:has(a[href$="yaml.html"])
14+
> li:last-child
15+
> a {
16+
background-color: rgb(33 150 243 / 18%);
17+
box-shadow: inset 4px 0 #2196f3;
18+
border-radius: 0.25rem;
19+
font-weight: 600;
20+
}
21+
22+
/* The run_httomo link identifies the Getting started navigation group when
23+
* Sphinx replaces the active quickstart link with href="#". */
24+
.bd-sidebar-primary .bd-sidenav a[href$="quickstart.html"],
25+
.bd-sidebar-primary .bd-sidenav:has(a[href$="run_httomo.html"])
26+
> li:nth-child(2)
27+
> a {
28+
background-color: rgb(255 193 7 / 22%);
29+
box-shadow: inset 4px 0 #d39e00;
30+
border-radius: 0.25rem;
31+
font-weight: 600;
32+
}

‎docs/source/_static/execution_model.svg‎

Lines changed: 2 additions & 2 deletions
Loading

‎docs/source/_static/gpu_reconstruction_httomo.svg‎

Lines changed: 2132 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)