Skip to content

Commit

Permalink
chore: tweak docs-scraper conf for docusaurus v3
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TonyRL authored Nov 13, 2023
1 parent a9becf8 commit fec8aca
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions scripts/docs-scraper/docs.rsshub.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"]
},
Expand Down

0 comments on commit fec8aca

Please sign in to comment.