oxyplot / documentation-examples

examples used in the documentation
MIT License
43 stars 145 forks source link

Make ExampleGenerator work under non-Windows OSs #7

Closed seijikun closed 7 years ago

seijikun commented 7 years ago

Replaced the \ Path delimiter in the [Export(@"...")] annotations with the more general / separator and added some logic in the exporting-code, that replaces the separator with the actual separator of the executing platform. This makes the ExampleGenerator work properly on non-Windows OSs.

Since TruePNG does not seem to exist for other platforms, I added another png optimizer (OptiPNG) to work under Linux.

Since the png optimization takes quite some while and the work was done sequentially, I sped up the process by running the exports in parallel.