Skip to content

Commit 2423c46

Browse files
authored
Hyperlinks nightly (#478)
* Add hyperlink check for nightly runs * Add nightly CI pipeline * Fix hyperlinks in NetHSM docs * Fix hyperlinks in NextBox docs * Fix hyperlinks in Nitrokey docs * Fix hyperlinks in software docs * Add error exceptions for urls
1 parent af961f4 commit 2423c46

File tree

16 files changed

+66
-27
lines changed

16 files changed

+66
-27
lines changed

.github/workflows/ci_nightly.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI - Nightly
2+
on:
3+
schedule:
4+
- cron: '0 2 * * *'
5+
6+
jobs:
7+
check-hyperlinks:
8+
name: Check hyperlinks
9+
runs-on: ubuntu-latest
10+
container: python:3.11
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
- name: Create virtual environment
15+
run: make venv
16+
- name: Check hyperlinks
17+
run: make check-hyperlinks-nightly

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ check-syntax: venv
2626
check-hyperlinks: venv docs
2727
venv/bin/linkchecker -f linkcheckerrc dist/en/index.html
2828

29+
.PHONE: check-hyperlinks-nightly
30+
check-hyperlinks-nightly: venv docs
31+
venv/bin/linkchecker -f linkcheckerrc_nightly dist/en/index.html
32+
2933
.PHONY: pkg
3034
pkg: venv docs
3135
mv dist/en/_images dist/_images

linkcheckerrc_nightly

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[filtering]
2+
checkextern=1
3+
ignore=
4+
(?m)/(de|fr|es|nl|it|ja|ru|el|da|bg|et|fi|lv|lt|pl|pt|ro|sv|sk|sl|cs|hu|zh_CN)+/
5+
6+
[checking]
7+
threads=1
8+
9+
[output]
10+
warnings=0
11+
ignoreerrors=
12+
^http://nextbox\.local$
13+
^http[s]{0,1}://localhost
14+
^http[s]{0,1}://localhost:[1-9][0-9]*
15+
^http[s]{0,1}://192\.168\.[0-9]+\.[1-9]+
16+
# expects the HTTP header "Accept: text/html", otherwise returns an HTTP error 404
17+
# https://github.com/rust-lang/crates.io/issues/788
18+
^https://crates.io/
19+
# return a HTTP error 403 for cli access, browser works
20+
^https://www.raspberrypi.com/documentation
21+

source/components/nethsm/container/production-image.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The image is subject to some feature restrictions in comparison to the NetHSM ha
1010
Please refer to chapter `Image Feature Restrictions <image-feature-restrictions.html>`__ to learn more.
1111

1212
The NetHSM production container is a product for paying customers only and can be purchased `here <https://www.nitrokey.com/contact>`__.
13-
The image can be obtained from `Nitrokey NetHSM registry <https://registry.git.nitrokey.com/distribution/nethsm>`_ using the credentials provided after purchase.
13+
The image can be obtained from Nitrokey NetHSM registry ``https://registry.git.nitrokey.com/distribution/nethsm>`` using the credentials provided after purchase.
1414

1515
.. warning::
1616
The security of the NetHSM software container strongly depends on the platform's security.

source/components/nethsm/opendnssec.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ OpenDNSSEC
33

44
`OpenDNSSEC <https://www.opendnssec.org/>`__ is a tool suite for managing the security of domain names. It can directly load a PKCS#11 module and manage the keys.
55

6-
To install and setup OpenDNSSEC, you can follow the `OpenDNSSEC Quick Start Guide <https://wiki.opendnssec.org/display/DOCS20/Quick+start+guide>`__. You don't need to install ``SoftHSM``, the NetHSM PKCS#11 module will be used instead.
6+
To install and setup OpenDNSSEC, you can follow the `OpenDNSSEC Quick Start Guide <https://opendnssec.readthedocs.io/en/latest/quickstart/>`__. You don't need to install ``SoftHSM``, the NetHSM PKCS#11 module will be used instead.
77

88
As OpenDNSSEC needs access to manage the keys and then use them, you will need to configure both administrator and operator account in the PKCS#11 module configuration file.
99

source/components/nextbox/faq/hardware.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Hardware FAQ
77
.. faq:: Why must I not connect external hard-drives without an external power-supply to my NextBox?
88

99
The Raspberry Pi 4 Model B can only supply 1.2A of power through USB (see
10-
`RPi Power Supply`_). The internal hard-drive is already connected and powered
10+
`RPi Power Supply <https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#typical-power-requirements>`__).
11+
The internal hard-drive is already connected and powered
1112
via USB and pulls ~1.0A. Thus connecting another hard-drive without an
1213
external power supply can lead to an unreliable power supply for the internal
1314
hard-drive, thus potential data loss.
@@ -74,5 +75,4 @@ Hardware FAQ
7475
.. _USB Documentation: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#universal-serial-bus-usb
7576
.. _NextBox' GitHub: https://github.com/Nitrokey/nextbox-board
7677
.. _External storage support: https://docs.nextcloud.com/server/20/admin_manual/configuration_files/external_storage_configuration_gui.html
77-
.. _RPi Power Supply: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#power-supply
7878

