Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
val okhttpDokka: String? by project
val dokkaBuild = okhttpDokka?.toBoolean() == true

if (dokkaBuild) {
if (okhttpDokka?.toBoolean() == true) {
apply(plugin = "org.jetbrains.dokka")

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ plugins {
id("binary-compatibility-validator")
}

val okhttpDokka: String? by project
if (okhttpDokka?.toBoolean() == true) {
apply(plugin = "org.jetbrains.dokka")
}

configure<MavenPublishBaseExtension> {
publishToMavenCentral(automaticRelease = true)
signAllPublications()
Expand Down
8 changes: 4 additions & 4 deletions deploy_website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ git clone $REPO $DIR
cd $DIR

# Generate the API docs
./gradlew dokkaHtmlMultiModule

mv ./build/dokka/htmlMultiModule docs/5.x
./gradlew dokkaGeneratePublicationHtml -PokhttpDokka=true
mv ./build/dokka/html docs/5.x

# Copy in special files that GitHub wants in the project root.
cat README.md | grep -v 'project website' > docs/index.md
Expand All @@ -37,10 +36,11 @@ source venv/bin/activate
pip install mkdocs-material mkdocs-redirects
mkdocs gh-deploy

# Restore Javadocs from 1.x, 2.x, and 3.x.
# Restore Javadocs from 1.x, 2.x, 3.x, and 4.x.
git checkout gh-pages
git cherry-pick bb229b9dcc9a21a73edbf8d936bea88f52e0a3ff
git cherry-pick c695732f1d4aea103b826876c077fbfea630e244
git cherry-pick e2c9cb1d012882bb1182a45ab7265d94c40d5532
git push --set-upstream origin gh-pages

# Delete our temp folder
Expand Down
Loading