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

Add to In-Engine Scripting API Documentation with a Plugin #10635

Closed
willnationsdev opened this issue Aug 25, 2017 · 8 comments
Closed

Add to In-Engine Scripting API Documentation with a Plugin #10635

willnationsdev opened this issue Aug 25, 2017 · 8 comments

Comments

@willnationsdev
Copy link
Contributor

Motivation:

  1. I write a plugin.
  2. I define an API for it.
  3. I want people to be able to look up those classes and their associated properties, methods, and signals.

Ideal Features:

  1. This information would show up in the API documentation in the engine.
  2. People would be (ideally) able to look up this information on the Asset Library web page while perusing the plugin.
  3. Clicking on a new class name in the Script Editor could let you jump to that class's documentation.

Something where we supply our own XML file to be read in and incorporated?

@Zireael07
Copy link
Contributor

Have you tried actually using a module? This is what already happens with e.g. Zylann's terrain module or the fast_noise module

@willnationsdev
Copy link
Contributor Author

I'm trying to look in those modules, but I don't see anywhere that this documentation is outlined. What file actually provides the documentation to the engine / how does it get connected?

Also, I'm looking specifically for something that would work with plugins, that way it can be handled with GDNative on the AssetLib.

@reduz
Copy link
Member

reduz commented Aug 25, 2017 via email

@willnationsdev
Copy link
Contributor Author

@reduz Can you elaborate on what you mean by "not stable"? What are the criteria that need to be met for the above features to be doable? What needs to be fixed / improved in order to reach those criteria? It'd be better if we can get a head start on it now before the 3.0 release.

@Zireael07
Copy link
Contributor

3.0 needs to be released - right now the API is constantly being changed in preparation for 3.0.

@willnationsdev
Copy link
Contributor Author

Ah, I see what you mean now. But that doesn't seem related to the methodology people use for integrating content into that API with plugins. That sounds like a perpendicular task. Can people just write up their own similar XML API document for a plugin and then get it rendered somehow? That's the methodology that I'm not familiar with.

@reduz
Copy link
Member

reduz commented Aug 25, 2017

@willnationsdev most probably will be via writing an XML, but writing it youself from scratch kind of sucks, so I want to think of ways to ease it up

@Calinou
Copy link
Member

Calinou commented Jan 30, 2020

Superseded by godotengine/godot-proposals#177, closing.

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

No branches or pull requests

5 participants