From fec8aca217954d9735b3fe850112cd5877b3e248 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 13 Nov 2023 22:08:41 +0800 Subject: [PATCH] chore: tweak docs-scraper conf for docusaurus v3 no sure why it requires `js_render` since the rendered HTML are mostly the same. reference: docusaurus v2 https://github.com/DIYgod/RSSHub/actions/runs/6721109567/job/18266104251#step:5:103 docusaurus v3 https://github.com/DIYgod/RSSHub/actions/runs/6733176979/job/18301311550#step:5:103 --- scripts/docs-scraper/docs.rsshub.app.json | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/scripts/docs-scraper/docs.rsshub.app.json b/scripts/docs-scraper/docs.rsshub.app.json index f96bda958..2d5f28d6f 100644 --- a/scripts/docs-scraper/docs.rsshub.app.json +++ b/scripts/docs-scraper/docs.rsshub.app.json @@ -18,6 +18,8 @@ "strip_chars": " .,;:#", "scrap_start_urls": false, "min_indexed_level": 1, + "js_render": true, + "js_wait": 3, "custom_settings": { "displayedAttributes": [ "hierarchy_radio_lvl1", @@ -37,20 +39,13 @@ "content" ], "searchableAttributes": [ - "hierarchy_radio_lvl1", - "hierarchy_radio_lvl2", - "hierarchy_radio_lvl3", - "hierarchy_radio_lvl4", - "hierarchy_radio_lvl5", - "hierarchy_lvl0", - "hierarchy_lvl1", "hierarchy_lvl2", "hierarchy_lvl3", "hierarchy_lvl4", - "hierarchy_lvl5", - "hierarchy_lvl6", "anchor", - "content" + "content", + "hierarchy_lvl5", + "hierarchy_lvl1" ], "sortableAttributes": ["anchor"] },