Skip to content

Instantly share code, notes, and snippets.

@ajayns
ajayns / component.sh
Last active August 4, 2020 18:27
Create React Component
name=$1
subdir=$2
dir=src/components/$subdir$name
mkdir $dir
comp=$name.jsx
styles=_$name.scss
echo "import React from 'react';
@ajayns
ajayns / final_report.md
Last active August 12, 2018 12:07
Final report by Ajay NS for Gatsby Source Plone, a GSoC 2018 project with Plone

Final Report for Google Summer of Code

Plone GatsbyJS Integration

Gatsby is a blazing fast static site generator for React. gatsby-source plugin is a Gatsby plugin that pulls the whole content tree from the plone.restapi and makes it available for querying via GraphQL in a hierarchical data structure, handling all native content types including images and files. gatsby-starter-plone is a Gatsby site that uses the plugin to source the data from a Plone site, showcasing all use cases with clear documentation for each feature. This is designed to work as a starter for kickstarting development with Gatsby and Plone. Relevant documentation for each feature as well as a narrative tutorial for the whole building process has also been written.

Using the gatsby-starter-plone, users can directly get into building Gatsby sites with Plone and use the narrative documentation as reference for each feature implemented. gatsby-source-plone includes feature-wise documentation for information on how it works