rcharts / viewer

A viewer for rCharts stored as gists
3 stars 2 forks source link

Source code, twitter link, etc. #1

Open reinholdsson opened 11 years ago

reinholdsson commented 11 years ago

Some possible features to the UI:

ramnathv commented 11 years ago

I added the following

  1. Disqus comments
  2. Sharing buttons (using AddThis)

The link to the gist is there at the bottom. Do you think, it would be useful to directly link to the raw code file instead?

ramnathv commented 11 years ago

More things to do

reinholdsson commented 11 years ago

Nice!

I am not sure about the source code link, if it is necessary. I just realized when I wanted to copy some code to run, that I needed to click further down into the gist. Perhaps one could later add a javascript feature to easier copy the raw code from the viewer. Otherwise I was thinking about something like this:

skarmavbild 2013-06-09 kl 17 57 56

But I am not sure.

ramnathv commented 11 years ago

I like your idea. Any suggestions on an easy copy-code link?

ramnathv commented 11 years ago

The other option is not to embed the code in the html file, and instead use gist embed feature. See screenshot below (the code appears twice, since I have not removed it from the html). The advantage of this approach is that we dont need to do any extra work in terms of displaying links to the raw code.

Let me know what you think.

embed_gist

reinholdsson commented 11 years ago

I like/prefer the embedded version. I don't have any better suggestions myself.