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

GDScript(2.0) Documentation generation system #41095

Merged
merged 2 commits into from
Dec 2, 2020

Conversation

ThakeeNathees
Copy link
Contributor

@ThakeeNathees ThakeeNathees commented Aug 7, 2020

Suppression of my initial pr(#39359). Refactored with GDScript 2.0

new-doc

Bugsquad edit: This closes godotengine/godot-proposals#993.

@AndreaCatania
Copy link
Contributor

Good job. If it's not too difficult, would be nice highlight the comment, like happens with syntax """ Comment """.

@ThakeeNathees
Copy link
Contributor Author

@AndreaCatania IMO, making the comments/documentations less visible from the source is easy to read the code,

here is a side by side comparison
Screenshot (38)

@AndreaCatania
Copy link
Contributor

Usually the documenting code is marked with a different colour. Probably that yellow is wrong and too strong for its purpose.

@dalexeev
Copy link
Member

dalexeev commented Aug 8, 2020

Perhaps a dark purple or dark green color will work. They are not used.

modules/gdscript/gdscript_tokenizer.cpp Show resolved Hide resolved
modules/gdscript/gdscript_tokenizer.cpp Show resolved Hide resolved
modules/gdscript/gdscript_parser.h Outdated Show resolved Hide resolved
modules/gdscript/gdscript_tokenizer.h Outdated Show resolved Hide resolved
modules/gdscript/gdscript_parser.h Outdated Show resolved Hide resolved
modules/gdscript/gdscript_parser.cpp Show resolved Hide resolved
modules/gdscript/gdscript_parser.cpp Outdated Show resolved Hide resolved
modules/gdscript/gdscript_parser.cpp Outdated Show resolved Hide resolved
modules/gdscript/gdscript_compiler.cpp Outdated Show resolved Hide resolved
editor/editor_file_system.cpp Outdated Show resolved Hide resolved
Copy link
Member

@vnen vnen left a comment

Choose a reason for hiding this comment

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

Overall looks great, just a few things that needs to change.

@ThakeeNathees
Copy link
Contributor Author

@vnen completed!

@ThakeeNathees ThakeeNathees force-pushed the GDScript-Documentation branch 2 times, most recently from 044b618 to 8e55187 Compare August 14, 2020 10:52
@vnen vnen self-assigned this Aug 17, 2020
Copy link
Member

@vnen vnen left a comment

Choose a reason for hiding this comment

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

Looks really good. Just a small thing that you missed.

modules/gdscript/gdscript_compiler.cpp Outdated Show resolved Hide resolved
modules/gdscript/gdscript_compiler.cpp Outdated Show resolved Hide resolved
Copy link
Member

@vnen vnen left a comment

Choose a reason for hiding this comment

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

LGTM. Great work!

@akien-mga akien-mga merged commit d1231be into godotengine:master Dec 2, 2020
@akien-mga
Copy link
Member

Thanks hugely for this amazing feature, and for following up on belated reviews after GSoC :)

@geekley
Copy link

geekley commented Oct 23, 2021

Is there a way to show these tooltips in C# ? Like an attribute or XML doc or similar?

@neikeq
Copy link
Contributor

neikeq commented Oct 23, 2021

Is there a way to show these tooltips in C# ? Like an attribute or XML doc or similar?

We can probably use the generated XML doc for this, but this PR is about GDScript only.

@ithinkandicode
Copy link

Will this feature ever be available in 3.x?

@YuriSizov
Copy link
Contributor

@ithinkandicode That's unlikely, as this feature is built on top of the changes in master which are not compatible. Nothing is impossible, but that would require dedicated 3.x GDScript maintainers, and there is currently nobody interested in doing that work.

@the-eclectic-dyslexic
Copy link

I am noticing the tooltips don't update until restarting in 4 beta 11. Is this intended behaviour or am I missing an option to tell them to regenerate?

@akien-mga
Copy link
Member

That's a known issue / expected behavior for any change that impacts an already open inspector for the node you're editing. If you click another node and then back to this one, it should refresh.

@the-eclectic-dyslexic
Copy link

@akien-mga Thanks for the reply, that was helpful. Have a good one!

@Aristottle
Copy link

The tooltips don't seem to generate if the variable is within an export category

@EvanHecht
Copy link

The tooltips don't seem to generate if the variable is within an export category

Yeah can confirm this happening for me as well.

@YuriSizov
Copy link
Contributor

This is already properly reported: #64432

@godotengine godotengine locked as resolved and limited conversation to collaborators Jan 25, 2023
@vnen
Copy link
Member

vnen commented Jan 25, 2023

Not sure why this is receiving comments lately so I locked to avoid cluttering the discussion. If you have a problem with the feature then open an issue about it since comments in merged pull requests tend to be forgotten.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation generation for GDScript