Skip to content

Commit

Permalink
chore: publish reference docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mohnoor94 committed Sep 18, 2024
1 parent 6b6f737 commit 11ead16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/generate-reference-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ jobs:

- name: Move Latest Docs to the "older" Directory (Archiving latest live release)
run: |
mkdir -p older/${{ env.LATEST_DOCS_VERSION }}
mkdir -p older/${{ env.LATEST_DOCS_VERSION }}
mv images -- '-lodging -connectivity -java -s-d-k' scripts styles index.html navigation.html not-found-version.html version.json older/${{ env.LATEST_DOCS_VERSION }}
- name: Move the "older" and "assets" Directories to a Temporary Workspace
run: mv older assets ${{ runner.temp }}

- name: Checkout "main" Branch
- name: Checkout ${{ inputs.ref }} Branch
run: git checkout ${{ inputs.ref }}

- name: Generate New Release Reference Docs
run: |
# show all files in the current directory
pwd
ls -la
gradle -p code dokkaHtml -Ddokka-old-versions.location=${{ runner.temp }}/older -Ddokka-assets.location=${{ runner.temp }}/assets
gradle -p code dokkaHtml -Pdokka-old-versions.location=${{ runner.temp }}/older -Pdokka-assets.location=${{ runner.temp }}/assets
- name: Extract and Store Newly Generated Docs Version Number
run: echo "NEW_DOCS_VERSION=$(jq -r '.version' code/target/dokka/version.json)" >> $GITHUB_ENV
Expand Down
6 changes: 3 additions & 3 deletions code/tasks-gradle/dokka.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ dokkaHtml {
String versioningConfiguration = """
{
"version": "${project.version}",
"olderVersionsDir": "${project.properties["dokka-old-versions-dir"]}",
"olderVersionsDir": "${project.properties["dokka-old-versions.location"]}",
"renderVersionsNavigationOnAllPages": true
}
"""

String dokkaBaseConfiguration = """
{
"customAssets": ["${file("assets/logo-icon.svg")}"],
"customStyleSheets": ["${file("assets/custom-styles.css")}"]
"customAssets": ["${file("${project.properties["dokka-assets.location"]}/logo-icon.svg")}"],
"customStyleSheets": ["${file("${project.properties["dokka-assets.location"]}/custom-styles.css")}"]
}
"""

Expand Down

0 comments on commit 11ead16

Please sign in to comment.