Replies: 10 comments 29 replies
-
I like your idea. Maybe some of it can be also added to the Java Doc in the API itself. |
Beta Was this translation helpful? Give feedback.
-
I will try to put 30 minutes a day on it. I don't know how long it will take to complete, though. |
Beta Was this translation helpful? Give feedback.
-
Is it better to exclude the deprecated methods, or keep it? I think they will be useless for ChatGPT, right? |
Beta Was this translation helpful? Give feedback.
-
Hello folks, I am sorry for the delayed response. Only now I have a concrete idea of which kind of documentation I find the easiest to write and the most helpful. I would prefer having a single Groovy file containing a complete tutorial covering all API methods in a format looking like https://learnxinyminutes.com/docs/groovy/. I think that it can even be a script that could be executed by Freeplane. Once we have such a file we could easily feed it to ChatGPT and include it completely or partially in our documentation as described at https://rust-lang.github.io/mdBook/format/mdbook.html#including-files (as you know we use mdBook as our documentation renderer). What do you think? Regards, |
Beta Was this translation helpful? Give feedback.
-
In order to participate, do I have to do the following:
it seems complicated in order to just contribute a piece of small code. |
Beta Was this translation helpful? Give feedback.
-
My current situation is:
My plan was to make small scale tests with the bot builder, in order to define the best format for the table. I was thinking about giving the spreadsheet above to ChatGPT and then ask for a series of scripts using only those two categories of methods (Attributes and Clouds). If ChatGPT fails in creating a script, I would try to make adjustments in the format of the spreadsheet, and try again. For example, I would like to test if ChatGPT understands better the example script in groovy style, or Java style. Maybe, the Java style will work better, because it is more similar to the abstract method, and doesn't rely on the concept of groovy properties. But, it's just my hypothesis. |
Beta Was this translation helpful? Give feedback.
-
I wrote a bit in the reference file. In order to get the format similar to https://learnxinyminutes.com/docs/groovy/, I suggest those guidelines: The Classes in a sequence, following the sequence of the Interface Hierarchy, inside the API HTML -> Tree Later, we can add a section on top, to introduce frequently used methods, as Edo suggested above. Inside each Class, the methods: Use #todo comments when you skip a class, a method or a description. Example: Marking skipped classes or methods is important so we can know that we are not forgetting any methods. Is it OK? |
Beta Was this translation helpful? Give feedback.
-
We can add some lines in the comment with the structure of sample branchs to be used with the code examples. In the Freeplane Stable Downloading folder in SourceForge is a text file with an "example of attributes to be pasted" When you copy this text and paste it in Freeplane, it creates a branch with nodes with attributes. its content:
So we can add lines like that to the groovy files to have some example branchs for the users. Not? |
Beta Was this translation helpful? Give feedback.
-
Added content: #140 |
Beta Was this translation helpful? Give feedback.
-
I created examples for most of the methods. I skipped some that gave me difficulties. The skipped methods are marked in the google sheet. I'm eager to go on and make tests with ChatGPT (now, I have ChatGPT Plus). I will create another thread explaining how I plan to proceed with the tests. |
Beta Was this translation helpful? Give feedback.
-
Project: Table of the public API methods
1- What will be done: create a table with all the methods of the public API; short explanation and example for each method.
2- Why: Reason 1: explained here. Reason 2: explained here.
3- How:
3.1- Format:
See comments below.
3.2- What kind of information is on the table:
See comments below.
3.3- How to Contribute:
See comments below.
3.4- Some guidelines:
Things to consider and discuss:
Tasklist:
Doing:
Creating the examples.
Todo:
Done:
-define a first plan of action
-create a prototype for the table
First prototype, with only the first 2 categories of methods, at: https://github.com/euu2021/docs/blob/Table-of-API-methods/src/docs/scripting/API%20methods%20and%20examples
Beta Was this translation helpful? Give feedback.
All reactions