source/components/nextbox/remote/dynamic-dns.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ using `ddclient`_, which can be directly configured here or via the *Guided
4949
DNS* method described before.
5050

5151
In this configuration you need the provide the *domain* this configuration is
52-
enabling and the contents of the `ddclient.conf` used by `ddclient`_. Various
53-
examples can be found at the `official documentation`_, the one used for the
54-
guided DNS configuration uses the following template:
52+
enabling and the contents of the `ddclient.conf` used by `ddclient`_.
53+
The one used for the guided DNS configuration uses the following template:
5554

5655
.. code-block:: none
5756
@@ -84,7 +83,6 @@ just click **Enable TLS** to acquire your TLS certificate.
8483
.. _reset password: https://desec.io/reset-password
8584
.. _token management: https://desec.io/tokens
8685
.. _ddclient: https://ddclient.net/
87-
.. _official documentation: https://ddclient.net/usage.html
8886

8987

9088
.. There are several ways to enable remote access to the NextBox. The easiest way is to use the "Quickstart Configuration".

source/components/nitrokeys/features/hsm/n-of-m-schemes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Nitrokey HSM's M-of-N Threshold Scheme:
3838
N-of-m for public key authentication
3939
''''''''''''''''''''''''''''''''''''
4040

41-
So far n-of-m authentication is only supported in OpenSCDP. `The blog post <https://www.smartcard-hsm.com/2015/10/10/Shared_Control_over_Key_Usage.html>`__ gives an overview and a how-to `here <https://devnet.cardcontact.de/documents/7>`__ (CDN access required) is shown the process step by step in the Smart Card Shell.
41+
So far n-of-m authentication is only supported in OpenSCDP. `The blog post <https://www.smartcard-hsm.com/2015/10/10/Shared_Control_over_Key_Usage.html>`__ gives an overview and a how-to `here <https://www.cardcontact.de/download/n-of-m_Authentication_HowTo_V1_2015-09-07.pdf>`__ is shown the process step by step in the Smart Card Shell.
4242

4343
N-of-m authentication is also supported in the `PKI-as-a-Service Portal <https://www.smartcard-hsm.com/2018/02/13/pki-as-a-service.html>`__ for locally and remote connected HSMs. The PKI-as-a-Service Portal is based on OpenSCDP.
4444

source/components/nitrokeys/features/openpgp-card/hard-disk-encryption/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ For setting up LUKS Disk Encryption follow our guide:
5151
Full-Disk Encryption With cryptsetup/LUKS <luks>
5252

5353

54-
Purism has created a `simple script <https://docs.puri.sm/PureBoot/LibremKeyLUKS.html>`__ to add the Nitrokey/LibremKey as a way to unlock LUKS partitions (not tested by Nitrokey yet).
54+
Purism has created a `simple script <https://docs.puri.sm/Hardware/Librem_Key/LUKS.html>`__ to add the Nitrokey/LibremKey as a way to unlock LUKS partitions (not tested by Nitrokey yet).
5555

5656
`This project <https://github.com/artosan/nitroluks/>`__ aims to ease the use of LUKS with the Nitrokey Pro or Storage based on the Password Safe (not tested by Nitrokey yet). A description on how to use it on Gentoo can be found `here <https://amedeos.github.io/gentoo/nitrokey/2019/01/21/gentoo-nitrokey-luks.html>`__.
5757

source/components/nitrokeys/fido2/firmware-update.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,5 @@ In case of any errors please take the logs from ``/tmp`` directory (``/tmp/nitro
3333

3434

3535

36-
.. _installation instructions: /software/nitropy/all-platforms/installation.html
37-
36+
.. _installation instructions: ../../software/nitropy/all-platforms/installation.html
3837

0 commit comments

Comments
 (0)