Skip to content

Modernize developer guide demos and snippets#5324

Open
shai-almog wants to merge 43 commits into
masterfrom
codex/modernize-developer-guide-demos
Open

Modernize developer guide demos and snippets#5324
shai-almog wants to merge 43 commits into
masterfrom
codex/modernize-developer-guide-demos

Conversation

@shai-almog

@shai-almog shai-almog commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Modernize docs/demos to Java 17 and the 8.0-SNAPSHOT Codename One plugin/runtime.
  • Move developer-guide source blocks to include-backed files under docs/demos, with compiled examples in real src/main/java sources and guide-only snippet bundles stored as .java.txt so they are not mistaken for Java compilation units.
  • Add validation so future guide source blocks must be include-backed from ../demos/, and guide-only snippet bundles cannot regress to .java files.
  • Generalize screenshot validation from animation-only to guide screenshot manifests, refresh current generated screenshots, and wire the checks into the developer-guide workflow.
  • Add an Android source compile check for platform-specific guide demo sources.

Why

The developer guide demo project was still on Java 8 / Codename One 7.x and only covered a small fraction of the guide. This made snippets and screenshots drift from the current project templates. The guide now has demo-backed source includes, real compiled sources for executable guide snippets, and CI paths that compile/run the JavaSE demos, compile Android guide sources, and validate generated screenshots.

Validation

  • python3 scripts/developer-guide/validate-guide-snippets.py
  • scripts/developer-guide/compile-android-demo-sources.sh
  • mvn -B -ntp -Dgenerate-gui-sources-done=true -Dcodename1.platform=javase -f docs/demos/pom.xml test
  • git diff --check

Earlier local validation also covered:

  • asciidoctor --failure-level WARN --verbose --trace -D build/developer-guide/local-html -o developer-guide.html docs/developer-guide/developer-guide.asciidoc
  • asciidoctor-pdf --trace -D build/developer-guide/local-pdf -o developer-guide.pdf docs/developer-guide/developer-guide.asciidoc
  • scripts/developer-guide/compare-guide-screenshots.sh build/developer-guide/guide-screenshots-local

@shai-almog shai-almog changed the title [codex] Modernize developer guide demos and snippets Modernize developer guide demos and snippets Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Cloudflare Preview

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Developer Guide build artifacts are available for download from this workflow run:

Developer Guide quality checks:

  • AsciiDoc linter: No issues found (report)
  • Vale: No alerts found (report)
  • Paragraph capitalization: No paragraph capitalization issues (report)
  • LanguageTool: No grammar matches (report)
  • Image references: No unused images detected (report)

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

✅ Continuous Quality Report

Test & Coverage

Static Analysis

  • SpotBugs [Report archive]
    • ByteCodeTranslator: 0 findings (no issues)
    • android: 0 findings (no issues)
    • codenameone-maven-plugin: 0 findings (no issues)
    • core-unittests: 0 findings (no issues)
    • ios: 0 findings (no issues)
  • PMD: 0 findings (no issues) [Report archive]
  • Checkstyle: 0 findings (no issues) [Report archive]

Generated automatically by the PR CI workflow.

@shai-almog shai-almog marked this pull request as ready for review July 2, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant