Skip to content

Commit 07e7866

Browse files
authored
Merge pull request #3376 from eseiler/doc/linkcheck
[DOC] Link check and doxygen-web-tags update
2 parents 03ab6fc + 9c8b460 commit 07e7866

File tree

4 files changed

+29
-25
lines changed

4 files changed

+29
-25
lines changed

doc/about/api/index.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ this should not be a problem.
9292
We promise to support the above compilers in the latest release of SeqAn3, or until all the following
9393
operating systems provide a newer supported compiler:
9494

95-
| Operating System | Supported Releases¹ |
95+
| Operating System | Supported Releases |
9696
|------------------------------|----------------------------------------|
97-
| RedHat Enterprise Linux | the latest release ² |
98-
| CentOS Linux | the latest release ² |
97+
| RedHat Enterprise Linux | the latest release ¹ |
98+
| CentOS Linux | the latest release ¹ |
9999
| SUSE Linux Enterprise Server | the latest release |
100100
| Debian GNU/Linux | "stable" and "old-stable" |
101101
| Ubuntu Linux | the two latest LTS releases |
@@ -115,9 +115,7 @@ More platforms and compilers will be added during the SeqAn3 lifecycle, but some
115115
**We promise to provide good forward-compatibility with the C++ standard.** And we will strive to fix any warnings that
116116
are added by newer versions of a supported compiler.
117117

