Skip to content

Commit

Permalink
Fix category doc gen CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostrzyciel committed May 14, 2024
1 parent 504c316 commit 0d40a1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/commands/CategoryDocGenCommand.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ object CategoryDocGenCommand extends Command:
val catRes = catM.listSubjectsWithProperty(RDF.`type`, RdfUtil.Category).next.asResource
val version = RdfUtil.getString(catRes, RdfUtil.hasVersion).get

outDir.resolve("category").toFile.mkdirs()

println("Generating profile documentation...")
val profileCollection = new ProfileCollection(packageOutDir.resolve("profiles"))
val ontologies = RdfIoUtil.loadOntologies(schemaRepoDir)
Expand Down Expand Up @@ -96,7 +98,6 @@ object CategoryDocGenCommand extends Command:
catRes
)
val targetDir = outDir.resolve("category")
targetDir.toFile.mkdirs()
Files.writeString(
targetDir.resolve("index.md"),
f"# $title\n\n$description\n\n" + catDoc.toMarkdown
Expand Down

0 comments on commit 0d40a1c

Please sign in to comment.