Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helpful doc aliases: func, var, init, ... #960

Merged
merged 2 commits into from
Dec 6, 2024
Merged

Conversation

Bromeon
Copy link
Member

@Bromeon Bromeon commented Dec 3, 2024

So far, it was quite hard to search for something like #[func] or #[var] in the API docs.

Now, I added doc aliases for many such keywords, so that they point to the correct symbols (godot_api + derive(Godot) macros in this case). Hope that helps with discoverability!

Also improved some minor things, such as links between traits and their derive macros.


Example: "I remember there was a way to rename functions, or was it classes? What was the syntax?"

Answer:

image

Live demo: https://godot-rust.github.io/docs/gdext/pr-960/godot/?search=rename

@Bromeon Bromeon added documentation Improvements or additions to documentation c: register Register classes, functions and other symbols to GDScript labels Dec 3, 2024
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-960

@Bromeon Bromeon force-pushed the qol/helpful-aliases branch from bc52711 to 96916fa Compare December 4, 2024 17:22
@Bromeon Bromeon added this pull request to the merge queue Dec 6, 2024
Merged via the queue into master with commit 735d88f Dec 6, 2024
15 checks passed
@Bromeon Bromeon deleted the qol/helpful-aliases branch December 6, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: register Register classes, functions and other symbols to GDScript documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants