cljsjs / cljsjs.github.io

cljsjs.github.io
10 stars 7 forks source link

Provide require instructions on site or at least mention there's more.. #8

Open martinklepsch opened 8 years ago

martinklepsch commented 8 years ago

https://twitter.com/logaan/status/669511930734755840

bhauman commented 8 years ago

I'm voting this up big time.

Actually the deps.cljs file would be super helpful here... a popup or reveal of a pprinted deps.cljs would be tremendously helpful... I find myself looking in the jar files for this info...

Deraen commented 7 years ago

First version of deps.cljs on site is online. I'll tune styles later and perhaps reimplement the site using different tooling. I think it might be the time to move from Bash script to Boot task to build the site :D

Deraen commented 7 years ago

Further idea: Show (or link) the extern file.

bhauman commented 7 years ago

This is awesome that you are working on this... I don't see the new site though..

bhauman commented 7 years ago

Oh I see the code but the the "deps" tag is empty.

Deraen commented 7 years ago

Heh, the code didn't work on my server so automated build removed the contents.

martinklepsch commented 7 years ago

@bhauman what exactly are you looking for when you say contents of deps.cljs file?

martinklepsch commented 7 years ago

@bhauman I pushed a new version: http://cljsjs.github.io/ — please let me know if you think it could be improved in any way.

bhauman commented 7 years ago

Looks absolutely great!

If you have time...

Under "Show Usage Instructions" Step "2" I would add some actual example require code like (ns example.core (:require ... [cljsjs.react.dom] ... ))

The reason I'm suggesting this is that most new people are probably going to try and require [cljsjs/react-dom] instead of cljsjs.react.dom and unfortunately there is no rule to translate project/library name to the require namespace.

So making it absolutely explicit with a code example will probably be very helpful for folks. This reduces the ambiguity of the word "require" with a concrete example of what is meant.

Also the initial instructions at the top of the page could provide lein/boot code examples that slide open when you click on lein example or boot example

One more thing: under "Show Usage Instructions" in step "3" I would make the Project Site a link.

These are just suggestions. I really like the new instructions a lot!!

Thanks for taking the time to do this!!

Deraen commented 7 years ago

Full ns example now included.

burn2delete commented 7 years ago

There are a few formatting cleanups that could be done for mobile with the new site :) looks great tho!

martinklepsch commented 7 years ago

@flyboarder please don't leave us hanging with this and and leave issues with screenshots :)