electro-smith / DaisyExamples

Examples for the Daisy Platform
https://github.com/electro-smith/DaisyWiki/wiki
MIT License
381 stars 193 forks source link

New CI build scripts for flexible directory strucutre #240

Closed stephenhensley closed 2 years ago

stephenhensley commented 2 years ago

We're planning on using more directories to better organize the existing (and future) examples provided in the repo.

The root level of the repo isn't planned to change too much, but a bunch of the library, and utility folders are filtered out of the compile-search in the new script.

Functionally, the new build_examples.py works the same as the build_examples.sh it is replacing, but it will support examples nested in other directories (i.e. seed/dsp/*, etc.).

This will be necessary for supporting new structures like requested in #239


The new build examples script has been tested to work with the existing structure and tested for recursive path-searching.

The build_dist.py script still needs to be updated to properly remap the "platform" to be a combo of folders (i.e. seed/dsp will end up showing up in the web programmer as "seed_dsp" under platform).

While making a few changes I'd also like to address #129 since it's very old, and causes annoying merge conflicts for pretty much no reason.

stephenhensley commented 2 years ago

Looks like everything (including the nested-folder stuff) is working correctly (patch_sm_GettingStarted bins are in place).

I'm not going to merge it now incase it breaks the web-programmer over night, but it should be good to go.