-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fix JavaDoc formatting #27
Comments
Thanks for bringing this to my attention. I'll for sure fix the javadoc formatting throughout the resource. However, the ( This issue is linked to #4. ) |
You can use html to mark text, this way the mark is more visual |
In this case, use |
You can also use |
This will be worked on after #37 is completed. |
Since we now have a EconomyAPIVersion enum, maybe the /**
* ...
* @since {@link me.lokka30.treasury.api.economy.misc.EconomyAPIVersion#VERSION_1 v1.0.0}
*/ So we have a link to that enum entry and the text is still v1.0.0. I also think that the enum entries should be renamed. See #46. |
The link is quite bulky - perhaps just a text version of the API version would be better?
|
Why would we want to sperate API and plugin version? |
While I'm overall ambivalent to link/non-link status, including the plugin version doesn't make sense because the API should not be aware of implementation details. /e Unless that was a regex or and not just an inline pipe, plugin side docs. That makes sense, yeah. Definitely plaintext plugin side. |
The link is long because we class name is also long but in the documentation it would still appear as "v1.0.0" and not "me.lokka30.treasury.api.economy.misc.EconomyAPIVersion#VERSION_1"
I agree with that. The API should not contain any type of information about the plugin or the implementations. About linking the enum, it's just an idea not much really changes by adding it or not |
Do you suggest that we only include 'api' or 'plugin' depending on which module the code is in?
Brilliant - let's use the link system then. |
Yes. The api is just that, a collection of interfaces that specify how interactions are made. If we also mention the plugin in the api module it gets confusing because you also have to think about the plugin while coding, even though you don't need to. If we also mention the plugin on the api module people can get confused because maybe the things that you said about the plugin aren't even true (they are running another plugin instead of treasury) |
Merging this issue with #4 |
Currently the Javadoc format follows a pattern: author - see - since - description - parameters - throws - return
This format creates the problem that JavaDoc genertors think that the description is part of the see tag, we can see this by generating the javadoc.
Another problem with it is using formatting options that don't exists in the JavaDoc like `Marked` This JavaDoc was generated using the java 8 jdk
The text was updated successfully, but these errors were encountered: