{"_id":"@adobe/gatsby-source-parliament","_rev":"39-c2670653da309fd62961a497b1df44f7","name":"@adobe/gatsby-source-parliament","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@adobe/gatsby-source-parliament","version":"1.0.0","keywords":["gatsby","gatsby-plugin","gatsby-source-plugin"],"author":{"name":"Hiren Shah"},"license":"Apache 2.0","_id":"@adobe/gatsby-source-parliament@1.0.0","maintainers":[{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"macdonst","email":"simon.macdonald@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"jianliao79","email":"jian.liao@gmail.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"bbythewa","email":"bbythewa@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"sirugh","email":"stephenrugh@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"},{"name":"niekraaijmakers","email":"niekraaijmakers@gmail.com"},{"name":"manasmaji","email":"maji@adobe.com"}],"homepage":"https://github.com/adobe/gatsby-source-parliament#readme","bugs":{"url":"https://github.com/adobe/gatsby-source-parliament/issues"},"dist":{"shasum":"0f501ccbaf41450ea72bcde1f4491bc048ede361","tarball":"https://registry.npmjs.org/@adobe/gatsby-source-parliament/-/gatsby-source-parliament-1.0.0.tgz","fileCount":9,"integrity":"sha512-sZ71hfid/eLWIZDPxUOn6aypTwFzxiNy6ZS7WNy7RSNIWqaVdZ1BulsaWnSdo8GFjiVPNEMTqgF4MC/RsdHs3g==","signatures":[{"sig":"MEUCIQDRfob1Cmatukhit5JvYuIq9FoBupvERhSwEqBOcG0K8gIgOJeVISgXd8UHK2sn6XCgU9e8IqFmxhKWVb69BajYceE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20418,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgS9XmCRA9TVsSAnZWagAAk/UP+we7L1k1kX9mJd8640oi\nj80/koEpsO3Aw6y1cYK4dY6l49v9UQMAq3jCCjMq/Xl3RXBqtDPZr0XWGOXJ\nT4ztFbkvE83vu+49BH4z0F5IzNLCfVeX0bF484PF2/3FUasOdOq/FswfQMqg\nLvSAWER0vh10Gy4jg6uOPFos+vof9WpPw8l/2vDXnpoX3U4bSJ0P6v8JKvq1\nbn1Bw0DruT3kDROIsLzg8zezSXJ1OeLEUVIp6yqW7xD00SUKuun8lZ6NEIg0\ns6b5lqZnJfW8UWRbjldhIKg0HD7ZFg3FenD1kJpy/i63CggxHtynq5ZphpqA\n+EHIfxgtL4PtLToGbRVdzb4GPmigYITUHs5cG3/ePhFXC0JqkWy4LaFpzbUU\n1uEr5Bg2chcZX0DuVwA0Z+BOdqtOC7IUoNFN7oRHhS9FaC5hP/vFsWc5+MUF\n6Tpze3RYfsRb9g2yuOg44Kimse+kN8BygKcS58HYockBXlpa3rmKJiifx9jt\no6vQWBZPO2ISzAry+bQ0faCinUDnxQpaveHFUv4+xob/CTrPdUia991ldXhe\nbFiVO2PgzjOj+oNNBcbd4N9j3u6huKiF0OXhdYOQouHORHec06BtFqD/kyKM\nrpXmK54+VaNmbOFAP5amV19MxeOGrVywI618xWhiKGIToAdXxYEEIfqzNGl+\nY1iR\r\n=42cW\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"e998ee205f64df999fa4544c0630e0efb684422c","scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"repository":{"url":"git+https://github.com/adobe/gatsby-source-parliament.git","type":"git"},"_npmVersion":"6.14.11","description":"Gatsby plugin for pulling files into Gatsby from local directory","directories":{},"_nodeVersion":"10.24.0","dependencies":{"rimraf":"^2.6.2","fs-extra":"^5.0.0","fast-glob":"^2.2.3","gatsby-source-filesystem":"^2.1.19"},"_hasShrinkwrap":false,"peerDependencies":{"gatsby":">2.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/gatsby-source-parliament_1.0.0_1615582694357_0.06544839738054153","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@adobe/gatsby-source-parliament","version":"1.0.1","keywords":["gatsby","gatsby-plugin","gatsby-source-plugin"],"author":{"name":"Hiren Shah"},"license":"Apache 2.0","_id":"@adobe/gatsby-source-parliament@1.0.1","maintainers":[{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"patrickfulton","email":"patrickfulton@gmail.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"rofe","email":"npm@rofe.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"}],"homepage":"https://github.com/adobe/gatsby-source-parliament#readme","bugs":{"url":"https://github.com/adobe/gatsby-source-parliament/issues"},"dist":{"shasum":"c58d4ee1493b40a97f165bee2772b81acffaf2e7","tarball":"https://registry.npmjs.org/@adobe/gatsby-source-parliament/-/gatsby-source-parliament-1.0.1.tgz","fileCount":9,"integrity":"sha512-UNuR1/Nikt0Xq6GTGD3avH/7NeiWsBs6PHZ4MTUG1zyK3xHo94HPN2EP5eWQgeYYqEylpubzTxTTwUYGDG9bWw==","signatures":[{"sig":"MEUCID+U+AmoY3NdmKTKZh/sWlSrFg/ObHx5h5xxSAH9VWdoAiEA+Qb7d47V21c8b32StwVs/uqbmcsPaVq/VYK5lfc381M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20419},"gitHead":"4e9b1c6b6b30b1a9b27ed14b48ae7291e57ab91a","scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"repository":{"url":"git+https://github.com/adobe/gatsby-source-parliament.git","type":"git"},"_npmVersion":"6.14.12","description":"Gatsby plugin for pulling files into Gatsby from local directory","directories":{},"_nodeVersion":"10.24.1","dependencies":{"rimraf":"^3.0.2","fs-extra":"^10.0.0","fast-glob":"^3.2.7","gatsby-source-filesystem":"^4.1.0"},"_hasShrinkwrap":false,"peerDependencies":{"gatsby":">4.1.1"},"_npmOperationalInternal":{"tmp":"tmp/gatsby-source-parliament_1.0.1_1636436007292_0.7738449868290878","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@adobe/gatsby-source-parliament","version":"1.0.2","keywords":["gatsby","gatsby-plugin","gatsby-source-plugin"],"author":{"name":"Hiren Shah"},"license":"Apache 2.0","_id":"@adobe/gatsby-source-parliament@1.0.2","maintainers":[{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"patrickfulton","email":"patrickfulton@gmail.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"rofe","email":"npm@rofe.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"}],"homepage":"https://github.com/adobe/gatsby-source-parliament#readme","bugs":{"url":"https://github.com/adobe/gatsby-source-parliament/issues"},"dist":{"shasum":"cee4a548894aabe69a3bb3209a229d4f226437cb","tarball":"https://registry.npmjs.org/@adobe/gatsby-source-parliament/-/gatsby-source-parliament-1.0.2.tgz","fileCount":9,"integrity":"sha512-eRknkt5z90w228KOaiua6b/4LhdUWfoSKcxf6yZR66aDS/YVN9a2o6O/WLFxdY5pSwIbI/ORi15GBRnJ9bJBAw==","signatures":[{"sig":"MEQCIDXQeXIfD4MBi7U+g+mPAxRehdfcN072VO6HQQa9JpVFAiBroJRAKe3EPo3nhIoBJ5wvliCe/49anCaDCaj4BvB5sA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20420,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvz3MCRA9TVsSAnZWagAAk7kP/RexRRwTl8JrRo8/1PlT\nS0LqBB4cq4Z5RTlsBEsJ+EZHCxmNOCfqzb5pZ4awVNQ7EFtGFqojI67WWKOs\npwn/qfHfqtKT84qOwWW4+c/TFqcyaWS9cC4oJCupqrU7fxuqXq6QFjTmr1Sx\nWgkprEZ7xDuqoYI2ZcdehV2ARNbIfNk1rVnS8KpW2r3jNF9bHNNn50yy1P3T\nuj8nVVkIkgg1Eqn5qFNSISMAxMwFd9sGmYF+AFRi4lCH5ADNZy3flVU92w2V\n/4GMbMG+yrE8/jKzal+MtlMoQ7oxx/TmBbvlsPl+g7V7gCGnzAhpFcJDsxCX\ncaYI2tz2ibUSLFrAuSE5VTgB1xVPtgoGbljmb1PFkfFQY06grdoxgSlmjn9u\neCz9KmhGYR3u52Evc88jBqfGzNMX8FAIYF0lmA7W68bziX1sLjq1VDikCJjm\nBs9kITPYI3wSNYxYfR8AnGLvCxQmdBUCSDQS2cPw4hv/ejNbwV1dMvJbjNfW\ng5NXN27Q6eFpHUtwPRv8u3x8FewMjvsiS7I25nC5h0gh3UeW64cljnQUJb9l\nEXmjfqd2LJAXvy6+kQULC7cB3xdke32IAnf+lqt2UTQ0U+nmyIg624YVHdbG\nua2M9lABzoUv+h++WxK++luiApTpQiEFXmTDBExA0IElkf79L+MqAZwVAkmo\nJtLE\r\n=IYMG\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"22e821d5d4abcdda26ad70cd63c2161794efdbde","scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"repository":{"url":"git+https://github.com/adobe/gatsby-source-parliament.git","type":"git"},"_npmVersion":"6.14.12","description":"Gatsby plugin for pulling files into Gatsby from local directory","directories":{},"_nodeVersion":"10.24.1","dependencies":{"rimraf":"^3.0.2","fs-extra":"^10.0.0","fast-glob":"^3.2.7","gatsby-source-filesystem":"^4.1.0"},"_hasShrinkwrap":false,"peerDependencies":{"gatsby":">=4.1.1"},"_npmOperationalInternal":{"tmp":"tmp/gatsby-source-parliament_1.0.2_1636762650913_0.8048273342288477","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-03-12T20:58:14.356Z","modified":"2026-10-01T01:33:28.664Z","1.0.0":"2021-03-12T20:58:14.547Z","1.0.1":"2021-11-09T05:33:27.452Z","1.0.2":"2021-11-13T00:17:31.111Z"},"bugs":{"url":"https://github.com/adobe/gatsby-source-parliament/issues"},"author":{"name":"Hiren Shah"},"license":"Apache 2.0","homepage":"https://github.com/adobe/gatsby-source-parliament#readme","keywords":["gatsby","gatsby-plugin","gatsby-source-plugin"],"repository":{"url":"git+https://github.com/adobe/gatsby-source-parliament.git","type":"git"},"description":"Gatsby plugin for pulling files into Gatsby from local directory","maintainers":[{"email":"mabecker@adobe.com","name":"marbec"},{"email":"tripod@bocanegra.ch","name":"tripod"},{"email":"garthdb@gmail.com","name":"garthdb"},{"email":"lazdnet@gmail.com","name":"lazd"},{"email":"grp-opensourceoffice@adobe.com","name":"adobe-admin"},{"email":"patrickfulton@gmail.com","name":"patrickfulton"},{"email":"lars@trieloff.net","name":"trieloff"},{"email":"krisnye@gmail.com","name":"krisnye"},{"email":"dcpfsdk@adobe.com","name":"dcpfsdk"},{"email":"natebaldwindesign@gmail.com","name":"natebaldwin"},{"email":"devongovett@gmail.com","name":"devongovett"},{"email":"danniintheus@gmail.com","name":"aspro83"},{"email":"symanovi@adobe.com","name":"symanovi"},{"email":"dominique.pfister@gmail.com","name":"dpfister"},{"email":"sg@adobe.com","name":"stefan-guggisberg"},{"email":"npm@rofe.com","name":"rofe"},{"email":"kptdobe@gmail.com","name":"kptdobe"},{"email":"halls@adobe.com","name":"adobehalls"},{"email":"bradjohn@adobe.com","name":"fullcolorcoder"},{"email":"djaeggi@adobe.com","name":"djaeggi"},{"email":"dylandepass@gmail.com","name":"dylandepass"},{"email":"mhaack@adobe.com","name":"mhaack"},{"email":"amol@adobe.com","name":"amol-anand"},{"email":"stopp@adobe.com","name":"stopp-adobe"},{"email":"namarora@adobe.com","name":"namarora"},{"email":"doten@adobe.com","name":"doten"},{"email":"schmidt@adobe.com","name":"duh_schmidt"},{"email":"astha.bhargava23@gmail.com","name":"asthabh23"},{"email":"aljoseph@adobe.com","name":"aljoseph"},{"email":"zouhir.dahbi@outlook.com","name":"zdahbi"},{"email":"tuicu@adobe.com","name":"tuicu"},{"email":"fmeschbe@adobe.com","name":"fmeschbe"}],"readme":"# gatsby-source-parliament\n\nSource plugin for pulling files into the Gatsby graph from local directory.\n\nIt sucks the files into the graph as `File` nodes based on defined patterns, as\nif you'd configured\n[`gatsby-source-filesystem`](https://www.gatsbyjs.org/packages/gatsby-source-filesystem/)\non that directory. As such, all the tranformer plugins that operate on files\nshould work exactly as they do with `gatsby-source-filesystem` eg with\n`gatsby-transformer-remark`, `gatsby-transformer-json` etc.\n\nN.B. Although with respect to sourcing this works as a drop-in replacement for `gatsby-source-filesystem`, there are a number of helpers included in that module (`createFilePath`, `createRemoteFileNode`, `createFileNodeFromBuffer`) that are not duplicated here – but you can still import and use them from there as needed.\n\n## Install\n\n`npm install --save @adobe/gatsby-source-parliament`\n\n## Configuration\n\n### Plugin options\n\n- `name`: A machine name label for each plugin instance.\n- `path`: The path to the local directory.\n- `patterns` (optional): Passed to\n  [fast-glob](https://github.com/mrmlnc/fast-glob) to determine which files get\n  sucked into the graph.\n\n### Example gatsby-config.js\n\n```javascript\nmodule.exports = {\n  plugins: [\n    // You can have multiple instances of this plugin to read source files from\n    // different repositories or locations within a repository.\n    {\n      resolve: `@adobe/gatsby-source-parliament`,\n      options: {\n        name: `external`,\n        path: `path/to/local/directory`,\n        // Only import the docs folder from a codebase.\n        patterns: `docs/**`\n      }\n    }\n  ]\n};\n```\n\nThis will result in `File` nodes being put in your data graph, it's then up to you to do whatever it is you want to do with that data.\n\n## How to query\n\nYou can query file nodes exactly as you would node query for nodes created with\n[`gatsby-source-filesystem`](https://www.gatsbyjs.org/packages/gatsby-source-filesystem/),\neg:\n\n```graphql\n{\n  allFile {\n    edges {\n      node {\n        extension\n        dir\n        modifiedTime\n      }\n    }\n  }\n}\n```\n\nSimilarly, you can filter by the `name` you specified in the config by using\n`sourceInstanceName`:\n\n```graphql\n{\n  allFile(filter: { sourceInstanceName: { eq: \"external\" } }) {\n    edges {\n      node {\n        extension\n        dir\n        modifiedTime\n      }\n    }\n  }\n}\n```\n\n## Creating pages\n\nIf you want to programatically create pages on your site from the files in your git repo, you should be able to follow the standard examples, such as [part 7 of the Gatsby tutorial](https://www.gatsbyjs.org/tutorial/part-seven/) or [the standard docs page](https://www.gatsbyjs.org/docs/creating-and-modifying-pages/#creating-pages-in-gatsby-nodejs).\n\n### Contributing\n\nContributions are welcomed! Read the [Contributing Guide](./.github/CONTRIBUTING.md) for more information.\n\n### Licensing\n\nThis project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.","readmeFilename":"README.md"}