Skip to content

Commit

Permalink
Feature/mkdocs (#138)
Browse files Browse the repository at this point in the history
* proper documentation
  • Loading branch information
JesusMcCloud authored Sep 26, 2024
1 parent 0c5d29e commit a9da516
Show file tree
Hide file tree
Showing 49 changed files with 13,415 additions and 152 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/publish-dry-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,19 @@ jobs:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.PUBLISH_SONATYPE_USER }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.PUBLISH_SONATYPE_PASSWORD }}
deploy-docs:
needs: build
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install mkdocs-material
- name: Build Dokka HTML
run: ./gradlew dokkaHtmlMultiModule
run: ./gradlew mkDocsBuild
10 changes: 7 additions & 3 deletions .github/workflows/publish-pages-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -19,15 +19,19 @@ jobs:
with:
distribution: 'temurin'
java-version: '17'
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install mkdocs-material
- name: Build Dokka HTML
run: ./gradlew dokkaHtmlMultiModule
run: ./gradlew mkDocsBuild
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload docs folder
path: './build/dokka'
path: './docs/site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
12 changes: 8 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ jobs:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.PUBLISH_SONATYPE_USER }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.PUBLISH_SONATYPE_PASSWORD }}
deploy-docs:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -39,15 +38,20 @@ jobs:
with:
distribution: 'temurin'
java-version: '17'
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install mkdocs-material
- name: Build Dokka HTML
run: ./gradlew dokkaHtmlMultiModule
run: ./gradlew mkDocsBuild
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload docs folder
path: './build/dokka'
path: './docs/site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
docs/docs/CHANGELOG.md
docs/docs/dokka/
docs/site/

*/generated
.gradle
demoapp/build
Expand Down
Loading

0 comments on commit a9da516

Please sign in to comment.