agentejo / cockpit

Add content management functionality to any site - plug & play / headless / api-first CMS
http://getcockpit.com
MIT License
5.4k stars 524 forks source link

Integrations with static site generators #1236

Open decentral1se opened 4 years ago

decentral1se commented 4 years ago

I see that the netlify/butterCMSes of this world are working on getting direct integration into the most popular static site generators like Jekyll, Pelican and Hugo. Do these integrations already exist for Cockpit? If so, is there documentation that can be written?

If not, which ones would you aim for? Is this a priority?

I raised https://github.com/agentejo/cockpit/issues/1234 as well to see about client libraries which is a fundamental part of getting the integrations working. Personally, I am aiming to create a Pelican plugin (in the same spirit as https://github.com/ButterCMS/buttercms-pelican) and can then hopefully contribute to closing this ticket ;)

mpartipilo commented 4 years ago

I worked on a Javascript API client, then later forked another one from Ginetta and took it all apart and basically rewrote it. All this to add better integration with Gatsby.

aheinze commented 4 years ago

I think there is one for Hugo - https://en.iakta.org/progetti/cockpithugo/, but I don't know about the status here. Feel free to implement whatever you like :-)

pauloamgomes commented 4 years ago

I did a huge implementation based on Cockpit and React Static (https://react-static.js.org) without any stress.

Also did some investigations around Gatsby and Fika plugin (https://github.com/fikaproductions/fika-gatsby-source-cockpit), apart from some issues (custom fields not supported) it worked quite well.

jmalley commented 4 years ago

I'm running it with Nuxt. Works great. Mostly followed this guide.

AndiKod commented 4 years ago

As long as something generates API endpoints will basically "integrate" with any script able to consume them with something like Axios or Fetch API. So I guess every SSG can use an API generated by Cockpit.

The real question is more about the project itself, its needs, complexity, etc.