Skip to content

Commit 7debf86

Browse files
committed
wip
1 parent e5477ec commit 7debf86

11 files changed

Lines changed: 468 additions & 632 deletions

File tree

EditingTutorialsWithMDH/Tutorial-o-Matic Intro.mm

Lines changed: 72 additions & 75 deletions
Large diffs are not rendered by default.

EditingTutorialsWithMDH/Tutorial-o-MaticStepByStep.mm

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
<font BOLD="true"/>
208208
<attribute_layout NAME_WIDTH="84.75 pt" VALUE_WIDTH="99 pt"/>
209209
<attribute NAME="ToM_TabLabel" VALUE="ToM Step by step"/>
210-
<node TEXT="Introduction" STYLE_REF="ToM-Tutorial" FOLDED="true" POSITION="right" ID="ID_839819820">
210+
<node TEXT="Introduction" STYLE_REF="ToM-Tutorial" POSITION="right" ID="ID_839819820">
211211
<icon BUILTIN="emoji-1F58D"/>
212212
<attribute_layout NAME_WIDTH="84.75 pt" VALUE_WIDTH="88.5 pt"/>
213213
<attribute NAME="ToM_TabLabel" VALUE="ToM Step by step"/>
@@ -573,8 +573,7 @@
573573
Apply the style to the node:
574574
</p>
575575
</body>
576-
</html>
577-
</richcontent>
576+
</html></richcontent>
578577
</node>
579578
<node TEXT="Show tutorials from active map" ID="ID_1087925679" LINK="menuitem:_addons.tutorialOMatic.showTutorialsFromActiveMap_on_single_node">
580579
<icon BUILTIN="emoji-1F525"/>
@@ -673,8 +672,7 @@ Write some text to its note (this is the information that will be shown)
673672
</li>
674673
</ol>
675674
</body>
676-
</html>
677-
</richcontent>
675+
</html></richcontent>
678676
</node>
679677
<node TEXT="You can do those steps by yoursel and skip to the next page or" ID="ID_506987333"><richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
680678
<html>
@@ -686,8 +684,7 @@ Write some text to its note (this is the information that will be shown)
686684
You can do those steps by yourself and skip to the next page or use the following buttons to let ToM do the steps for you.
687685
</p>
688686
</body>
689-
</html>
690-
</richcontent>
687+
</html></richcontent>
691688
</node>
692689
</node>
693690
<node TEXT="x" ID="ID_1376331876">
@@ -713,8 +710,7 @@ Write some text to its note (this is the information that will be shown)
713710
Ok. Let's apply the style to the node:
714711
</p>
715712
</body>
716-
</html>
717-
</richcontent>
713+
</html></richcontent>
718714
</node>
719715
</node>
720716
<node TEXT="nodes to copy" STYLE_REF="ToM_copy" ID="ID_1622803215">
@@ -742,8 +738,7 @@ Write some text to its note (this is the information that will be shown)
742738
Write something and click <b>OK</b>
743739
</p>
744740
</body>
745-
</html>
746-
</richcontent>
741+
</html></richcontent>
747742
</node>
748743
<node TEXT="Show tutorials from active map" ID="ID_1593510320" LINK="menuitem:_addons.tutorialOMatic.showTutorialsFromActiveMap_on_single_node">
749744
<icon BUILTIN="emoji-1F525"/>
@@ -789,8 +784,7 @@ Write some text to its note (this is the information that will be shown)
789784
The notes in the child nodes can be written using <b>plain text</b>, <b>Html</b>&nbsp;or <b>Markdown</b>, just as usual.
790785
</p>
791786
</body>
792-
</html>
793-
</richcontent>
787+
</html></richcontent>
794788
</node>
795789
</node>
796790
</node>
@@ -869,8 +863,7 @@ Write some text to its note (this is the information that will be shown)
869863
because it's not a direct child
870864
</p>
871865
</body>
872-
</html>
873-
</richcontent>
866+
</html></richcontent>
874867
<richcontent TYPE="NOTE" CONTENT-TYPE="plain/markdown">
875868
<text>The ![Bear.png](https://github.com/EdoFro/hello-world/raw/master/resources/Animals%20Icons%20Set/Animals_png_small/mammals/Bear.png), the ![Corgi.png](https://github.com/EdoFro/hello-world/raw/master/resources/Animals%20Icons%20Set/Animals_png_small/mammals/Corgi.png) and the ![Deer.png](https://github.com/EdoFro/hello-world/raw/master/resources/Animals%20Icons%20Set/Animals_png_small/mammals/Deer.png) are from **[Graphic Burger](https://graphicburger.com/)** and can be found [here](https://graphicburger.com/71-free-animal-icons/).</text>
876869
</richcontent>
@@ -972,8 +965,7 @@ Write some text to its note (this is the information that will be shown)
972965
&quot;$0 &quot;
973966
</p>
974967
</body>
975-
</html>
976-
</richcontent>
968+
</html></richcontent>
977969
<node TEXT="Show tutorials from active map" ID="ID_115346832" LINK="menuitem:_addons.tutorialOMatic.showTutorialsFromActiveMap_on_single_node">
978970
<icon BUILTIN="emoji-1F525"/>
979971
<richcontent TYPE="NOTE" CONTENT-TYPE="plain/markdown">
@@ -1089,8 +1081,7 @@ Write some text to its note (this is the information that will be shown)
10891081
OK. Let's import the <b><font color="#0000c0">Tutorial-o-Matic</font></b>&nbsp;styles
10901082
</p>
10911083
</body>
1092-
</html>
1093-
</richcontent>
1084+
</html></richcontent>
10941085
</node>
10951086
</node>
10961087
<node TEXT="show menu commands" STYLE_REF="ToM_showMenu" ID="ID_1052702502">
@@ -1196,8 +1187,7 @@ Write some text to its note (this is the information that will be shown)
11961187
Edo
11971188
</p>
11981189
</body>
1199-
</html>
1200-
</richcontent>
1190+
</html></richcontent>
12011191
</node>
12021192
<node TEXT="markdown table" ID="ID_1729395353"><richcontent TYPE="NOTE" CONTENT-TYPE="plain/markdown">
12031193
<text>## Table example&#xd;
@@ -1289,7 +1279,7 @@ Write some text to its note (this is the information that will be shown)
12891279
</node>
12901280
</node>
12911281
</node>
1292-
<node TEXT="Tutorial 2" STYLE_REF="ToM-Tutorial" POSITION="right" ID="ID_243365661">
1282+
<node TEXT="Tutorial 3: organizing a tutorial in multiple pages" STYLE_REF="ToM-Tutorial" POSITION="right" ID="ID_243365661">
12931283
<icon BUILTIN="emoji-1F58D"/>
12941284
<attribute NAME="ToM_TabLabel" VALUE=" ToM tut 2"/>
12951285
<node TEXT="second tutorial" ID="ID_168997337"><richcontent CONTENT-TYPE="xml/" TYPE="DETAILS">

Tutorial-o-Matic/Tutorial-o-Matic.mm

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<font SIZE="16" BOLD="true" ITALIC="true"/>
55
<attribute_layout NAME_WIDTH="108 pt" VALUE_WIDTH="262.49999 pt"/>
66
<attribute NAME="name" VALUE="tutorialOMatic"/>
7-
<attribute NAME="version" VALUE="v0.0.6"/>
7+
<attribute NAME="version" VALUE="v0.0.7"/>
88
<attribute NAME="author" VALUE="EdoFro"/>
99
<attribute NAME="freeplaneVersionFrom" VALUE="v1.9.9"/>
1010
<attribute NAME="freeplaneVersionTo" VALUE=""/>
@@ -86,7 +86,7 @@
8686
</body>
8787
</html>
8888
</richcontent>
89-
<hook NAME="MapStyle" background="#f9f9f8" zoom="0.9">
89+
<hook NAME="MapStyle" background="#f9f9f8" zoom="1.089">
9090
<properties edgeColorConfiguration="#808080ff,#ff0000ff,#0000ffff,#00ff00ff,#ff00ffff,#00ffffff,#7c0000ff,#00007cff,#007c00ff,#7c007cff,#007c7cff,#7c7c00ff" show_icon_for_attributes="true" mapUsesOwnSaveOptions="true" save_modification_times="false" save_last_visited_node="default" associatedTemplateLocation="file:/C:/Users/Edo/Documents/GitHub/Freeplane_My-Menu-Inator/Menu-o-Matic/Menu-o-Matic.mm" show_note_icons="true" save_folding="save_folding_if_map_is_changed" fit_to_viewport="false"/>
9191

9292
<map_styles>
@@ -260,6 +260,7 @@
260260
<node TEXT="Updated gotoPane to open in corresponding Tab and use withGoBack modifier" ID="ID_1912254700"/>
261261
<node TEXT="Added openTutorialPage style and pane" ID="ID_1158869821"/>
262262
</node>
263+
<node TEXT="v0.0.7" ID="ID_144067667"/>
263264
</node>
264265
<node TEXT="license" FOLDED="true" POSITION="left" ID="ID_624388795"><richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
265266
<html>
@@ -450,7 +451,7 @@ For each menu item with an icon add an attribute with the icon key (use develope
450451
<attribute NAME="addons.${name}" VALUE="Tutorial-o-Matic"/>
451452
<attribute NAME="addons.${name}.ActionInstruction2" VALUE="&lt;html&gt;You can also use de keyboard shortcut &lt;b&gt;{0}&lt;/b&gt; for this command&lt;/html&gt;"/>
452453
<attribute NAME="addons.${name}.openDemoMap" VALUE="open Demo map"/>
453-
<attribute NAME="addons.${name}.getMenuCommand" VALUE="Get menu command"/>
454+
<attribute NAME="addons.${name}.getMenuCommandToM" VALUE="Get menu command"/>
454455
<attribute NAME="addons.${name}.showTutorialsFromActiveMap" VALUE="Show tutorials from active map"/>
455456
<attribute NAME="addons.${name}.ToMDemo" VALUE="Tutorial-o-Matic Demo"/>
456457
<attribute NAME="addons.${name}.ToMTutorial" VALUE="Tutorial-o-Matic How to"/>
@@ -468,8 +469,7 @@ For each menu item with an icon add an attribute with the icon key (use develope
468469
</h3>
469470
In submenu <b>{0}</b><br/>click on <b>{1}</b>
470471
</body>
471-
</html>
472-
</richcontent>
472+
</html></richcontent>
473473
</node>
474474
<node TEXT="es" ID="ID_370825255">
475475
<attribute_layout NAME_WIDTH="205.49999 pt" VALUE_WIDTH="228.74999 pt"/>
@@ -478,7 +478,7 @@ For each menu item with an icon add an attribute with the icon key (use develope
478478
<attribute NAME="addons.${name}" VALUE="Tutorial-o-Matic"/>
479479
<attribute NAME="addons.${name}.ActionInstruction2" VALUE="&lt;html&gt;Puedes usar también el atajo &lt;b&gt;{0}&lt;/b&gt; para este comando&lt;/html&gt;"/>
480480
<attribute NAME="addons.${name}.openDemoMap" VALUE="abrir mapa demo"/>
481-
<attribute NAME="addons.${name}.getMenuCommand" VALUE="Obtener comando desde el menú"/>
481+
<attribute NAME="addons.${name}.getMenuCommandToM" VALUE="Obtener comando desde el menú"/>
482482
<attribute NAME="addons.${name}.showTutorialsFromActiveMap" VALUE="Mostrar tutoriales de mapa activo"/>
483483
<attribute NAME="addons.${name}.ToMDemo" VALUE="Tutorial-o-Matic Demo"/>
484484
<attribute NAME="addons.${name}.ToMTutorial" VALUE="Como usar Tutorial-o-Matic"/>
@@ -521,6 +521,8 @@ For each menu item with an icon add an attribute with the icon key (use develope
521521
<attribute NAME="delete" VALUE="${installationbase}/doc/Tutorial-o-Matic/Tutorial-o-MaticCommands.mm"/>
522522
<attribute NAME="delete" VALUE="${installationbase}/doc/Tutorial-o-Matic/Tutorial-o-MaticStepByStep.mm"/>
523523
<attribute NAME="delete" VALUE="${installationbase}/addons/${name}/scripts/openTutorialPageFromLink.groovy"/>
524+
<attribute NAME="delete" VALUE="${installationbase}/doc/Tutorial-o-Matic/myExistingMindMap.mm"/>
525+
<attribute NAME="delete" VALUE="${installationbase}/addons/${name}/scripts/getMenuCommandToM.groovy"/>
524526
</node>
525527
<node TEXT="scripts" FOLDED="true" POSITION="right" ID="ID_1037882722"><richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
526528
<html>
@@ -675,9 +677,9 @@ For each menu item with an icon add an attribute with the icon key (use develope
675677
<attribute NAME="execute_scripts_without_exec_restriction" VALUE="false"/>
676678
<attribute NAME="execute_scripts_without_network_restriction" VALUE="true"/>
677679
</node>
678-
<node TEXT="getMenuCommand.groovy" ID="ID_863849079">
680+
<node TEXT="getMenuCommandToM.groovy" ID="ID_863849079">
679681
<attribute_layout NAME_WIDTH="204.74999 pt" VALUE_WIDTH="162 pt"/>
680-
<attribute NAME="menuTitleKey" VALUE="addons.${name}.getMenuCommand"/>
682+
<attribute NAME="menuTitleKey" VALUE="addons.${name}.getMenuCommandToM"/>
681683
<attribute NAME="menuLocation" VALUE="${addonsMenu}/addons.${name}"/>
682684
<attribute NAME="executionMode" VALUE="on_single_node"/>
683685
<attribute NAME="keyboardShortcut" VALUE="control shift F3"/>
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
//Tutorial-o-Matic
2+
3+
4+
5+
apply plugin: 'groovy'
6+
7+
targetCompatibility='1.8'
8+
9+
// 1. I have to define which freeplane version is going to be used to look at the libreries (freeplane and groovy)
10+
def FPversion = 'v9_15'
11+
def freeplaneDirs = [
12+
instaled : "C:/Program Files/Freeplane",
13+
protableApps : "C:/PortableApps/FreeplanePortable/App/Freeplane",
14+
v9_15 : "C:/Freeplane/freeplane-1.9.15-pre01",
15+
v10_1 : "C:/Freeplane/freeplane-1.10.1-pre05"
16+
]
17+
def freeplaneDir = freeplaneDirs[FPversion]
18+
19+
def groovyGroupId = FPversion.startsWith('v10')?'org.apache.groovy':'org.codehaus.groovy'
20+
def groovyVersion = FPversion.startsWith('v10')?'4.0.1':'3.0.8'
21+
22+
23+
libsDirName = "${rootDir}/lib"
24+
//clean.doFirst { delete "${rootDir}/lib" } // para eliminar todas las .jar
25+
clean.doFirst { delete "${rootDir}/lib/Tutorial-o-Matic.jar" } //para eliminar sólo una de las .jar y que no me borrara markedj ni jsoup
26+
27+
repositories {
28+
mavenCentral()
29+
flatDir name: 'localGitDepsRepository',
30+
dirs: [
31+
"${freeplaneDir}",
32+
"${freeplaneDir}/core/org.freeplane.core/lib",
33+
"${freeplaneDir}/plugins/org.freeplane.plugin.script/lib",
34+
// "${freeplaneDir}/plugins/org.freeplane.plugin.markdown/lib", // para incluir markedj.jar
35+
"${rootDir}/lib" //ahí puse markedj y jsoup
36+
]
37+
}
38+
39+
40+
// I had this error:
41+
// Could not find method compile() for arguments [{name=freeplanelauncher}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
42+
// answer:
43+
// https://stackoverflow.com/questions/69733508/couldnt-find-compile-for-arguments-directory-libs-on-object-of-type-org-g
44+
45+
dependencies {
46+
implementation name : 'freeplanelauncher'
47+
implementation name : 'freeplaneviewer'
48+
implementation group: 'org.freeplane.core', name: 'freeplaneeditor', version:"+"
49+
implementation group: 'org.freeplane.script', name: 'plugin', version: '+'
50+
implementation name : 'markedj', version: '+' //<---- para markedj
51+
implementation name : 'jsoup' , version: '+' //<---- para jsoup
52+
//Freeplane now comes with groovy 3.0.8
53+
implementation ("${groovyGroupId}:groovy-all:${groovyVersion}".toString()) {
54+
exclude group:groovyGroupId, module:'groovy-test'
55+
exclude group:groovyGroupId, module:'groovy-test-junit5'
56+
exclude group:groovyGroupId, module:'groovy-testng'
57+
exclude group:groovyGroupId, module:'groovy-ant'
58+
exclude group:groovyGroupId, module:'groovy-docgenerator'
59+
exclude group:groovyGroupId, module:'groovy-groovydoc'
60+
exclude group:groovyGroupId, module:'groovy-cli-commons'
61+
exclude group:groovyGroupId, module:'groovy-cli-picocli'
62+
}
63+
implementation "${groovyGroupId}:groovy-dateutil:${groovyVersion}".toString()
64+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
//Tutorial-o-Matic
2+
3+
4+
5+
apply plugin: 'groovy'
6+
7+
targetCompatibility='1.8'
8+
9+
libsDirName = "${rootDir}/lib"
10+
//clean.doFirst { delete "${rootDir}/lib" } // para eliminar todas las .jar
11+
clean.doFirst { delete "${rootDir}/lib/Tutorial-o-Matic.jar" } //para eliminar sólo una de las .jar y que no me borrara markedj ni jsoup
12+
13+
repositories {
14+
mavenCentral()
15+
flatDir name: 'localGitDepsRepository',
16+
dirs: [
17+
"C:/Program Files/Freeplane",
18+
"C:/Program Files/Freeplane/core/org.freeplane.core/lib",
19+
"C:/Program Files/Freeplane/plugins/org.freeplane.plugin.script/lib",
20+
// "C:/Program Files/Freeplane/plugins/org.freeplane.plugin.markdown/lib", // para incluir markedj.jar
21+
"${rootDir}/lib" //ahí puse markedj y jsoup
22+
]
23+
24+
25+
// Así para cuando Freeplane está en Portable Apps
26+
// dirs: [
27+
// "C:/PortableApps/FreeplanePortable/App/Freeplane",
28+
// "C:/PortableApps/FreeplanePortable/App/Freeplane/core/org.freeplane.core/lib",
29+
// "C:/PortableApps/FreeplanePortable/App/Freeplane/plugins/org.freeplane.plugin.script/lib",
30+
// "${rootDir}/lib" //así lo usé en wikdshellext, porque ahí puse WikdShell.jar
31+
// ]
32+
}
33+
34+
35+
// I had this error:
36+
// Could not find method compile() for arguments [{name=freeplanelauncher}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
37+
// answer:
38+
// https://stackoverflow.com/questions/69733508/couldnt-find-compile-for-arguments-directory-libs-on-object-of-type-org-g
39+
40+
dependencies {
41+
implementation name : 'freeplanelauncher'
42+
implementation name : 'freeplaneviewer'
43+
implementation group: 'org.freeplane.core', name: 'freeplaneeditor', version:"+"
44+
implementation group: 'org.freeplane.script', name: 'plugin', version: '+'
45+
implementation name : 'markedj', version: '+' //<---- para markedj
46+
implementation name : 'jsoup' , version: '+' //<---- para jsoup
47+
//Freeplane now comes with groovy 3.0.8
48+
implementation ('org.codehaus.groovy:groovy-all:3.0.8') {
49+
exclude group:'org.codehaus.groovy', module:'groovy-test'
50+
exclude group:'org.codehaus.groovy', module:'groovy-test-junit5'
51+
exclude group:'org.codehaus.groovy', module:'groovy-testng'
52+
exclude group:'org.codehaus.groovy', module:'groovy-ant'
53+
exclude group:'org.codehaus.groovy', module:'groovy-docgenerator'
54+
exclude group:'org.codehaus.groovy', module:'groovy-groovydoc'
55+
exclude group:'org.codehaus.groovy', module:'groovy-cli-commons'
56+
exclude group:'org.codehaus.groovy', module:'groovy-cli-picocli'
57+
}
58+
implementation 'org.codehaus.groovy:groovy-dateutil:3.0.8'
59+
}

0 commit comments

Comments
 (0)