Skip to content

Commit 37338d6

Browse files
chore: Configure Dokka and Release Action to Include Customised Styles (#113)
1 parent 2d6fc76 commit 37338d6

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/generate-docs-site.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ jobs:
3939
mkdir older/${{ env.LATEST_DOCS_VERSION }}
4040
mv images rapid-sdk scripts styles index.html navigation.html not-found-version.html version.json older/${{ env.LATEST_DOCS_VERSION }}
4141
42-
- name: Move the "older" Directory to a Temporary Workspace
43-
run: mv older ${{ runner.temp }}
42+
- name: Move the "older" and "assets" Directories to a Temporary Workspace
43+
run: mv older assets ${{ runner.temp }}
4444

4545
- name: Checkout "main" Branch
4646
run: git checkout main
4747

4848
- name: Generate New Release Reference Docs
49-
run: mvn -f code dokka:dokka -Ddokka-old-versions.location=${{ runner.temp }}/older
49+
run: mvn -f code dokka:dokka -Ddokka-old-versions.location=${{ runner.temp }}/older -Ddokka-assets.location=${{ runner.temp }}/assets
5050

5151
- name: Extract and Store Newly Generated Docs Version Number
5252
run: echo "NEW_DOCS_VERSION=$(jq -r '.version' code/target/dokka/version.json)" >> $GITHUB_ENV

code/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
<jacoco-plugin.version>0.8.12</jacoco-plugin.version>
7575
<dokka-plugin.version>1.9.20</dokka-plugin.version>
7676
<dokka-old-versions.location/> <!-- passed as a property when running dokka:dokka-->
77+
<dokka-assets.location/> <!-- passed as a property when running dokka:dokka-->
7778
<properties.maven.plugin.version>1.2.1</properties.maven.plugin.version>
7879
<maven.licence.plugin.version>4.5</maven.licence.plugin.version>
7980
<flatten.maven.plugin.version>1.6.0</flatten.maven.plugin.version>
@@ -568,6 +569,7 @@
568569
<groupId>org.jetbrains.dokka</groupId>
569570
<artifactId>dokka-maven-plugin</artifactId>
570571
<configuration>
572+
<moduleName>Rapid Java SDK</moduleName>
571573
<sourceDirectories>
572574
<dir>${project.basedir}/src/main/kotlin/com/expediagroup/sdk/rapid</dir>
573575
<dir>${project.basedir}/src/main/kotlin/com/expediagroup/sdk/domain/rapid</dir>
@@ -589,6 +591,14 @@
589591
<version>${project.version}</version>
590592
<olderVersionsDir>${dokka-old-versions.location}</olderVersionsDir>
591593
</org.jetbrains.dokka.versioning.VersioningPlugin>
594+
<org.jetbrains.dokka.base.DokkaBase>
595+
<customAssets>
596+
<asset>${dokka-assets.location}/logo-icon.svg</asset>
597+
</customAssets>
598+
<customStyleSheets>
599+
<stylesheet>${dokka-assets.location}/custom-styles.css</stylesheet>
600+
</customStyleSheets>
601+
</org.jetbrains.dokka.base.DokkaBase>
592602
</pluginsConfiguration>
593603
<suppressInheritedMembers>true</suppressInheritedMembers>
594604
</configuration>
@@ -792,6 +802,7 @@
792802
<groupId>org.jetbrains.dokka</groupId>
793803
<artifactId>dokka-maven-plugin</artifactId>
794804
<configuration>
805+
<moduleName>Rapid Java SDK</moduleName>
795806
<sourceDirectories>
796807
<dir>${project.basedir}/src/main/kotlin/com/expediagroup/sdk/rapid</dir>
797808
</sourceDirectories>
@@ -812,6 +823,14 @@
812823
<version>${project.version}</version>
813824
<olderVersionsDir>${dokka-old-versions.location}</olderVersionsDir>
814825
</org.jetbrains.dokka.versioning.VersioningPlugin>
826+
<org.jetbrains.dokka.base.DokkaBase>
827+
<customAssets>
828+
<asset>${dokka-assets.location}/logo-icon.svg</asset>
829+
</customAssets>
830+
<customStyleSheets>
831+
<stylesheet>${dokka-assets.location}/custom-styles.css</stylesheet>
832+
</customStyleSheets>
833+
</org.jetbrains.dokka.base.DokkaBase>
815834
</pluginsConfiguration>
816835
</configuration>
817836
<executions>

0 commit comments

Comments
 (0)