Skip to content

Update Godot documentation (4.7.0)#2701

Open
toupeira wants to merge 2 commits into
freeCodeCamp:mainfrom
toupeira:chore/godot-updates
Open

Update Godot documentation (4.7.0)#2701
toupeira wants to merge 2 commits into
freeCodeCamp:mainfrom
toupeira:chore/godot-updates

Conversation

@toupeira

Copy link
Copy Markdown
Contributor

If you're updating existing documentation to its latest version, please ensure that you have:

  • Updated the versions and releases in the scraper file
  • Ensured the license is up-to-date
  • Ensured the icons and the SOURCE file in public/icons/your_scraper_name/ are up-to-date if the documentation has a custom icon
  • Ensured self.links contains up-to-date urls if self.links is defined
  • Tested the changes locally to ensure:
    • The scraper still works without errors
    • The scraped documentation still looks consistent with the rest of DevDocs
    • The categorization of entries is still good

toupeira added 2 commits June 26, 2026 12:39
Filter tweaks:
- Remove anchor icons from page titles
- Remove "User-contributed notes" section
@toupeira toupeira requested a review from a team as a code owner June 26, 2026 10:55
@@ -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 */

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Should I add the other minor releases between 4.2 and 4.7 too?

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants