Skip to content

Commit

Permalink
Merge pull request #7 from rmannibucau/rmannibucau/swagger-minikube
Browse files Browse the repository at this point in the history
[doc] add minikube server to swagger ui doc page
  • Loading branch information
fpapon committed Apr 3, 2024
2 parents d11649f + 40f8a0c commit c0b54f7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app-deployment/bundlebee/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@
"service.component": "backend",
"service.version": "{{project.version}}",
"service.image.name": "yupiik/fusion/examples/backend",
"service.image.version": "{{project.version}}"
"service.image.version": "{{project.version}}",
"service.node.port": "{{app.node.port:-32340}}"
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion app-documentation/minisite/content/swagger-ui.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ if (!document.querySelector('head > link#swaggerUi')) {
// reset code background too since minisite theme override breaks swagger-ui theme
const style = document.createElement('style');
style.innerHTML = 'code {background: inherit;}';
style.innerHTML = `
code { background: inherit; }
h2.title { visibility: hidden; font-size: 0 !important; height: min-content; }
h2.title > span { visibility: visible; display: flex; }
`;
document.head.appendChild(style);
}
SwaggerUIBundle({
Expand Down
6 changes: 5 additions & 1 deletion app-documentation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,12 @@
<configuration>
<input>${project.parent.basedir}/app-backend/target/classes/META-INF/fusion/jsonrpc/openrpc.json</input>
<output>${project.basedir}/minisite/content/_partials/generated/openapi.json</output>
<info.title>Fusion Backend</info.title>
<info.title>Fusion App Backend</info.title>
<info.version>${project.version}</info.version>
<servers.localhost.url>http://localhost:8080/jsonrpc</servers.localhost.url>
<servers.localhost.description>Local</servers.localhost.description>
<servers.minikube.url>http://192.168.49.2:32340/jsonrpc</servers.minikube.url>
<servers.minikube.description>Minikube</servers.minikube.description>
</configuration>
</preAction>
<preAction>
Expand Down

0 comments on commit c0b54f7

Please sign in to comment.