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
URLs for specific API commands #3369
Comments
Shouldn't be too hard to do. Just add an anker tag here: https://github.com/cuberite/cuberite/blob/master/Server/Plugins/APIDump/main_APIDump.lua#L786 |
@LogicParrot Very nice idea :) @NiLSPACE Found 2 more places where it has to be added. For constants and also for member variables. This are the changes that I tested and they works, |
Careful, though. Do we want to simply mix all the symbols together (functions, constants, variables, enums) in this way, or should we prefix the anchor with something? Such as |
@Seadragon91 I don't think that's how anchoring works, AFAIK you need to use |
@madmaxoft No, it does work like that, |
Hmm, I guess I'm too old-school :P |
Then either convert all the anchors in the APIDump plugin output to use this syntax, or use the old one. Be consistent. |
|
I added a table to track the function names and add Edit:
|
Drop the |
This would then add a
|
It will number the functions incrementally |
Yes it will increment it, but I mean that now all functions that are not overloaded will have the |
Yes, all the anchors will have the same format, rather than having two different formats. And if a function ever receives an overload, its anchored link will still work afterwards. |
Commit id: f7029ed
When visiting http://api-docs.cuberite.org, I'd want to have links to individual commands via the hash part of the URL. e.g.
http://api-docs.cuberite.org/cPlayer.html#Freeze
Should lead to the player class'sFreeze
command.This should be rather simple: Each command's first HTML table cell,
<td>X</td>
should be changed to:Better methods are welcome.
This may require changes to the built in APIDump plugin, which is why I posted it here.
The text was updated successfully, but these errors were encountered: