A quick and dirty Gatsby source plugin for retrieving data from everybody's least favourite content editor, Confluence.
An example site is available on Netlify
npm i --save gatsby-source-confluence
Add the following to your gatsby-config.js file:
module.exports = {
plugins: [
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-source-confluence",
options: {
hostname: "companyname.atlassian.net",
auth: "Basic XXX...",
cql: "ancestor = 534095277",
limit: 10
}
}
]
};
Please ensure that the following parameters are set:
Basic
prefix. Please don't check this in to source control ;)10
. Please set this to the maximum number of documents to load in.limit
value above the number of documents to pull in.Pull requests welcome!