Update redocly setup

This commit is contained in:
eikek 2024-03-10 19:53:36 +01:00
parent 5715f60e96
commit 7b53f3699f
6 changed files with 18 additions and 3 deletions

View File

@ -677,7 +677,11 @@ val restapi = project
openapiTargetLanguage := Language.Scala,
openapiPackage := Pkg("docspell.restapi.model"),
openapiSpec := (Compile / resourceDirectory).value / "docspell-openapi.yml",
openapiStaticGen := OpenApiDocGenerator.Redoc
openapiStaticGen := OpenApiDocGenerator.Redoc,
openapiRedoclyCmd := Seq("redocly-cli"),
openapiRedoclyConfig := Some(
(LocalRootProject / baseDirectory).value / "project" / "redocly.yml"
)
)
.dependsOn(common, query.jvm, notificationApi, jsonminiq, addonlib)
@ -697,7 +701,11 @@ val joexapi = project
openapiTargetLanguage := Language.Scala,
openapiPackage := Pkg("docspell.joexapi.model"),
openapiSpec := (Compile / resourceDirectory).value / "joex-openapi.yml",
openapiStaticGen := OpenApiDocGenerator.Redoc
openapiStaticGen := OpenApiDocGenerator.Redoc,
openapiRedoclyCmd := Seq("redocly-cli"),
openapiRedoclyConfig := Some(
(LocalRootProject / baseDirectory).value / "project" / "redocly.yml"
)
)
.dependsOn(common, loggingScribe, addonlib)

View File

@ -25,6 +25,7 @@
zola
yarn
nodejs
redocly-cli
];
devshellPkgs = ciPkgs ++ (with pkgs; [
jq

View File

@ -18,6 +18,8 @@ servers:
- url: /api/v1
description: Current host
security: []
paths:
/api/info/version:
get:

View File

@ -27,6 +27,8 @@ servers:
- url: /api/v1
description: Current host
security: []
paths:
/api/info/version:
get:

View File

@ -1,6 +1,6 @@
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.0")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
addSbtPlugin("com.github.eikek" % "sbt-openapi-schema" % "0.11.0")
addSbtPlugin("com.github.eikek" % "sbt-openapi-schema" % "0.13.1")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1")

2
project/redocly.yml Normal file
View File

@ -0,0 +1,2 @@
extends:
- recommended