Skip to content

Commit 6a82f66

Browse files
authored
ci: check docs links (#69)
1 parent ac3ed3d commit 6a82f66

File tree

6 files changed

+292
-393
lines changed

6 files changed

+292
-393
lines changed

.github/workflows/check.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ jobs:
4242
- name: Commit linting
4343
uses: wagoid/commitlint-github-action@v2
4444

45-
# - name: Code linting
46-
# run: npm run lint:check
47-
# env:
48-
# CI: true
49-
5045
- name: Build
5146
run: npm run build
47+
48+
- name: URL validation
49+
run: |
50+
npm install auhau/link-checker
51+
mkdir /tmp/link-checker
52+
npx link-checker --url-ignore localhost --allow-hash-href --mkdocs --http-cache /tmp/link-checker --http-always-get --http-timeout 10000 --http-redirects 5 ./build
53+

.github/workflows/gh-pages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Build for gh-pages
2323
run: |
24-
npm install
24+
npm ci
2525
npm run-script build
2626
echo "bee-js.ethswarm.org" > ./build/CNAME
2727
rm ./build/.nojekyll

docs/tutorials/create-dapp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,4 +419,4 @@ yarn build
419419
</TabItem>
420420
</Tabs>
421421

422-
This will create a `dist` folder that should be uploaded to the Swarm. We are working on `swarm-cli` which will make the upload process easier, but in the mean time you can follow the [Host Your Website on Swarm tutorial in the bee docs](https://docs.ethswarm.org/docs/getting-started/host-your-website-using-ens).
422+
This will create a `dist` folder that should be uploaded to the Swarm. We are working on `swarm-cli` which will make the upload process easier, but in the mean time you can follow the [Host Your Website on Swarm tutorial in the bee docs](https://docs.ethswarm.org/docs/access-the-swarm/host-your-website).

docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = {
44
// note! we use SED to change this during automated builds, see ./.github/workflows/gh-pages.yml
55
url: 'https://bee-js.ethswarm.org',
66
baseUrl: '/',
7+
trailingSlash: true,
78
plugins: [
89
require.resolve('docusaurus-lunr-search'),
910
// [

0 commit comments

Comments
 (0)