Skip to content

Commit

Permalink
Cat doc gen: don't add tables in README
Browse files Browse the repository at this point in the history
They won't be displayed by GitHub's MD renderer anyway.
  • Loading branch information
Ostrzyciel committed May 15, 2024
1 parent 09e8463 commit 550d762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/commands/CategoryDocGenCommand.scala
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ object CategoryDocGenCommand extends Command:
|
|""".stripMargin

val description = RdfUtil.getString(catRes, RdfUtil.dctermsDescription).get + tableSections
val description = RdfUtil.getString(catRes, RdfUtil.dctermsDescription).get
val catOpt = catTaskDocOpt.copy(
hidePropsInLevel = catTaskDocOpt.hidePropsInLevel ++ Seq((2, RdfUtil.dctermsDescription))
)
Expand All @@ -101,7 +101,7 @@ object CategoryDocGenCommand extends Command:
val targetDir = outDir.resolve("category")
Files.writeString(
targetDir.resolve("index.md"),
f"# $title\n\n$description\n\n" + catDoc.toMarkdown
f"# $title\n\n$description$tableSections\n\n" + catDoc.toMarkdown
)
DocFileUtil.copyDocs(repoDir.resolve("doc"), targetDir, Seq("index.md"))

Expand Down

0 comments on commit 550d762

Please sign in to comment.