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
@cutemachine at the moment the best way is to fork sitegen, I'll add needed hooks soon
cutemachine
@cutemachine
Yes, hooks would be cool. Let me know if I could help with anything. Keep up the good work.
Andrey Popp
@andreypopp
@cutemachine I'd happily take PR which allows to inject custom loaders for sitegen
:-)
cutemachine
@cutemachine
:-)
Khoa Nguyen
@thangngoc89
hi :)
Andrey Popp
@andreypopp
Hi!
Khoa Nguyen
@thangngoc89
does reactdown support remark's plugins ?
Andrey Popp
@andreypopp
Yes, it doesn't expose configuration for it yet.
At the same time not all plugins are supported as renderer is different (not HTML but React).
Fortunately most of the plugins are easier with React components. As you might defer functionality of a plugin to React.
Khoa Nguyen
@thangngoc89
Okie.
you just access document model and render a list of headings
You can easily make some fancy ToC with scroll spying and stuff w/o jQuery plugins :-)
Khoa Nguyen
@thangngoc89
Amazing !!!
I have a scroll spying on my blog
but it contains many hack to get it work properly
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?