Open decentral1se opened 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.
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 :-)
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.
I'm running it with Nuxt. Works great. Mostly followed this guide.
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.
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 ;)