1.0.16 • Published 2 years ago

gatsby-source-confluence v1.0.16

Weekly downloads
2
License
ISC
Repository
github
Last release
2 years ago

Gatsby-Source-Confluence

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

Installation

npm i --save gatsby-source-confluence

Usage

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:

  • hostname (Required): the Confluence base URL to use for all requests
  • auth: Your username.password base64 encoded with a Basic prefix. Please don't check this in to source control ;)
  • cql (Required): a CQL expression to filter out a list of documents
  • limit: Defaults to 10. Please set this to the maximum number of documents to load in.

Known issues

  • No pagination built in, have to set a limit value above the number of documents to pull in.
  • Confluence storage often has macros embedded. Macros not handled.
  • Only handles pages, not blog posts
  • No page tree hierarchy (I told you this was rough!)

Pull requests welcome!

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago