Update Godot documentation (4.7.0)#2701
Conversation
Filter tweaks: - Remove anchor icons from page titles - Remove "User-contributed notes" section
| @@ -1,5 +1,5 @@ | |||
| /* PrismJS 1.30.0 | |||
| https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+bash+c+cpp+cmake+coffeescript+crystal+d+dart+diff+django+dot+elixir+erlang+go+groovy+java+json+julia+kotlin+latex+lua+markdown+markup-templating+matlab+nginx+nim+nix+ocaml+perl+php+python+qml+r+jsx+ruby+rust+scss+scala+shell-session+sql+tcl+typescript+yaml+zig */ | |||
| https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+bash+c+csharp+cpp+cmake+coffeescript+crystal+d+dart+diff+django+dot+elixir+erlang+gdscript+go+groovy+java+json+julia+kotlin+latex+lua+markdown+markup-templating+matlab+nginx+nim+nix+ocaml+perl+php+python+qml+r+jsx+ruby+rust+scss+scala+shell-session+sql+tcl+typescript+yaml+zig */ | |||
There was a problem hiding this comment.
Note: I downloaded this file by visiting the previous URL above, adding csharp and gdscript, and selecting "Development version".
Can be tested with e.g. http://localhost:9292/godot~4.7/classes/class_node#class-node-method-add-child
| Licensed under the Creative Commons Attribution Unported License v3.0. | ||
| HTML | ||
|
|
||
| version '4.7' do |
There was a problem hiding this comment.
Question: Should I add the other minor releases between 4.2 and 4.7 too?
There was a problem hiding this comment.
Pull request overview
Updates the DevDocs Godot scraper and related filters to support the latest Godot 4.7 documentation, along with vendor Prism updates to improve syntax highlighting for Godot-relevant languages.
Changes:
- Added Godot documentation version 4.7 (release 4.7.0) to the scraper configuration.
- Updated Godot entry-title extraction to strip an additional heading anchor glyph.
- Updated Godot HTML cleaning and Prism vendor bundle to better support current Godot docs pages and code highlighting (notably C# and GDScript).
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| lib/docs/scrapers/godot.rb | Adds Godot 4.7 (4.7.0) as a supported scraped version with the same filter pipeline as other Godot 4.x versions. |
| lib/docs/filters/godot/entries.rb | Removes an extra anchor icon character from extracted page titles to keep entry names clean. |
| lib/docs/filters/godot/clean_html.rb | Removes the JS-loaded “User-contributed notes” container from scraped HTML output. |
| assets/javascripts/vendor/prism.js | Extends the Prism bundle to include C# and GDScript grammars needed for Godot docs code blocks. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
If you're updating existing documentation to its latest version, please ensure that you have:
SOURCEfile inpublic/icons/your_scraper_name/are up-to-date if the documentation has a custom iconself.linkscontains up-to-date urls ifself.linksis defined