Fix demo link layouts
This commit is contained in:
2
.github/workflows/generate-screenshots.yml
vendored
2
.github/workflows/generate-screenshots.yml
vendored
@@ -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"
|
||||
|
||||
@@ -118,14 +118,11 @@ allprojects {
|
||||
labels = ['creative-coding', 'realtime-rendering', 'opengl']
|
||||
}
|
||||
|
||||
|
||||
test {
|
||||
useJUnitPlatform {
|
||||
includeEngines 'spek2'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
task collectScreenshots {
|
||||
@@ -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) {
|
||||
@@ -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("")
|
||||
lines.add("")
|
||||
}
|
||||
readme.delete()
|
||||
readme.write(lines.join("\n"))
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 103 KiB |
Reference in New Issue
Block a user