-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make QuarkiverseIO fetch docs from the GH artifacts
- Loading branch information
1 parent
2502a37
commit f72f9ef
Showing
8 changed files
with
195 additions
and
96 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
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
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
29 changes: 25 additions & 4 deletions
29
src/main/java/io/quarkus/search/app/quarkiverseio/QuarkiverseIOConfig.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 |
---|---|---|
@@ -1,18 +1,39 @@ | ||
package io.quarkus.search.app.quarkiverseio; | ||
|
||
import java.net.URI; | ||
import java.nio.file.Path; | ||
import java.util.Optional; | ||
|
||
import io.smallrye.config.ConfigMapping; | ||
import io.smallrye.config.WithDefault; | ||
|
||
@ConfigMapping(prefix = "quarkiverseio") | ||
public interface QuarkiverseIOConfig { | ||
String WEB_URI_DEFAULT_STRING = "https://docs.quarkiverse.io/index/explore/index.html"; | ||
URI WEB_URI_DEFAULT = URI.create(WEB_URI_DEFAULT_STRING); | ||
|
||
@WithDefault(WEB_URI_DEFAULT_STRING) | ||
URI webUri(); | ||
Optional<Zip> zip(); | ||
|
||
Optional<GithubArtifact> githubArtifact(); | ||
|
||
@WithDefault("true") | ||
boolean enabled(); | ||
|
||
@WithDefault("https://docs.quarkiverse.io/") | ||
URI baseUri(); | ||
|
||
interface GithubArtifact { | ||
String token(); | ||
|
||
String repository(); | ||
|
||
//@WithDefault( "Publish website" ) | ||
String actionName(); | ||
|
||
//@WithDefault( "github-pages" ) | ||
String artifactName(); | ||
} | ||
|
||
interface Zip { | ||
Path path(); | ||
} | ||
|
||
} |
Oops, something went wrong.