From 762885e40a158ddf3821422bea35271f4a62263c Mon Sep 17 00:00:00 2001 From: TonyRL Date: Thu, 9 Jul 2026 16:30:42 +0800 Subject: [PATCH] docs: fix empty routes close #22485 --- scripts/workflow/build-docs.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/workflow/build-docs.ts b/scripts/workflow/build-docs.ts index 351525ae8..9497bbe11 100644 --- a/scripts/workflow/build-docs.ts +++ b/scripts/workflow/build-docs.ts @@ -2,10 +2,12 @@ import fs from 'node:fs'; import path from 'node:path'; import { config } from '../../lib/config'; -import { namespaces } from '../../lib/registry'; +import { ensureAllLoaded, namespaces } from '../../lib/registry'; import { getCurrentPath } from '../../lib/utils/helpers'; import { categories } from './data'; +await ensureAllLoaded(); + const fullTests = await (await fetch('https://cdn.jsdelivr.net/gh/DIYgod/RSSHub@gh-pages/build/test-full-routes.json')).json(); const testResult = fullTests.testResults[0].assertionResults;