Skip to content

Commit

Permalink
Merge branch 'main' into elmattic/eth-trace-block
Browse files Browse the repository at this point in the history
  • Loading branch information
elmattic authored Dec 19, 2024
2 parents 8c0265e + 930c419 commit 5533594
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 72 deletions.
18 changes: 15 additions & 3 deletions docs/.config/lychee.toml → .config/lychee.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@

verbose = "debug"
no_progress = true
# Requires CAPTCHA verification
exclude = ["https://faucet.calibnet.chainsafe-fil.io/funds.html"]
timeout = 60
exclude_path = [
"./node_modules",
"./docs/node_modules",
"./documentation",
"./target"
]
exclude = [
# Avoid Github rate limits
"github.com/ChainSafe/forest",
# Requires CAPTCHA verification
"faucet.calibnet.chainsafe-fil.io/funds.html"
]
timeout = 30
max_retries = 6
retry_wait_time = 10

output = "lychee-report.md"
36 changes: 0 additions & 36 deletions .github/workflows/docs.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Link Checker

on:
workflow_dispatch:
schedule:
# Run daily at 9am
- cron: "00 9 * * *"
push:
branches:
- main
paths:
- "**.md"
- "**.mdx"
- "**.html"
- ".github/workflows/link-check.yml"
merge_group:
pull_request:
branches:
- main
paths:
- "**.md"
- "**.mdx"
- "**.html"
- ".github/workflows/link-check.yml"

jobs:
link-check:
name: Link Check
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v4

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
with:
args: --config ./.config/lychee.toml './**/*.md' './**/*.mdx' './**/*.html'

- name: Create Issue From File
if: env.lychee_exit_code != 0 && github.event_name == 'schedule'
uses: peter-evans/create-issue-from-file@v5
with:
title: Link Checker Report
content-filepath: ./lychee-report.md

- name: Fail job on error
if: env.lychee_exit_code != 0 && github.event_name != 'schedule'
run: exit 1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -388,3 +388,5 @@ rust-project.json
# .pnp.*

# End of https://www.toptal.com/developers/gitignore/api/go,rust,rust-analyzer,osx,visualstudiocode,intellij+all,yarn,node,ruby

lychee-report.md
2 changes: 0 additions & 2 deletions .lycheeignore

This file was deleted.

3 changes: 2 additions & 1 deletion docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@tsconfig/docusaurus/tsconfig.json",
"extends": "@docusaurus/tsconfig",
"compilerOptions": {
"baseUrl": ".",
"skipLibCheck": true,
"module": "Node16"
}
}

10 changes: 0 additions & 10 deletions lychee.toml

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "root",
"private": true,
"devDependencies": {
"@docusaurus/tsconfig": "^3.6.3",
"prettier": "^3.3.3"
},
"scripts": {
Expand Down
30 changes: 10 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1

__metadata:
version: 8
cacheKey: 10c0

"prettier@npm:^3.3.3":
version: 3.3.3
resolution: "prettier@npm:3.3.3"
bin:
prettier: bin/prettier.cjs
checksum: 10c0/b85828b08e7505716324e4245549b9205c0cacb25342a030ba8885aba2039a115dbcf75a0b7ca3b37bc9d101ee61fab8113fc69ca3359f2a226f1ecc07ad2e26
languageName: node
linkType: hard
"@docusaurus/tsconfig@^3.6.3":
version "3.6.3"
resolved "https://registry.yarnpkg.com/@docusaurus/tsconfig/-/tsconfig-3.6.3.tgz#8af20c45f0a67e193debedcb341c0a1e78b1dd63"
integrity sha512-1pT/rTrRpMV15E4tJH95W5PrjboMn5JkKF+Ys8cTjMegetiXjs0gPFOSDA5hdTlberKQLDO50xPjMJHondLuzA==

"root@workspace:.":
version: 0.0.0-use.local
resolution: "root@workspace:."
dependencies:
prettier: "npm:^3.3.3"
languageName: unknown
linkType: soft
prettier@^3.3.3:
version "3.4.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.4.2.tgz#a5ce1fb522a588bf2b78ca44c6e6fe5aa5a2b13f"
integrity sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==

0 comments on commit 5533594

Please sign in to comment.