-
-
Notifications
You must be signed in to change notification settings - Fork 414
Use @Example annotations instead of @Examples #8224
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
base: dev/patch
Are you sure you want to change the base?
Conversation
src/main/java/org/skriptlang/skript/bukkit/displays/text/EffTextDisplayDropShadow.java
Outdated
Show resolved
Hide resolved
applies code suggestions from @sovdeeth Co-authored-by: sovdee <[email protected]>
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.
only looked through conditions
src/main/java/ch/njol/skript/conditions/CondIsSkriptCommand.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/conditions/CondIsSkriptCommand.java
Outdated
Show resolved
Hide resolved
…o Example this changes the rest of the vanilla Skript syntaxes. the old Examples annotation is left there because addons probably use it still
96dcf0f
to
332d649
Compare
thanks, sovde ! Co-authored-by: sovdee <[email protected]>
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.
400/681
src/main/java/ch/njol/skript/conditions/CondElytraBoostConsume.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/effects/EffToggleCanPickUpItems.java
Outdated
Show resolved
Hide resolved
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.
555/680
src/main/java/ch/njol/skript/expressions/ExprDomestication.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprEntitySnapshot.java
Outdated
Show resolved
Hide resolved
applies changes from code review Co-authored-by: sovde <[email protected]>
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.
680/680!
src/main/java/ch/njol/skript/hooks/regions/expressions/ExprMembersOfRegion.java
Outdated
Show resolved
Hide resolved
Co-authored-by: sovde <[email protected]>
Previously at #8222, closed because PR was ahead base.
This PR moves many syntaxes to use
@Example
-annotations instead of@Examples
. The goal of this PR is to move all Skript syntaxes towards the new repeatable annotations. This results in cleaner generated JSON, with unambiguous data when multiple examples are present.Warning
This pull request was, due to its scale and simplicity, made in large part using agentic Copilot. Copilot has proven to be quite bad at tasks like programming and understanding language, and mistakes are expected.
Testing Completed
I have generated the docs and looked for errors as well as verified every example by hand.
Note about line endings
End-of-line characters are not present when examples are defined in a single line. We should consider adapting
JSONGenerator
to insert an end-of-line character at the end of each example if it is missing. This way, all examples consist of POSIX-compliant 'lines', which always end in an end-of-line character.State of pull request
@Examples
migrated