Skip to content

Commit dcff2bd

Browse files
committed
Moved documentation to 00-docs / integrated DevCompanyCamundalaHelper.
1 parent e3260d6 commit dcff2bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+57
-58
lines changed

00-documentation/README.md renamed to 00-docs/README.md

Lines changed: 1 addition & 1 deletion

04-helper/src/main/scala/camundala/helper/dev/DevCompanyCamundalaRunner.scala renamed to 04-helper/src/main/scala/camundala/helper/dev/DevCompanyCamundalaHelper.scala

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
package camundala.helper.dev
22

3+
import camundala.api.ApiConfig
34
import camundala.helper.dev.publish.PublishHelper
45
import camundala.helper.dev.publish.PublishHelper.*
5-
import camundala.helper.util.{DevConfig, Helpers}
6+
import camundala.helper.util.{DevConfig, Helpers, PublishConfig}
67

78
import scala.util.{Failure, Success, Try}
89

910
// dev-company/company-camundala/helper.scala
10-
case class DevCompanyCamundalaRunner(
11-
devConfig: DevConfig
12-
) extends Helpers:
11+
trait DevCompanyCamundalaHelper extends Helpers:
12+
def apiConfig: ApiConfig
13+
def devConfig: DevConfig
14+
def publishConfig: Option[PublishConfig]
1315

14-
def run(command: String, arguments: String*): Unit =
16+
def runForCompany(command: String, arguments: String*): Unit =
1517
val args = arguments.toSeq
1618
println(s"Running command: $command with args: $args")
1719
Try(Command.valueOf(command)) match
@@ -21,7 +23,7 @@ case class DevCompanyCamundalaRunner(
2123
println(s"Command not found: $command")
2224
println("Available commands: " + Command.values.mkString(", "))
2325
end match
24-
end run
26+
end runForCompany
2527

2628
private def runCommand(command: Command, args: Seq[String]): Unit =
2729
command match
@@ -30,14 +32,11 @@ case class DevCompanyCamundalaRunner(
3032
case Command.publish =>
3133
println("Usage: publish <version>")
3234
case Command.prepareDocs =>
33-
// CompanyDocCreator.prepareDocs()
35+
// DocCreator.prepareDocs()
3436
case Command.releaseDocs =>
3537
// CompanyDocCreator.releaseDocs()
36-
case other =>
37-
println(s"Command not found: $other")
38-
println("Available commands: publish, prepareDocs, releaseDocs")
3938

40-
enum Command:
39+
private enum Command:
4140
case publish, prepareDocs, releaseDocs
4241

4342
private def publish(newVersion: String): Unit =
@@ -56,4 +55,4 @@ case class DevCompanyCamundalaRunner(
5655
end if
5756
end publish
5857

59-
end DevCompanyCamundalaRunner
58+
end DevCompanyCamundalaHelper

04-helper/src/main/scala/camundala/helper/dev/DevCompanyRunner.scala renamed to 04-helper/src/main/scala/camundala/helper/dev/DevCompanyHelper.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import camundala.helper.util.{DevConfig, RepoConfig}
66
import scala.util.{Failure, Success, Try}
77

88
// dev-company/helperCompany.scala
9-
object DevCompanyRunner:
9+
object DevCompanyHelper:
1010

1111
def run(command: String, arguments: String*): Unit =
1212
val args = arguments.toSeq
@@ -49,4 +49,4 @@ object DevCompanyRunner:
4949

5050
private lazy val companyName = os.pwd.last.replace("dev-", "").toLowerCase
5151

52-
end DevCompanyRunner
52+
end DevCompanyHelper

04-helper/src/main/scala/camundala/helper/dev/DevHelper.scala

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ trait DevHelper:
3434
private def runCommand(command: Command, args: Seq[String]): Unit =
3535
command match
3636
case Command.update =>
37-
update
37+
update()
3838
// start code generation
3939
case Command.process =>
4040
args match
@@ -136,11 +136,11 @@ trait DevHelper:
136136
println(s"Example: $command myProcess My$command 1")
137137
end printBadActivity
138138

139-
enum Command:
139+
private enum Command:
140140
case update, process, customTask, serviceTask, userTask, decision, signalEvent, messageEvent,
141141
timerEvent, publish, deploy, dockerUp, dockerStop, dockerDown
142142

143-
def update: Unit =
143+
def update(): Unit =
144144
println(s"Update Project: ${devConfig.projectName}")
145145
println(s" - with Subprojects: ${devConfig.subProjects}")
146146
SetupGenerator().generate
@@ -154,50 +154,50 @@ trait DevHelper:
154154
))
155155
end createProcess
156156

157-
def createCustomTask(processName: String, bpmnName: String, version: Option[Int]): Unit =
157+
private def createCustomTask(processName: String, bpmnName: String, version: Option[Int]): Unit =
158158
SetupGenerator().createProcessElement(SetupElement(
159159
"CustomTask",
160160
processName.asProcessName,
161161
bpmnName.asElemName,
162162
version
163163
))
164164

165-
def createServiceTask(processName: String, bpmnName: String, version: Option[Int]): Unit =
165+
private def createServiceTask(processName: String, bpmnName: String, version: Option[Int]): Unit =
166166
SetupGenerator().createProcessElement(SetupElement(
167167
"ServiceTask",
168168
processName.asProcessName,
169169
bpmnName.asElemName,
170170
version
171171
))
172172

173-
def createUserTask(processName: String, bpmnName: String, version: Option[Int]): Unit =
173+
private def createUserTask(processName: String, bpmnName: String, version: Option[Int]): Unit =
174174
SetupGenerator().createUserTask(
175175
SetupElement("UserTask", processName.asProcessName, bpmnName.asElemName, version)
176176
)
177177

178-
def createDecision(processName: String, bpmnName: String, version: Option[Int]): Unit =
178+
private def createDecision(processName: String, bpmnName: String, version: Option[Int]): Unit =
179179
SetupGenerator().createDecision(
180180
SetupElement("Decision", processName.asProcessName, bpmnName.asElemName, version)
181181
)
182182

183-
def createSignalEvent(processName: String, bpmnName: String, version: Option[Int]): Unit =
183+
private def createSignalEvent(processName: String, bpmnName: String, version: Option[Int]): Unit =
184184
SetupGenerator().createEvent(SetupElement(
185185
"Signal",
186186
processName.asProcessName,
187187
bpmnName.asElemName,
188188
version
189189
))
190190

191-
def createMessageEvent(processName: String, bpmnName: String, version: Option[Int]): Unit =
191+
private def createMessageEvent(processName: String, bpmnName: String, version: Option[Int]): Unit =
192192
SetupGenerator().createEvent(SetupElement(
193193
"Message",
194194
processName.asProcessName,
195195
bpmnName.asElemName,
196196
version
197197
))
198198

199-
def createTimerEvent(processName: String, bpmnName: String, version: Option[Int])(using
200-
config: DevConfig
199+
private def createTimerEvent(processName: String, bpmnName: String, version: Option[Int])(using
200+
config: DevConfig
201201
): Unit =
202202
SetupGenerator().createEvent(SetupElement(
203203
"Timer",
@@ -207,9 +207,9 @@ trait DevHelper:
207207
))
208208

209209
extension (name: String)
210-
def asProcessName: String =
210+
private def asProcessName: String =
211211
name.head.toLower + name.tail
212-
def asElemName: String =
212+
private def asElemName: String =
213213
name.head.toUpper + name.tail
214214
end extension
215215
end DevHelper

05-examples/myCompany/src/docs/devStatistics.md

Lines changed: 7 additions & 7 deletions

README.md

Lines changed: 2 additions & 2 deletions

build.sbt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ lazy val root = project
2020
sourcesInBase := false
2121
)
2222
.aggregate(
23-
documentation,
23+
docs,
2424
domain,
2525
bpmn,
2626
api,
@@ -41,10 +41,10 @@ lazy val root = project
4141
)
4242

4343
// general independent
44-
lazy val documentation =
45-
(project in file("./00-documentation"))
44+
lazy val docs =
45+
(project in file("./00-docs"))
4646
.configure(preventPublication)
47-
.settings(projectSettings("documentation"))
47+
.settings(projectSettings("docs"))
4848
.settings(laikaSettings)
4949
.settings(mdocSettings)
5050
.enablePlugins(LaikaPlugin, MdocPlugin)
@@ -388,7 +388,7 @@ lazy val exampleDemosC7 = project
388388
)
389389
.dependsOn(bpmn, exampleDemosBpmn, camunda)
390390

