Optimizing tiddlers JSON exportation with external programs.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-03-07 11:54:59 -05:00
parent 009bd3e059
commit b44e39da48
1 changed files with 17 additions and 0 deletions

View File

@ -30,6 +30,15 @@ TiddlyWiki class >> fromJSONUrl: anUrlString [
name: anUrlString
]
{ #category : #accessing }
TiddlyWiki class >> installJsonExporter [
ZnClient "Descarga el archivo
https://mutabit.com/repos.fossil/mutabit/uv/wiki/scripts/exportJsonFile
a la subcarpeta del wiki ./scripts/exportJsonFile.
y lo hace ejecutable.
"
]
{ #category : #accessing }
TiddlyWiki >> addToConfigFile [
| cleaned newConfig |
@ -154,6 +163,14 @@ TiddlyWiki >> exportJSONFile [
^ MarkupFile exportAsFileOn: self jsonFile containing: rawJsonTiddlers
]
{ #category : #accessing }
TiddlyWiki >> exportJSONFileOptimized [
| exporter |
exporter := self file parent / 'scripts' / 'export' / 'exportJsonFile'.
exporter exists ifFalse: [ self class installJsonExporter].
"Ejecutar el exportador de JSON con OSSubprocess."
]
{ #category : #accessing }
TiddlyWiki >> exportJSONSubtiddlers: subtiddlersCollection [