118-
<small[This site](https://linuxlifecycle.com) provides a good overview of what the current release and its
119-
lifecycle is.</small><br>
120-
<small>² We consider CentOS 7 / RedHat Enterprise Linux (RHEL) 7 as being community-supported. That means issues and
118+
<small>¹ We consider CentOS 7 / RedHat Enterprise Linux (RHEL) 7 as being community-supported. That means issues and
121119
patches are welcome, but we do not actively test for those operating systems. See this related
122120
[issue](https://github.com/seqan/seqan3/issues/2244).</small>
123121

doc/tutorial/08_pairwise_alignment/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ How does the result change?
296296
A special form of the pairwise sequence alignment is the edit distance. This distance metric counts the number of
297297
edits necessary to transform one sequence into the other. The cost model for the edit distance is fixed. In particular,
298298
the match score is `0` and the scores for a mismatch and a gap is `-1`. Due to the special metric, a fast
299-
[bitvector](https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.332.9395&rep=rep1&type=pdf) implementation can be
299+
[bitvector](https://doi.org/10.1145/316542.316550) implementation can be
300300
used to compute the edit distance. This happens in SeqAn automatically if the respective configurations are used.
301301
To do so, you need to explicitly use the `seqan3::hamming_scoring_scheme` as well as the default gap scheme
302302
initialised with `-1` for a gap and `0` for a gap open score while computing a `seqan3::global_alignment`.

test/documentation/seqan3-doxygen.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ if (NOT EXISTS "${SEQAN3_DOXYGEN_STD_TAGFILE}" OR SEQAN3_DOXYGEN_STD_TAGFILE STR
4949
# When updating, check whether warnings in SEQAN3_TEST_DOXYGEN_FAIL_ON_WARNINGS are gone when removing sed filter.
5050
ExternalProject_Add (
5151
download-cppreference-doxygen-web-tag
52-
URL "https://github.com/PeterFeicht/cppreference-doc/releases/download/v20241110/html-book-20241110.tar.xz"
53-
URL_HASH SHA256=431e80862eb70fd4793a60d7d3b6c13c8605284978f9ea0529572e8fd1562cc6
52+
URL "https://github.com/PeterFeicht/cppreference-doc/releases/download/v20250209/html-book-20250209.tar.xz"
53+
URL_HASH SHA256=ac50671a1f52d7f0ab0911d14450eb35e8c2f812edd0e426b2cd1e3d9db91d6f
5454
TLS_VERIFY ON
5555
DOWNLOAD_DIR "${PROJECT_BINARY_DIR}"
5656
DOWNLOAD_NAME "html-book.tar.xz"
5757
DOWNLOAD_NO_EXTRACT YES
58+
DOWNLOAD_NO_PROGRESS YES
5859
BINARY_DIR "${PROJECT_BINARY_DIR}"
5960
BUILD_BYPRODUCTS "${SEQAN3_DEFAULT_DOXYGEN_STD_TAGFILE}"
6061
CONFIGURE_COMMAND /bin/sh -c "xzcat html-book.tar.xz | tar -xf - cppreference-doxygen-web.tag.xml"

test/scripts/link_check.sh

100644100755
Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/usr/bin/env bash
2-
32
# SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
43
# SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
54
# SPDX-License-Identifier: BSD-3-Clause
6-
5+
#
76
# Usage: link_check.sh <SeqAn3 root directory>
87
# Will output the status of links in the repository.
98
#
@@ -13,27 +12,30 @@
1312
# The general workflow is to first run the script and then check the non-working links by searching the occurrence
1413
# within the codebase and verifying that they are indeed broken.
1514

15+
COUNT=0
1616
do_check ()
1717
{
18-
RESPONSE=$(curl --http2 -Is -A 'Mozilla/5.0' $1) # HTTP2 is the default.
19-
if ! [[ "$RESPONSE" =~ ^HTTP.* ]]; then # If this does not work,
20-
RESPONSE=$(curl --http1.1 -Is -A 'Mozilla/5.0' $1) # fall back to HTTP1.1.
18+
(( COUNT++ ))
19+
RESPONSE=$(curl --http2 -Is -A 'Mozilla/5.0' "$1") # HTTP2 is the default.
20+
if ! [[ "${RESPONSE}" =~ ^HTTP.* ]]; then # If this does not work,
21+
RESPONSE=$(curl --http1.1 -Is -A 'Mozilla/5.0' "$1") # fall back to HTTP1.1.
2122
fi
2223

23-
HEADER=($(echo $RESPONSE | head -1)); # May look like: HTTP/2 200
24+
HEADER=($(echo "${RESPONSE}" | head -1)); # May look like: HTTP/2 200
2425
STATUS=${HEADER[1]}
26+
echo -n "[${COUNT}] "
2527
case "$STATUS" in
26-
200) echo "Link OK :" $1;;
27-
301) echo "Link PERM MOVED :" $1;;
28-
302) echo "Link TEMP MOVED :" $1;;
29-
404) echo "Link BROKE :" $1;;
30-
429) sleep 5; do_check $1;;
31-
*) echo "Link STATUS" $STATUS ":" $1;;
28+
200) echo "Link OK : $1";;
29+
301) echo "Link PERM MOVED : $1";;
30+
302) echo "Link TEMP MOVED : $1";;
31+
404) echo "Link BROKE : $1";;
32+
429) sleep 5; do_check "$1";;
33+
*) echo "Link STATUS ${STATUS} : $1";;
3234
esac
3335
}
3436

35-
if [[ $# -ne 1 ]]; then
36-
echo "Usage: link_check.sh <SeqAn3 root directory>"
37+
if [[ $# -ne 1 ]] && [[ $# -ne 2 ]]; then
38+
echo "Usage: link_check.sh <SeqAn3 root directory> <Skip first n=0 entries>"
3739
exit 1
3840
fi
3941

@@ -48,7 +50,10 @@ if [[ ! -f $1/include/seqan3/version.hpp ]]; then
4850
exit 1
4951
fi
5052

51-
for URL in $(grep -ohr --exclude-dir={.git,submodules} "https*://[a-zA-Z0-9./#+?=_%:-]*[a-zA-Z0-9/#+?=_%:-]" $1 | sort | uniq)
53+
SKIP="${2:-0}"
54+
COUNT=$((COUNT + SKIP))
55+
56+
for URL in $(grep -ohr --exclude-dir={.git,.vscode,build} "https*://[a-zA-Z0-9./#+?=_%:-]*[a-zA-Z0-9/#+?=_%:-]" "$1" | sort | uniq | tail -n +"${SKIP}")
5257
do
53-
do_check $URL
58+
do_check "${URL}"
5459
done

0 commit comments

Comments
 (0)