-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[website] consider gatsby instead of hugo #1351
Comments
|
@flexchar I'm talking about the netlifycms.org website in this repo. Not sure I follow how you're talking about the same thing? I could be wrong |
@zebapy You are absolutely right, my apologies. I have no idea how I managed to miss such thing. Consider my comment as completely irrelevant. |
Especially considering our interactive documentation ambitions, and the docs therefore potentially becoming more app-like, I'm in agreement with this. And we don't even have to ask @talves I know he'll be in complete agreement. Seriously though, thoughts anyone? I'm inclined to say go for it. |
Seriously though. Converting the site to Gatsby or React-Static is more of a preference and a testament to how awesome the JAMStack is today. My vote is React-Static but, if someone is willing to take on Gatsby, I would not be apposed to it. 😋 Admission: Gatsby is a very well supported and maintained project. It is well done. Just not my preferred SSG at the moment. |
Out of desire to practice Gatsby, I have a Gatsby version about 80% done.
I'll post it shortly!
…On Sat, May 12, 2018, 12:39 PM Tony Alves ***@***.***> wrote:
Seriously though. Converting the site to Gatsby or React-Static is more of
a preference and a testament to how awesome the JAMStack is today. My vote
is React-Static but, if someone is willing to take on Gatsby, I would not
be apposed to it. 😋
*Admission:* Gatsby is a very well supported and maintained project. It
is well done. Just not my preferred SSG at the moment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1351 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACGRJY5OJIJe3WS7wP6fp8S2KRrkUhc8ks5txxBIgaJpZM4T6F_W>
.
|
Casting my vote for react-static as well. I've found it to be a lot simpler than Gatsby. It's also ultimately better at splitting out routes if you want some reasoning that's more objective (for instance, on my site, currently powered by Gatsby, all of the blog posts are in one bundle with other pages in their own bundles, I would prefer for each blog post to be in its own bundle). |
@knpwrs For the gatsby version of the site I'm almost done with, I see each doc page as their own bundle/js file. So it sounds like gatsby has what you're saying you desire? I still advocate for gatsby since seems to have a larger presence, its plugin system works rather well instead of manually setting everything up for prism, manifest, yaml, markdown, postcss, autolink headers, table of contents... React static looks like you have to do some extra work to get these. I get that the learning curve looks lower for react static, and routing is vastly simpler, but this site doesn't require much beyond the basic gatsby blog examples and what the docs thoroughly cover. |
@erquhart I have a lot of this done here if you want to check it out https://github.com/zebapy/netlify-cms/tree/gatsby-site/website I still need to fix a couple things but wanted to share it earlier. |
@zebapy Gatsby only splits on routes or individual items rather than collections of items. I'll quote Kyle Matthews from an email correspondence:
|
Apparently VuePress is tailored to technical documentation, very interesting. The default theme includes: Responsive layout Very interesting. Sent with GitHawk |
There's also https://docusaurus.io/
I think part of the reason I opened this was so docs site was in React since the cms is.
…On Sat, May 12, 2018, 6:51 PM Shawn Erquhart ***@***.***> wrote:
Apparently VuePress is tailored to technical documentation, very
interesting. The default theme includes:
Responsive layout
Optional Homepage
Simple out-of-the-box header-based search
Algolia Search
Customizable navbar and sidebar
Auto-generated GitHub link and page edit links
Very interesting.
Sent with GitHawk <http://githawk.com>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1351 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACGRJQEL1IkR7Vn2nqT7tu-SfG7zAgXuks5tx2d7gaJpZM4T6F_W>
.
|
@zebapy I just got to check out your fork, it really is 80% to a production ready Gatsby migration. You have my vote, killer work my friend. Thanks so much for jumping in like this! |
@erquhart Thanks! I'll try to wrap this up soon |
For the record, here's a webpagetest on the actual website. It would be interesting to compare results between both SSG. Gatsby should score better at LightHouse by default. |
How is this obvious in a documentation site? Can you elaborate? Are there downsides to picking a React static generator? Does it make it easier or harder for people to contribute content? |
@bep here are a few reasons why a React based SSG feels right for this project:
Since the vast majority of content contributions happen in Markdown files, I expect docs contributions to be largely unaffected. I know very well how world class Hugo is! This project is just so JS/React centric that it makes a JS/React SSG for interactive docs a super close fit. |
@DirtyF webpagetest of the in-progress deploy preview: https://www.webpagetest.org/result/180525_GC_a9486c40a857bef10a68b25d6791a59e/ |
Sure, I just wanted you to think about it and not just dive into some "would it not be cool to do the docs in react" simple arguments. From a documentation contributor perspective (i.e. as someone who wants to write documentation), I would, of course (I'm biased), prefer something static that I could just So, there are trade-offs to consider. Your docs may get "richer" in its UI, but it may also be harder to reason about for editors. Trade-offs. |
Agreed, the risk of fad following is real. We have a front end build pipeline already, we just maintain it ourselves. Running the project locally from scratch is currently |
Change netlifycms.org website (website folder in this repo) to use Gatsby instead of Hugo
Seems like there could be benefits to using Gatsby instead of Hugo since netlify cms is React based and gatsby has a growing presence in the react static site realm.
Reasons to move
I'd love to take a crack at this if there's buy-in. I'd just try to recreate the existing site 1:1
Edit
I've got most of this done here
https://github.com/zebapy/netlify-cms/tree/gatsby-site/website
The text was updated successfully, but these errors were encountered: