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

Custom documentation for projects and plugins #489

Closed
Boivin92 opened this issue Feb 16, 2020 · 1 comment
Closed

Custom documentation for projects and plugins #489

Boivin92 opened this issue Feb 16, 2020 · 1 comment
Labels

Comments

@Boivin92
Copy link

Describe the project you are working on:
Godot W.A.T. (Waiting and Testing), a unit testing framework plugin

Describe the problem or limitation you are having in your project:
We cannot add documentation similar to the core engine's one, meaning that ctrl+click on functions or class names does not open up helpful info.

Describe the feature / enhancement and how it helps to overcome the problem or limitation:
Adding a way to link a script to a markdown file, probably as a resource, would allow all plugins to come bundled with their documentation. It could also be used internally to a project, to keep the documentation files as closely linked to their material as possible, which also means that every deployment would come with the right documentation for it (thanks, Git).

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
image

We could add a button to the script editor that would open up the documentation resource for this particular script or create it if non-existent. Markdown is easier to write documentation for but I believe it's not something currently supported by Godot so maybe we could settle for BBCode?

To facilitate linking we could setup a standard. The documentation resource should be right next to the script (in the same folder) and have the same name as the script prefixed with "docs_".

exemple: if you have a player script you want to document, you should have a docs_player resource in the same folder.

If this enhancement will not be used often, can it be worked around with a few lines of script?:
No, because the documentation framework in godot is currently baked in the compilation (as far as I know)

Is there a reason why this should be core and not an add-on in the asset library?:
Because there is currently no way to add to the documentation framework, even through a plugin

@Calinou
Copy link
Member

Calinou commented Feb 16, 2020

Duplicate of #177.

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

No branches or pull requests

2 participants