@@ -50,13 +50,13 @@ jobs:
5050 printf "\norg.gradle.jvmargs=-Xmx6g -XX:MaxPermSize=6g" >> gradle.properties
5151
5252 ./gradlew dokkaHtmlMultiModule
53- mkdir smithy-kotlin-docs
54- mv build/dokka/htmlMultiModule/* smithy-kotlin-docs /
53+ mkdir smithy-kotlin
54+ mv build/dokka/htmlMultiModule/* smithy-kotlin/
5555 - name : Upload Smithy-Kotlin Doc Artifact
5656 uses : actions/upload-artifact@v2
5757 with :
58- name : smithy-kotlin-docs
59- path : smithy-kotlin/smithy-kotlin-docs
58+ name : smithy-kotlin
59+ path : smithy-kotlin/smithy-kotlin
6060
6161 api-doc-gen-parallel :
6262 runs-on : ubuntu-latest
7272 - name : Download smithy-kotlin artifacts
7373 uses : actions/download-artifact@v2
7474 with :
75- name : smithy-kotlin-docs
76- path : smithy-kotlin-docs
75+ name : smithy-kotlin
76+ path : smithy-kotlin
7777 - name : Generate API Docs
7878 id : gen-docs
7979 run : |
8787 shopt -s nullglob
8888
8989 # configure path to smithy-kotlin's package-list
90- smithy_kotlin_package_list_path="$(pwd)/smithy-kotlin-docs /package-list"
90+ smithy_kotlin_package_list_path="$(pwd)/smithy-kotlin/package-list"
9191
9292 # Track if docs were generated in this segment of job run.
9393 docs_generated=false
@@ -111,7 +111,11 @@ jobs:
111111 n=0
112112 until [ "$n" -ge 5 ]
113113 do
114- ./gradlew --no-parallel -PdokkaOutSubDir=$SERVICE_NAME -PsmithyKotlinPackageListUrl=file://$smithy_kotlin_package_list_path dokkaHtmlMultiModule && break
114+ ./gradlew --no-parallel -PdokkaOutSubDir=$SERVICE_NAME \
115+ -PsmithyKotlinDocBaseUrl=https://docs.aws.amazon.com/sdk-for-kotlin/latest/reference/smithy-kotlin \
116+ -PsmithyKotlinPackageListUrl=file://$smithy_kotlin_package_list_path \
117+ dokkaHtmlMultiModule && break
118+
115119 n=$((n+1))
116120 sleep 15
117121 done
@@ -159,7 +163,7 @@ jobs:
159163 done
160164 - name : Add smithy-kotlin docs
161165 run : |
162- mv smithy-kotlin-docs target/
166+ mv smithy-kotlin target/
163167 - name : Generate Top Level Index
164168 run : |
165169 INDEX_FILE=target/index.html
@@ -194,7 +198,7 @@ jobs:
194198 # Generate list of services
195199 for aws_service_dir in target/*
196200 do
197- if [[ "$aws_service_dir" != "target/index.html" && "$aws_service_dir" != "target/smithy-kotlin-docs " ]]; then # no self reference
201+ if [[ "$aws_service_dir" != "target/index.html" && "$aws_service_dir" != "target/smithy-kotlin" ]]; then # no self reference
198202 SERVICE_NAME=${aws_service_dir##*/} # Extract the filename from the path
199203
200204 echo " <div class='table-row'>" >> $INDEX_FILE
0 commit comments