From 0d40a1cfe96018d17c87cc462c6887d227f5e7f5 Mon Sep 17 00:00:00 2001 From: Ostrzyciel Date: Tue, 14 May 2024 17:25:09 +0200 Subject: [PATCH] Fix category doc gen CI --- src/main/scala/commands/CategoryDocGenCommand.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/scala/commands/CategoryDocGenCommand.scala b/src/main/scala/commands/CategoryDocGenCommand.scala index b84cdc4..40c4ce5 100644 --- a/src/main/scala/commands/CategoryDocGenCommand.scala +++ b/src/main/scala/commands/CategoryDocGenCommand.scala @@ -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) @@ -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