angular-ui-OLDREPO icon indicating copy to clipboard operation
angular-ui-OLDREPO copied to clipboard

Create jsFiddle's for all the given examples

Open guilleferrer opened this issue 14 years ago • 9 comments

It would be nice to have jsFiddle examples for All the examples you provide here, so it is easier to understand and experiment how to use every directive you have implemented.

guilleferrer avatar Sep 11 '12 09:09 guilleferrer

@guilleferrer we've got examples on the http://angular-ui.github.com/ page.

But effectively, it would be nice to have the ability to run each and every example in a separate jsFiddle, exactly like on the AngularJS home page.

Would you be interested in contributing such changes to our existing pages?

pkozlowski-opensource avatar Oct 21 '12 11:10 pkozlowski-opensource

Yes, I could help. Should I create the jsFiddles myself and then i pass you the url so you can include it in the docs ? I won't have time to to them all at once, so I will be sending you one by one all the examples. Is that ok?

2012/10/21 Pawel Kozlowski [email protected]

@guilleferrer https://github.com/guilleferrer we've got examples on the http://angular-ui.github.com/ page.

But effectively, it would be nice to have the ability to run each and every example in a separate jsFiddle, exactly like on the AngularJS home page.

Would you be interested in contributing such changes to our existing pages?

— Reply to this email directly or view it on GitHubhttps://github.com/angular-ui/angular-ui/issues/192#issuecomment-9641733.

Guillermo Ferrer Moregó +34666041955 [email protected]

guilleferrer avatar Oct 22 '12 13:10 guilleferrer

@guilleferrer, no, no, we shouldn't be creating fiddles by hand, it would create maintenance hell :-(

Please have a look at the AngularJS home page - what those guys are doing is that you can create a jsFiddle "on the fly" by posting fiddle's content to the jsFiddle web site. With this approach "the only source of truth" is in the repository (examples checked it) and fiddles are created on the fly.

So, all in all, the effort would be more to see how to automatically create fiddles / plunks from the examples we've got already, rather than creating those from scratch by coping & pasting code.

pkozlowski-opensource avatar Oct 22 '12 17:10 pkozlowski-opensource

Or we can create plunkers and use gists :)

On Mon, Oct 22, 2012 at 10:44 AM, Pawel Kozlowski [email protected]:

@guilleferrer https://github.com/guilleferrer, no, no, we shouldn't be creating fiddles by hand, it would create maintenance hell :-(

Please have a look at the AngularJS home page - what those guys are doing is that you can create a jsFiddle "on the fly" by posting fiddle's content to the jsFiddle web site. With this approach "the only source of truth" is in the repository (examples checked it) and fiddles are created on the fly.

So, all in all, the effort would be more to see how to automatically create fiddles / plunks from the examples we've got already, rather than creating those from scratch by coping & pasting code.

— Reply to this email directly or view it on GitHubhttps://github.com/angular-ui/angular-ui/issues/192#issuecomment-9673280.

Dean J Sofer [email protected]

BS Computer Information Systems California State Polytechnic University, Pomona Telephone: 714-900-2254 Website: www.DeanSofer.com Github: github.com/ProLoser

ProLoser avatar Oct 22 '12 17:10 ProLoser

Yes, was thinking abut gists as well. The only thing is that examples need to somehow correspond to our released versions. I mean, we might change examples witch each release. So, we would have to sync gists with our main repo.

What I was thinking of was more like having examples checked-in next to the source code and then both dynamically generate docs / examples from it and have this ability to create gists / plunks on the fly. Once again, the source code repo should be the only source of truth for me.

pkozlowski-opensource avatar Oct 22 '12 18:10 pkozlowski-opensource

Maybe a good option would be creating first Guists, so we have the version control, and then we can create jsFiddles from those gists, using this : http://doc.jsfiddle.net/use/gist_read.html

What do you think?

2012/10/22 Pawel Kozlowski [email protected]

Yes, was thinking abut gists as well. The only thing is that examples need to somehow correspond to our released versions. I mean, we might change examples witch each release. So, we would have to sync gists with our main repo.

What I was thinking of was more like having examples checked-in next to the source code and then both dynamically generate docs / examples from it and have this ability to create gists / plunks on the fly. Once again, the source code repo should be the only source of truth for me.

— Reply to this email directly or view it on GitHubhttps://github.com/angular-ui/angular-ui/issues/192#issuecomment-9674299.

Guillermo Ferrer Moregó +34666041955 [email protected]

guilleferrer avatar Oct 23 '12 14:10 guilleferrer

Saw this thread yesterday and this is "close to home" since I did the jsfiddle integration for the angularjs site. I'll have to review my code to see what I did, but it would be great to have it integrated into our doc so that its in one place, less room for error. The gist solution looks interesting too.

--dan

On Oct 23, 2012, at 7:33 AM, guilleferrer wrote:

Maybe a good option would be creating first Guists, so we have the version control, and then we can create jsFiddles from those gists, using this : http://doc.jsfiddle.net/use/gist_read.html

What do you think?

2012/10/22 Pawel Kozlowski [email protected]

Yes, was thinking abut gists as well. The only thing is that examples need to somehow correspond to our released versions. I mean, we might change examples witch each release. So, we would have to sync gists with our main repo.

What I was thinking of was more like having examples checked-in next to the source code and then both dynamically generate docs / examples from it and have this ability to create gists / plunks on the fly. Once again, the source code repo should be the only source of truth for me.

— Reply to this email directly or view it on GitHubhttps://github.com/angular-ui/angular-ui/issues/192#issuecomment-9674299.

Guillermo Ferrer Moregó +34666041955 [email protected] — Reply to this email directly or view it on GitHub.

dandoyon avatar Oct 23 '12 20:10 dandoyon

Well, the only problem with gists is that those are separated from the source code and its version... @dandoyon I didn't know that you contributed jsFiddle integration to AngularJS. It would be so awesome if we could have sth like this for angular-ui...

pkozlowski-opensource avatar Oct 23 '12 20:10 pkozlowski-opensource

This repo is discontinued. Please reopen this issue against the relevant repositories as applicable.

nateabele avatar Sep 09 '13 00:09 nateabele