diff --git a/docs/modules/ROOT/pages/client.adoc b/docs/modules/ROOT/pages/client.adoc index 00671ab6..95ad693f 100644 --- a/docs/modules/ROOT/pages/client.adoc +++ b/docs/modules/ROOT/pages/client.adoc @@ -1,4 +1,6 @@ = Quarkus - OpenAPI Generator - Client + +include::./includes/attributes.adoc[] :extension-status: preview This extension is for REST code generation for client side only. If you're looking for code generation for the server side, please take a look at the xref:server.adoc[Quarkus OpenAPI Generator Server Extension]. diff --git a/docs/modules/ROOT/pages/includes/attributes.adoc b/docs/modules/ROOT/pages/includes/attributes.adoc new file mode 100644 index 00000000..0cc5ade9 --- /dev/null +++ b/docs/modules/ROOT/pages/includes/attributes.adoc @@ -0,0 +1,3 @@ +:project-version: 2.4.5 + +:examples-dir: ./../examples/ diff --git a/docs/modules/ROOT/pages/index.adoc b/docs/modules/ROOT/pages/index.adoc index 2350cffa..5849d4fe 100644 --- a/docs/modules/ROOT/pages/index.adoc +++ b/docs/modules/ROOT/pages/index.adoc @@ -1,4 +1,6 @@ = Quarkus - OpenAPI Generator + +include::./includes/attributes.adoc[] :extension-status: preview This a multipurpose Quarkus' extension for generation of https://quarkus.io/guides/rest-client[Rest Clients] and xref:server.adoc[Server stubs] based on OpenAPI specification files. @@ -14,4 +16,4 @@ WARNING: Check versions 1.x.x if you're still using Quarkus 2. But be aware that This extension is based on the https://openapi-generator.tech/[OpenAPI Generator Tool]. Please consider donation to help them maintain the project: https://opencollective.com/openapi_generator/donate -include::includes/want-to-contribute.adoc[] \ No newline at end of file +include::includes/want-to-contribute.adoc[] diff --git a/docs/modules/ROOT/pages/server.adoc b/docs/modules/ROOT/pages/server.adoc index a8ba44f4..33d67a5b 100644 --- a/docs/modules/ROOT/pages/server.adoc +++ b/docs/modules/ROOT/pages/server.adoc @@ -1,4 +1,7 @@ = Quarkus - OpenAPI Generator - Server + +include::./includes/attributes.adoc[] + :extension-status: preview Quarkus' extension for generation of server Stubs based on OpenAPI specification files. @@ -12,4 +15,4 @@ include::includes/want-to-contribute.adoc[] [[getting-started]] == Getting Started -include::./includes/server-getting-started.adoc[leveloffset=+1, opts=optional] \ No newline at end of file +include::./includes/server-getting-started.adoc[leveloffset=+1, opts=optional] diff --git a/docs/pom.xml b/docs/pom.xml index 3926c9e8..bc3f73da 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -56,6 +56,11 @@ quarkus-openapi-generator.adoc false + + ${project.basedir}/templates/includes + attributes.adoc + true + diff --git a/docs/templates/includes/attributes.adoc b/docs/templates/includes/attributes.adoc new file mode 100644 index 00000000..3c30ad62 --- /dev/null +++ b/docs/templates/includes/attributes.adoc @@ -0,0 +1,3 @@ +:project-version: ${release.current-version} + +:examples-dir: ./../examples/