391-
// start company documentation example
391+
// start company docs example
392392
import com.typesafe.config.ConfigFactory
393393

394394
import scala.jdk.CollectionConverters.*

docs/bpmnDsl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>BPMN DSL</title>
1010

1111

12-
<meta name="description" content="camundala-documentation"/>
12+
<meta name="description" content="camundala-docs"/>
1313

1414

1515

docs/functionalityDsls/apiDoc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>API Documentation</title>
1010

1111

12-
<meta name="description" content="camundala-documentation"/>
12+
<meta name="description" content="camundala-docs"/>
1313

1414

1515

docs/functionalityDsls/dmnTester.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>DMN Tester</title>
1010

1111

12-
<meta name="description" content="camundala-documentation"/>
12+
<meta name="description" content="camundala-docs"/>
1313

1414

1515

docs/functionalityDsls/simulation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>Simulations</title>
1010

1111

12-
<meta name="description" content="camundala-documentation"/>
12+
<meta name="description" content="camundala-docs"/>
1313

1414

1515

docs/functionalityDsls/worker.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>Workers</title>
1010

1111

12-
<meta name="description" content="camundala-documentation"/>
12+
<meta name="description" content="camundala-docs"/>
1313

1414

1515

docs/generalConcerns.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>General Concerns</title>
1010

1111

12-
<meta name="description" content="camundala-documentation"/>
12+
<meta name="description" content="camundala-docs"/>
1313

1414

1515

docs/helper/createProject.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>Create Project</title>
1010

1111

12-
<meta name="description" content="camundala-documentation"/>
12+
<meta name="description" content="camundala-docs"/>
1313

1414

1515

docs/helper/development.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>Development</title>
1010

1111

12-
<meta name="description" content="camundala-documentation"/>
12+
<meta name="description" content="camundala-docs"/>
1313

1414

1515

docs/helper/initCompany.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>Init Company</title>
1010

1111

12-
<meta name="description" content="camundala-documentation"/>
12+
<meta name="description" content="camundala-docs"/>
1313

1414

1515

docs/helper/projectDev.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>Project Development</title>
1010

1111

12-
<meta name="description" content="camundala-documentation"/>
12+
<meta name="description" content="camundala-docs"/>
1313

1414

1515

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>Intro</title>
1010

1111

12-
<meta name="description" content="camundala-documentation"/>
12+
<meta name="description" content="camundala-docs"/>
1313

1414

1515

docs/projectSetup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>Project Setup</title>
1010

1111

12-
<meta name="description" content="camundala-documentation"/>
12+
<meta name="description" content="camundala-docs"/>
1313

1414

1515

docs/specification.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>Process & Domain Specification</title>
1010

1111

12-
<meta name="description" content="camundala-documentation"/>
12+
<meta name="description" content="camundala-docs"/>
1313

1414

1515

0 commit comments

Comments
 (0)