Skip to content

Commit

Permalink
Adding Javadocs to build (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthvikm authored Feb 27, 2024
1 parent 9734f45 commit 3bc4154
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Adocs and Javadocs
name: build adocs

on:
push:
Expand All @@ -9,16 +9,15 @@ on:
jobs:
adoc_build:
runs-on: ubuntu-latest
name: Build Adocs and Javadocs
name: ASCII DOC build
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get build container
id: adocbuild
uses: tonynv/asciidoctor-action@master
with:
program: "./gradlew asciidoctor javadoc"

program: "./gradlew asciidoctor"
- name: Deploy docs to ghpages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
13 changes: 13 additions & 0 deletions pi4micronaut-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ java {
targetCompatibility = JavaVersion.toVersion("17")
}

tasks.named('build').configure {
dependsOn 'javadoc'
copy {
from tasks.javadoc.destinationDir
into "src/docs/javadoc"
}
}

asciidoctor {
attributes 'stylesheet': "style.css"
baseDirFollowsSourceDir()
Expand All @@ -58,6 +66,11 @@ tasks.register('javadocJar', Jar) {
from javadoc.destinationDir
}

tasks.named('javadocJar').configure {
dependsOn 'javadoc'
}


artifacts {
archives sourcesJar, javadocJar
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ public PhotoResistorHelper(DigitalInput sensorInput, DigitalOutput sensorOutput)
photoResistorOutput.high();
this.isDark = photoResistorInput.isHigh();
}

/**
* @return current darknessValue.
*/
public int getDark() {
return darknessValue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ public class ActiveBuzzerHelper {
private static final Logger log = LoggerFactory.getLogger(ActiveBuzzerHelper.class);

private final Pwm activeBuzzer;

/**
* To check if the buzzer is active or not
*/
protected boolean actBuzzCheck;


Expand Down

0 comments on commit 3bc4154

Please sign in to comment.