Skip to content

Commit

Permalink
fix: Forgor
Browse files Browse the repository at this point in the history
  • Loading branch information
LichtHund committed Jul 10, 2024
1 parent 89da351 commit b7974d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/src/main/kotlin/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public suspend fun main(args: Array<String>) {
color = parsedProjectConfig.color,
projectHome = parsedProjectConfig.projectHome,
versions = parseVersions(files.filter(File::isDirectory), inputPath, repoSettings),
discord = parsedProjectConfig.discord,
),
icon = requireNotNull(files.findFile("icon.png")) {
"Found project folder without a 'project.conf' file, skipping it!"
Expand Down Expand Up @@ -246,6 +247,9 @@ private fun parseVersions(versionDirs: List<File>, parentDir: File, repoSettings
"Versions must have 1 and only 1 default page."
}
},
github = parsedVersionConfig.github,
discord = parsedVersionConfig.discord,
javadocs = parsedVersionConfig.javadocs,
)
}.also { docVersions ->
require(docVersions.count(DocVersion::recommended) == 1) {
Expand Down
6 changes: 3 additions & 3 deletions docs/src/main/kotlin/serialization/FileRepresentation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public data class VersionConfig(
public val reference: String,
public val recommended: Boolean = false,
public val stable: Boolean = true,
public val github: String?,
public val discord: String?,
public val javadocs: String?,
public val github: String? = null,
public val discord: String? = null,
public val javadocs: String? = null,
)

@Serializable
Expand Down

0 comments on commit b7974d5

Please sign in to comment.