HTML-CSS-DOM-chat / Examples

A collection of HTML/CSS/DOM examples
11 stars 2 forks source link

GitHub Pages for the examples #1

Open mainerror opened 11 years ago

mainerror commented 11 years ago

I think it would make sense to have a GH page for all the examples.

Maybe having people push their examples right to the gh-pages branch would be a good idea.

ghost commented 11 years ago

We currently have the examples in their own separate folders, but to view each example it would require a person to click each folder to then be able to click the JSfiddle link. So should we create a TOC at repo root level which will list all the examples and what they do and have their demo link as well. This way we have a single place where people can see what all there is and quickly see the demos.

I suppose a weekly cron to update the TOC should suffice or depending on how low volume it is right now, manually just editing it would work as well. Thoughts?

mainerror commented 11 years ago

Well, that would be possible I assume but I don't quite see the purpose. While jsfiddle (and the like) is nice and all, it is an external resource, so we add another layer of external dependency to it. If jsfiddle happens to be down, the examples can't be viewed right away.

Now, if you have everyone just push their examples to the gh-pages repository, we'd have all examples as source code, organized however we want, in separate directories and one could view them right away.

This is a live example. https://github.com/BonsaiDen/JavaScript-Garden

ghost commented 11 years ago

Ooooohh you're talking about http://pages.github.com/ yeah we can definitely do that.

CS1000 commented 11 years ago

Even if JSfiddle is an external resource it's a nice feature to have so one can see a quick demo of what the code actually does.

I second the (bi)weekly cronjob.

mainerror commented 11 years ago

@godka of course but external resources should be optional. We can have both things together.

ghost commented 11 years ago

@godka the Github Pages would allow us to do the same thing as far as I know. So we don't have to use a 3rd party service to show demo.