-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #459 from ppalaga/240412-quantora
Use Quarkus Antora for testing and live-editting of the docs
- Loading branch information
Showing
7 changed files
with
166 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
= Antora documentation site for Quarkus LangChain4j | ||
|
||
To edit the documentation with live-reload, start Quarkus in dev mode | ||
|
||
[source,shell] | ||
---- | ||
$ cd docs | ||
$ mvn quarkus:dev | ||
---- | ||
|
||
Once the application has started, hit `w` to open the freshly generated site in browser. | ||
|
||
See https://docs.quarkiverse.io/quarkus-antora/dev/index.html[Quarkus Antora] documentation for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
:project-version: 0.10.4 | ||
:langchain4j-version: 0.29.1 | ||
:examples-dir: ./../examples/ | ||
:examples-dir: ./../examples/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
# Just there to satisfy mandatory properties | ||
quarkus.langchain4j.redis.dimension=180 | ||
quarkus.langchain4j.chat-model.provider=openai | ||
quarkus.langchain4j.chroma.url=dummy | ||
quarkus.langchain4j.embedding-model.provider=openai | ||
quarkus.langchain4j.infinispan.dimension=180 | ||
quarkus.langchain4j.openai.api-key=dummy-key | ||
quarkus.langchain4j.pgvector.dimension=180 | ||
quarkus.langchain4j.pinecone.environment=abc | ||
quarkus.langchain4j.pinecone.index-name=abc | ||
quarkus.langchain4j.pinecone.project-id=abc | ||
quarkus.langchain4j.pinecone.api-key=abc | ||
quarkus.langchain4j.chat-model.provider=openai | ||
quarkus.langchain4j.embedding-model.provider=openai | ||
quarkus.langchain4j.redis.dimension=180 | ||
quarkus.redis.hosts=redis://localhost:6379 | ||
|
||
|
||
# We do not need the dev services when testing the Antora site | ||
quarkus.devservices.enabled = false |
27 changes: 27 additions & 0 deletions
27
docs/src/test/java/io/quarkiverse/langchain4j/docs/it/AntoraTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package io.quarkiverse.langchain4j.docs.it; | ||
|
||
import java.io.IOException; | ||
import java.util.concurrent.TimeoutException; | ||
|
||
import org.hamcrest.CoreMatchers; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import io.quarkus.test.junit.QuarkusTest; | ||
import io.restassured.RestAssured; | ||
import io.restassured.http.ContentType; | ||
|
||
@QuarkusTest | ||
public class AntoraTest { | ||
|
||
@Test | ||
public void antoraSite() throws TimeoutException, IOException, InterruptedException { | ||
RestAssured | ||
.given() | ||
.contentType(ContentType.HTML) | ||
.get("/quarkus-langchain4j/dev/index.html") | ||
.then() | ||
.statusCode(200) | ||
.body(CoreMatchers.containsString("<h1 class=\"page\">Quarkus LangChain4j</h1>")); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters