Skip to content

Commit 73e90ec

Browse files
authored
fix(docs): Remove '-docs' suffix from smithy-kotlin docs (#421)
1 parent 37a23c4 commit 73e90ec

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.github/workflows/api-docs.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -72,8 +72,8 @@ jobs:
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: |
@@ -87,7 +87,7 @@ jobs:
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

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ mockkVersion=1.12.0
3939
# logging - JVM
4040
slf4jVersion=1.7.30
4141

42-
# dokka config
42+
# dokka config (values specified at build-time as needed)
4343
smithyKotlinPackageListUrl=
44-
smithyKotlinDocBaseUrl=https://docs.aws.amazon.com/sdk-for-kotlin/latest/reference/smithy-kotlin-docs
44+
smithyKotlinDocBaseUrl=

0 commit comments

Comments
 (0)