diff --git a/src/MiniDocs/AcroReport.class.st b/src/MiniDocs/AcroReport.class.st new file mode 100644 index 0000000..683e6d1 --- /dev/null +++ b/src/MiniDocs/AcroReport.class.st @@ -0,0 +1,15 @@ +Class { + #name : #AcroReport, + #superclass : #Object, + #category : #MiniDocs +} + +{ #category : #accessing } +AcroReport class >> project: projectName [ + | jsonReport | + jsonReport := (GtSubprocessWithInMemoryOutput new + shellCommand: 'task project:', projectName , ' export'; + runAndWait; + stdout). + ^ STONJSON fromString: jsonReport +] diff --git a/src/MiniDocs/LeTextCoderSnippetElement.extension.st b/src/MiniDocs/LeTextCoderSnippetElement.extension.st index eb6f4ca..4de9413 100644 --- a/src/MiniDocs/LeTextCoderSnippetElement.extension.st +++ b/src/MiniDocs/LeTextCoderSnippetElement.extension.st @@ -15,6 +15,11 @@ LeTextCoderSnippetElement >> asLePage [ ^ newPage ] +{ #category : #'*MiniDocs' } +LeTextCoderSnippetElement >> asSnippetViewModel [ + ^ self snippetContent +] + { #category : #'*MiniDocs' } LeTextCoderSnippetElement >> moveToPageTitled: pageName [ | db origin destination |