by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Andrey Popp
@andreypopp
Another example use case ..LiveCodedirective: so you embed source code snippets with live preview. That could be used for live style guides.
Khoa Nguyen
@thangngoc89
at first glance I really like it
:+1: that's extracly what I want
I want to write some tutorial with live example with it
Andrey Popp
@andreypopp
..ReactDocgen — get react-docgen info from a specific module for a specific component and render it.
Khoa Nguyen
@thangngoc89
(React/ CSS / JS)
Andrey Popp
@andreypopp
Yeah, that would be cool. Let me know if you get to that faster than me.
Khoa Nguyen
@thangngoc89
do you think this can be integrate nicely with Phenomic ?
Andrey Popp
@andreypopp
Not sure about architecture of Phenomic, its creator says that content and chrome (site design) are separated.
In case of reactdown — document compiles to JS module, not some JSON with HTML markup.
Khoa Nguyen
@thangngoc89
Okie.
so reactdown emits JS modules ?
Andrey Popp
@andreypopp
Yes, you can do import Document, {metadata, model} from './mydoc.md'
Khoa Nguyen
@thangngoc89
okie. got it :)
Every parts of Phenomic is pluggable
Andrey Popp
@andreypopp
I guess it's not a big deal to integrate it w/ Phenomic then.
There's webpack loader for react down: http://andreypopp.github.io/reactdown/#Webpack%20Loader
Khoa Nguyen
@thangngoc89
I'll need a few new parts for Phenomic to mark it play nicely with reactdow
thanks for making this :)
Andrey Popp
@andreypopp
Yeah, I'm actually building it for sitegen.
Khoa Nguyen
@thangngoc89
I'll spam you some links if I can ever get the 2 of them play nice together
Andrey Popp
@andreypopp
Yes, definitely.
Khoa Nguyen
@thangngoc89
No syntax highlighting for the code ?
this is a limitation or you just don't have time for it ?
Andrey Popp
@andreypopp
Didn't have time, you can use any react component which can highlight code for you.
Khoa Nguyen
@thangngoc89
Hum. That mean adding some KBs to the bundle
Andrey Popp
@andreypopp
Right, that's a downside, though that can be addressed by remark plugin :-)
Khoa Nguyen
@thangngoc89
this one :0
gotta go. bye
Andrey Popp
@andreypopp
yep! bye
fiatjaf
@fiatjaf
what should I know to migrate from gatsby to sitegen?
I have some pages that are raw React components. will sitegen grab those automatically and render them?
Andrey Popp
@andreypopp
@fiatjaf hi!
sadly sitegen wasn't updated recently. I would advice against using it right now. Needs more work from my end to get it up & running again.
But the approach taken is sane.
fiatjaf
@fiatjaf
well, after developing some hatred for gatsby and founding no other solutions I ended up doing my own react static site generator, but using browserify and a fish script only. It's kinda cool: https://github.com/fiatjaf/react-site