fix: edit link and config (#17453)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
o-az
2025-07-18 02:30:52 -07:00
committed by GitHub
parent 3add4b1e3d
commit e089d902ca
10 changed files with 1569 additions and 38 deletions

2
.gitattributes vendored
View File

@@ -2,3 +2,5 @@ book/cli/**/*.md linguist-vendored
book/cli/cli.md -linguist-vendored
crates/storage/libmdbx-rs/mdbx-sys/libmdbx/** linguist-vendored
bun.lock linguist-language=JSON-with-Comments

4
.gitignore vendored
View File

@@ -59,3 +59,7 @@ docs/vocs/node_modules
# Cargo chef recipe file
recipe.json
_
# broken links report
links-report.json

1542
docs/vocs/bun.lock Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

4
docs/vocs/bunfig.toml Normal file
View File

@@ -0,0 +1,4 @@
telemetry = false
# ensures runtime is always bun regardless of shebang
run.bun = true

View File

@@ -1,5 +1,3 @@
import React from 'react'
interface SdkProject {
name: string
description: string
@@ -43,16 +41,16 @@ const projects: SdkProject[] = [
export function SdkShowcase() {
return (
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
{projects.map((project, index) => (
{projects.map((project) => (
<div
key={index}
key={project.name}
className="relative bg-white/5 dark:bg-white/5 border border-black/10 dark:border-white/10 rounded-xl p-6 hover:bg-black/5 dark:hover:bg-white/10 transition-colors group"
>
{/* LoC Badge */}
<div className="absolute top-4 right-4 bg-black/10 dark:bg-white/10 text-black dark:text-white px-3 py-1 rounded-full text-sm font-medium">
{project.loc} LoC
</div>
{/* Content */}
<div className="space-y-3">
<div>
@@ -63,11 +61,11 @@ export function SdkShowcase() {
{project.company}
</p>
</div>
<p className="text-gray-700 dark:text-gray-300 text-sm leading-relaxed">
{project.description}
</p>
{/* GitHub Link */}
<a
href={project.githubUrl}
@@ -85,4 +83,4 @@ export function SdkShowcase() {
))}
</div>
)
}
}

View File

@@ -1,5 +1,3 @@
import React from 'react'
interface TrustedCompany {
name: string
logoUrl: string
@@ -27,9 +25,9 @@ const companies: TrustedCompany[] = [
export function TrustedBy() {
return (
<div className="grid grid-cols-2 md:grid-cols-4 gap-6">
{companies.map((company, index) => (
{companies.map((company) => (
<div
key={index}
key={company.name}
className="relative bg-white/5 dark:bg-white/5 border border-black/10 dark:border-white/10 rounded-xl p-8 hover:bg-black/5 dark:hover:bg-white/10 transition-colors flex flex-col items-center justify-center h-40 group"
>
{/* Company Logo */}
@@ -46,4 +44,4 @@ export function TrustedBy() {
))}
</div>
)
}
}

View File

@@ -1,17 +0,0 @@
{
"timestamp": "2025-06-23T11:20:27.303Z",
"totalFiles": 106,
"totalLinks": 150,
"brokenLinks": [
{
"file": "docs/pages/index.mdx",
"link": "/introduction/benchmarks",
"line": 110,
"reason": "Absolute path not found: /introduction/benchmarks"
}
],
"summary": {
"brokenCount": 1,
"validCount": 149
}
}

View File

@@ -13,14 +13,14 @@
"inject-cargo-docs": "bun scripts/inject-cargo-docs.ts"
},
"dependencies": {
"react": "latest",
"react-dom": "latest",
"vocs": "latest"
"react": "^19.1.0",
"react-dom": "^19.1.0",
"vocs": "^1.0.13"
},
"devDependencies": {
"@types/node": "latest",
"@types/react": "latest",
"@types/node": "^24.0.14",
"@types/react": "^19.1.8",
"glob": "^11.0.3",
"typescript": "latest"
"typescript": "^5.8.3"
}
}

View File

@@ -13,7 +13,7 @@ export default defineConfig({
topNav: [
{ text: 'Run', link: '/run/ethereum' },
{ text: 'SDK', link: '/sdk' },
{
{
element: React.createElement('a', { href: '/docs', target: '_self' }, 'Rustdocs')
},
{ text: 'GitHub', link: 'https://github.com/paradigmxyz/reth' },
@@ -68,6 +68,6 @@ export default defineConfig({
}
},
editLink: {
pattern: "https://github.com/paradigmxyz/reth/edit/main/book/vocs/docs/pages/:path",
pattern: "https://github.com/paradigmxyz/reth/edit/main/docs/vocs/docs/pages/:path",
}
})