mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 18:08:25 +00:00
Update redocly setup
This commit is contained in:
12
build.sbt
12
build.sbt
@ -677,7 +677,11 @@ val restapi = project
|
|||||||
openapiTargetLanguage := Language.Scala,
|
openapiTargetLanguage := Language.Scala,
|
||||||
openapiPackage := Pkg("docspell.restapi.model"),
|
openapiPackage := Pkg("docspell.restapi.model"),
|
||||||
openapiSpec := (Compile / resourceDirectory).value / "docspell-openapi.yml",
|
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)
|
.dependsOn(common, query.jvm, notificationApi, jsonminiq, addonlib)
|
||||||
|
|
||||||
@ -697,7 +701,11 @@ val joexapi = project
|
|||||||
openapiTargetLanguage := Language.Scala,
|
openapiTargetLanguage := Language.Scala,
|
||||||
openapiPackage := Pkg("docspell.joexapi.model"),
|
openapiPackage := Pkg("docspell.joexapi.model"),
|
||||||
openapiSpec := (Compile / resourceDirectory).value / "joex-openapi.yml",
|
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)
|
.dependsOn(common, loggingScribe, addonlib)
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
zola
|
zola
|
||||||
yarn
|
yarn
|
||||||
nodejs
|
nodejs
|
||||||
|
redocly-cli
|
||||||
];
|
];
|
||||||
devshellPkgs = ciPkgs ++ (with pkgs; [
|
devshellPkgs = ciPkgs ++ (with pkgs; [
|
||||||
jq
|
jq
|
||||||
|
@ -18,6 +18,8 @@ servers:
|
|||||||
- url: /api/v1
|
- url: /api/v1
|
||||||
description: Current host
|
description: Current host
|
||||||
|
|
||||||
|
security: []
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
/api/info/version:
|
/api/info/version:
|
||||||
get:
|
get:
|
||||||
|
@ -27,6 +27,8 @@ servers:
|
|||||||
- url: /api/v1
|
- url: /api/v1
|
||||||
description: Current host
|
description: Current host
|
||||||
|
|
||||||
|
security: []
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
/api/info/version:
|
/api/info/version:
|
||||||
get:
|
get:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.0")
|
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.0")
|
||||||
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.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-pgp" % "2.2.1")
|
||||||
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")
|
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")
|
||||||
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1")
|
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1")
|
||||||
|
2
project/redocly.yml
Normal file
2
project/redocly.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
extends:
|
||||||
|
- recommended
|
Reference in New Issue
Block a user