berinhard / pyp5js

Python to P5.js Transcriptor
https://berinhard.github.io/pyp5js/
GNU Lesser General Public License v3.0
198 stars 37 forks source link

Add link from the live examples to their python code #33

Closed berinhard closed 5 years ago

berinhard commented 5 years ago

While #22 is not ready, I guess there's a smaller step to improve our examples. We could just add links from the html - after all they can have any html we want - to the related python code in the github repo.

villares commented 5 years ago

I like this! Earlier when Processing was used to generate "Java applets", and even when ProcessingJS was a thing, the pages used to have a link to the code and a "made with Processing" tag.

berinhard commented 5 years ago

@villares did a very nice job with #40, but I think we can still improve this linking.

We could add something like the Github ribbons with "See sketch code" over the sketch result. This could be placed on the upper right top corner of the window to don't pollute to much the sketch canvas.

The ribbon could redirect the user to the source code from the sketch html. I think this is desirable since I'm sharing the unique demo links and not the examples index page.