{"id":18510087,"url":"https://github.com/gitana/gatsby-source-cloudcms","last_synced_at":"2025-05-14T11:14:17.892Z","repository":{"id":51706043,"uuid":"169797819","full_name":"gitana/gatsby-source-cloudcms","owner":"gitana","description":"Gatsby source plugin for Cloud CMS","archived":false,"fork":false,"pushed_at":"2021-11-15T14:55:10.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-25T20:23:45.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitana.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-08T20:55:54.000Z","updated_at":"2021-11-15T14:55:13.000Z","dependencies_parsed_at":"2022-08-03T09:15:36.831Z","dependency_job_id":null,"html_url":"https://github.com/gitana/gatsby-source-cloudcms","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fgatsby-source-cloudcms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fgatsby-source-cloudcms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fgatsby-source-cloudcms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fgatsby-source-cloudcms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitana","download_url":"https://codeload.github.com/gitana/gatsby-source-cloudcms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239225764,"owners_count":19603158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T15:20:48.921Z","updated_at":"2025-02-17T02:41:20.220Z","avatar_url":"https://github.com/gitana.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gatsby-source-cloudcms\n\nSource plugin for adding your cloudcms content and attachments into your Gatsby.js site\n\n## Install\n\n```\nnpm install gatsby-source-cloudcms\nor\nyarn add gatsby-source-cloudcms\n```\n\n## Usage\n\n```js\n// In your gatsby-config.js\nconst gitanaJson = require('./gitana.json');\n\nmodule.exports = {\n  plugins: [\n    {\n      resolve: `gatsby-source-cloudcms`,\n      options: {\n        keys: gitanaJson,\n        repositoryId: `myRepositoryId`,\n        branchId: `myBranchId`\n      }\n    }\n  ]\n}\n```\n\nNote that you will need to provide [API Keys](https://www.cloudcms.com/documentation/apikeys.html) to cloudcms, as well as a\n`repositoryId` and `branchId` ([Help](https://support.cloudcms.com/hc/en-us/articles/360005276393-How-to-find-the-Repository-ID-for-a-Project-)). \n\nYou can additionally provide a `contentQuery` to options with MongoDB syntax to specify what subset of your content to source. \nFor example, if my site only contained content of type `store:book` and `store:author`, I could use the following `contentQuery`:\n\n```\n{\n    \"_type\": {\n        \"$in\": [\"store:book\", \"store:author\"]\n    }\n}\n```\n\n[More on queries](https://www.cloudcms.com/documentation/query.html)\n\n[Example CloudCMS Gatsby Site](https://github.com/gitana/sdk/tree/master/gatsbyjs/sample)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitana%2Fgatsby-source-cloudcms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitana%2Fgatsby-source-cloudcms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitana%2Fgatsby-source-cloudcms/lists"}