class: ProjectDefinition
authorClaus Gittinger <cg@exept.de>
Tue, 23 Sep 2014 22:39:24 +0200
changeset 16854 5a21f02f64fd
parent 16853 e3e062d68503
child 16855 c088880a590b
class: ProjectDefinition added: #autoDocClassNamePatterns #generate_autoDocFiles unfinished
ProjectDefinition.st
--- a/ProjectDefinition.st	Tue Sep 23 22:24:21 2014 +0200
+++ b/ProjectDefinition.st	Tue Sep 23 22:39:24 2014 +0200
@@ -2479,6 +2479,7 @@
     "Created: / 18-08-2006 / 12:51:38 / cg"
 ! !
 
+
 !ProjectDefinition class methodsFor:'description - project information'!
 
 applicationAdditionalIconFileNames
@@ -2927,6 +2928,30 @@
     "Modified: / 17-08-2006 / 19:46:29 / cg"
 ! !
 
+!ProjectDefinition class methodsFor:'doc generation'!
+
+autoDocClassNamePatterns
+    "lists patterns for class names for which autodoc html-documentation files
+     are to be built.
+     Return #( '*' ) to get doc files for all classes"
+
+    ^ #(
+        '*'
+    )
+!
+
+generate_autoDocFiles
+    "generate html documentation for all classes matching the autoDocNamePatterns.
+     Use this, if you don't want to deliver source code, but still need some documentation
+     to be deployed."
+
+    self classes do:[:eachClass |
+        (self autoDocClassNamePatterns contains:[:pattern | pattern match:eachClass name]) ifTrue:[
+            self generateClassDocumentationFor:eachClass.
+        ]
+    ].
+! !
+
 !ProjectDefinition class methodsFor:'file generation'!
 
 apspecFilename
@@ -7572,11 +7597,11 @@
 !ProjectDefinition class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.514 2014-08-01 16:19:06 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.515 2014-09-23 20:39:24 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.514 2014-08-01 16:19:06 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.515 2014-09-23 20:39:24 cg Exp $'
 !
 
 version_SVN