mirror of
https://github.com/square/okhttp.git
synced 2026-10-24 07:59:29 +03:00
Fix website publishing (#9482)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user