-
Notifications
You must be signed in to change notification settings - Fork 38
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
enh(api-gen): generate kdoc from api json #534
base: master
Are you sure you want to change the base?
Conversation
} | ||
} | ||
|
||
fun TypeSpec.Builder.addKdoc(documented: IDocumented): TypeSpec.Builder { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those 3 types implement the Documentable
interface, you can just define a generic extension <T: Documentable.Builder>
for it instead of implementing 3 different ones.
"method" | ||
) | ||
|
||
private val tagsToSanitize = arrayOf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also add handling of the [gdscript] [csharp] [codeblock] tags in the sanitizer.
kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendTree.kt
Outdated
Show resolved
Hide resolved
kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt
Outdated
Show resolved
Hide resolved
kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt
Show resolved
Hide resolved
kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer.kt
Outdated
Show resolved
Hide resolved
2950ba7
to
f26a1bf
Compare
027ddb2
to
d27d079
Compare
d27d079
to
5c0fa25
Compare
f26a1bf
to
3944552
Compare
* sub-animation and return once it finishes. Blend times for fading in and out can be customized, as | ||
* well as filters. | ||
* After setting the request and changing the animation playback, the one-shot node automatically | ||
* clears the request on the next process frame by setting its `request` value to [ONESHOTREQUESTNONE]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ONESHOTREQUESTNONE
something is off here. this should be ONE_SHOT_REQUEST_NONE
This removes xml kdoc generation by using doc provided in api json.
To generate a new api use
--dump-extension-api-with-docs
engine argument.