Skip to content

Commit

Permalink
Build docs + javadoc into one folder
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderploegsma committed Jan 23, 2024
1 parent 4cc529d commit aa5024a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ jobs:
with:
java-version: "21"
distribution: "temurin"
- name: Build Javadoc
run: ./gradlew --no-daemon javadoc
- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
with:
python-version: "3.12"
- name: Build documentation
run: ./gradlew --no-daemon clean mkdocsBuild javadoc
- name: Upload artifact
uses: actions/upload-pages-artifact@0252fc4ba7626f0298f0cf00902a25c6afc77fa8
with:
path: build/docs/javadoc
path: build/docs

deploy:
name: Deploy to GitHub Pages
Expand Down
9 changes: 7 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ python {
}

mkdocs {
sourcesDir = "."
buildDir = "build/docs/mkdocs"
sourcesDir = "src/doc"
buildDir = file("build/docs")
publish.docPath = null
}

javadoc {
mustRunAfter(mkdocsBuild)
destinationDir = file("build/docs/api")
}
1 change: 0 additions & 1 deletion docs/contributing.md

This file was deleted.

1 change: 1 addition & 0 deletions src/doc/docs/contributing.md
File renamed without changes.
3 changes: 2 additions & 1 deletion mkdocs.yml → src/doc/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ site_url: https://exercism.github.io/java-analyzer

repo_name: java-analyzer
repo_url: https://github.com/exercism/java-analyzer
edit_uri: blob/main/docs/
edit_uri: blob/main/docs/src/

copyright: 'Copyright © 2024 Exercism'

Expand Down Expand Up @@ -40,3 +40,4 @@ markdown_extensions:
nav:
- Home: index.md
- contributing.md
- API: /java-analyzer/api

0 comments on commit aa5024a

Please sign in to comment.