Skip to content

Commit

Permalink
Fix demo link layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinRNDR committed Apr 27, 2020
1 parent 0de59cf commit 8c8fe29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
export GALLIUM_DRIVER=swr
xvfb-run glxinfo
- name: Collect screenshots
run: ./gradlew collectScreenshots
run: xvfb-run ./gradlew collectScreenshots
- name: Prepare media branch
run: |
git config --global user.email "actions@openrndr.org"
Expand Down
9 changes: 4 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,11 @@ allprojects {
labels = ['creative-coding', 'realtime-rendering', 'opengl']
}


test {
useJUnitPlatform {
includeEngines 'spek2'
}
}


}

task collectScreenshots {
Expand Down Expand Up @@ -157,7 +154,6 @@ task collectScreenshots {
jvmArgs += "-DtakeScreenshot=true"
jvmArgs += "-DscreenshotPath=${sub.name}/images/${className}.png"
jvmArgs += "-Dorg.openrndr.exceptions=JVM"
executable = "./build-tools/xvfb-java.sh"
}
runDemos.add(klassName)
} catch (e) {
Expand All @@ -178,8 +174,11 @@ task collectScreenshots {
lines.add("<!-- __demos__ -->")
lines.add("## Demos")
for (demo in runDemos) {
lines.add("[${demo}](src/demo/kotlin/${demo}.kt)")
lines.add("### ${demo[0..-3]}")
lines.add("[source code](src/demo/kotlin/${demo[0..-3]}.kt)")
lines.add("")
lines.add("![${demo}](https://raw.githubusercontent.com/openrndr/orx/media/${sub.name}/images/${demo}.png)")
lines.add("")
}
readme.delete()
readme.write(lines.join("\n"))
Expand Down
Binary file removed orx-shade-styles/images/DemoRadialGradient01Kt.png
Binary file not shown.

0 comments on commit 8c8fe29

Please sign in to comment.