Scripting Examples - New Content #140
Replies: 6 comments 21 replies
-
I encountered 2 issues during this process: Issues 1 - Folders in mdbookBasically this: rust-lang/mdBook#483 (comment) So there are several solutions:
Issues 2 - Error running mdbook with "mdbook-open-on-gh" extensionWhen i ran mdbook with the "mdbook-open-on-gh" extension, i got this error:
I'm not sure why but this extension tries to get some value of git_root and cannot get it.
But i wonder if this can be fixed. my version of mdbook:
|
Beta Was this translation helpful? Give feedback.
-
Another small issue is that I am having is that in my fork of the docs repository, I get error about the job "pages build and deployment". |
Beta Was this translation helpful? Give feedback.
-
I merged it into the docs. you can see the new section here : Its not a critical code, we can always change it back if needed. Comments will be appreciated :) |
Beta Was this translation helpful? Give feedback.
-
I like this idea. So, right now, it seems that we have two levels of organized examples:
Maybe, a useful task is to go through the scripts from the Scripts Collection and move into the Scripting Examples the ones that can fit nicely in a category. |
Beta Was this translation helpful? Give feedback.
-
@sifran-github In #135 (comment) I have suggested that all groovy examples are added to https://github.com/freeplane/docs/blob/main/src/docs/scripting/basics.groovy or https://github.com/freeplane/docs/blob/main/src/docs/scripting/reference.groovy. I think that using real groovy files makes it easier to have working examples and to modify them. Now I have got an impression that you are not following this idea. I would like to understand if you are aware of this suggestion an what you think about it. |
Beta Was this translation helpful? Give feedback.
-
I added more scripting content to the docs: #141. One script that I added is simple output window, that can help programmers when showing some calculation result. i wrapped it in a simple to use function: https://docs.freeplane.org/scripting_examples/gui.html This is the most "complex" script that I will add to the "Examples by category" section. All other scripts will be simpler. this is another example of what should go into the new category: https://docs.freeplane.org/scripting_examples/traverse.html That is my goal with this category, to show simple examples of each feature. In the future I will change the structure of these existing pages: if you have any feedback, let me know. |
Beta Was this translation helpful? Give feedback.
-
I created a PR: #139
(merged. you can see the new section here: https://docs.freeplane.org/scripting_examples/_scripting_examples.html)
It contains a new section with scripting examples by category. I divided it into:
I added several examples.
I didn't make one huge page because the categorized structure is much more organized. ChatGPT will be able to read this structure as well.
I didn't merge it yet, to let other people view it. its not critical code or something so I might merge it soon...
I think that the next step will be to add more examples on each topic, and also to go over the existing "scripting" content, and extract the relevant information. The current "scripting" documentation contains a mix of general information and some examples. For example, in this page: https://docs.freeplane.org/scripting/Scripting.html there is a part about links which I consider "example" and I plan to extract into the new examples section, and a part about Execution modes which is a general information and should stay there.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions