processing-library-template icon indicating copy to clipboard operation
processing-library-template copied to clipboard

build.xml AddExamples fails on example subfolders, broken "by following the links below" in index.html

Open jeremydouglass opened this issue 7 years ago • 0 comments

Currently the build.xml AddExamples auto-generates a list of linked example pde files in the index.html, based on the subfolder names under /examples.

Broken links are generated if the examples are grouped into subfolders, e.g. for

  • examples/foo/bar/bar.pde
  • examples/foo/baz/baz.pde

...it lists a single example "foo" (with a broken link to the non-existant foo.pde).

This is the style used by libraries with larger example sets, e.g. Camera3D, ControlP5, minim et cetera.

One solution might be to recurse or add a deeper pattern in AddExamples. Another might be to just link into the top level directories and allow directory browsing -- although that might create issues for e.g. needing to set browsing access, e.g. .htaccess et cetera.

jeremydouglass avatar Oct 22 '18 23:10 jeremydouglass