Skip to content

Commit b18dab4

Browse files
authored
add lychee to check links in docs (#181)
* add `link_checker.yml` * check links * update actions * fix links * update action * update mdbook.yml
1 parent a3a8a7c commit b18dab4

5 files changed

Lines changed: 33 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,20 @@ jobs:
4545
- name: Checkout code
4646
uses: actions/checkout@v4
4747

48-
- name: Install mdBook
49-
run: |
50-
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
51-
rustup update
52-
cargo install --version 0.5.2 mdbook
48+
- name: Setup mdBook
49+
uses: peaceiris/actions-mdbook@v2
50+
with:
51+
mdbook-version: "0.5.2"
52+
# mdbook-version: 'latest'
5353

5454
- name: Build docs
55-
run: cd docs && mdbook build
55+
run: mdbook build docs
56+
57+
- name: check links
58+
uses: lycheeverse/lychee-action@v2
59+
with:
60+
args: docs/book/*.html --max-retries 1 --root-dir docs/src
61+
fail: true
5662

5763
coverage:
5864
runs-on: ubuntu-latest

.github/workflows/mdbook.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: deploy mdBook site
33
on:
44
# Runs on pushes targeting the default branch
55
push:
6-
branches: main
6+
branches: [main]
77

88
# Allows you to run this workflow manually from the Actions tab
99
workflow_dispatch: ~
@@ -28,16 +28,20 @@ jobs:
2828
MDBOOK_VERSION: 0.5.2
2929
steps:
3030
- uses: actions/checkout@v4
31-
- name: Install mdBook
32-
run: |
33-
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
34-
rustup update
35-
cargo install --version ${MDBOOK_VERSION} mdbook
31+
32+
- name: Setup mdBook
33+
uses: peaceiris/actions-mdbook@v2
34+
with:
35+
mdbook-version: "0.5.2"
36+
# mdbook-version: 'latest'
37+
3638
- name: Setup Pages
3739
id: pages
3840
uses: actions/configure-pages@v4
41+
3942
- name: Build with mdBook
4043
run: mdbook build docs
44+
4145
- name: Upload artifact
4246
uses: actions/upload-pages-artifact@v3
4347
with:
@@ -48,8 +52,11 @@ jobs:
4852
environment:
4953
name: github-pages
5054
url: ${{ steps.deployment.outputs.page_url }}
55+
5156
runs-on: ubuntu-latest
57+
5258
needs: build
59+
5360
steps:
5461
- name: Deploy to GitHub Pages
5562
id: deployment

docs/src/home.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Results are organized by scenario and target, making it easy to compare performa
8686
4. **List your input files** in the required format
8787
5. **Run the benchmark** and analyze results
8888

89-
See the [Setting Up a Benchmark](/setting-up-bm5) and [Writing a Benchmark YAML File](/usage#step-3-write-the-benchmark-configuration) sections for detailed instructions.
89+
See the [Setting Up a Benchmark](./setting-up-bm5.md) and [Writing a Benchmark YAML File](./usage.md#step-3-write-the-benchmark-configuration) sections for detailed instructions.
9090

9191
## Getting Help
9292

docs/src/installation.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The `haddock-runner` is designed for researchers, developers, and advanced users
1212
1313
If you are new to HADDOCK, we recommend:
1414

15-
- Completing the basic [HADDOCK3 tutorials](/education/HADDOCK3/index.md)
15+
- Completing the basic [HADDOCK3 tutorials](https://www.bonvinlab.org/education/HADDOCK3)
1616
- Familiarizing yourself with HADDOCK3 workflows and configuration
1717

1818
For single target docking or small-scale experiments, consider using:
@@ -81,7 +81,7 @@ Available platforms will include:
8181
- `x86_64-apple-darwin` (macOS Intel)
8282
- `aarch64-apple-darwin` (macOS Apple Silicon)
8383

84-
> **Note**: Pre-built binaries are coming soon. For now, please use Method 1 (crates.io) or see the [Development](/development) section for building from source.
84+
> **Note**: Pre-built binaries are coming soon. For now, please use Method 1 (crates.io) or see the [Development](./development.md) section for building from source.
8585
8686
## Post-Installation Setup
8787

@@ -138,13 +138,12 @@ If you encounter installation issues:
138138

139139
- Check the [GitHub Issues](https://github.com/haddocking/haddock-runner/issues) for known problems
140140
- Consult the [HADDOCK3 documentation](https://github.com/haddocking/haddock3) for HADDOCK-specific requirements
141-
- Contact the development team via the support channels mentioned in the [Getting Help](/getting-help) section
142141

143142
## Next Steps
144143

145144
Now that you have `haddock-runner` installed, you're ready to:
146145

147-
1. **Set up your first benchmark** - See [Setting Up a Benchmark](/setting-up-bm5)
148-
2. **Write a configuration file** - See [Writing a Benchmark YAML File](/usage#step-3-write-the-benchmark-configuration)
149-
3. **Prepare your input files** - See [Writing an Input List File](/usage#step-2-create-the-input-list-file)
150-
4. **Run your benchmark** - See [Running Haddock Runner](/usage#step-4-run-the-benchmark)
146+
1. **Set up your first benchmark** - See [Setting Up a Benchmark](./setting-up-bm5.md)
147+
2. **Write a configuration file** - See [Writing a Benchmark YAML File](./usage.md#step-3-write-the-benchmark-configuration)
148+
3. **Prepare your input files** - See [Writing an Input List File](./usage.md#step-2-create-the-input-list-file)
149+
4. **Run your benchmark** - See [Running Haddock Runner](./usage.md#step-4-run-the-benchmark)

docs/src/setting-up-bm5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This guide provides comprehensive, up-to-date instructions for setting up and ru
66

77
Before starting, ensure you have:
88

9-
- `haddock-runner` installed (see [Installation](../installation.md))
9+
- `haddock-runner` installed (see [Installation](./installation.md))
1010
- HADDOCK3 properly installed and configured
1111
- Access to a computing environment with sufficient resources
1212
- Basic familiarity with command-line tools

0 commit comments

Comments
 (0)