@knight-lab/googledrive2jekyll

1.3.5 • Public • Published

GoogleDrive2Jekyll

Knight Lab publishing system using Google Drive to Jekyll.

Posts example:

const path = require('path');
const GoogleDriveToJekyll = require('@knight-lab/googledrive2jekyll').GoogleDriveToJekyll;

const BASE_PATH = path.resolve('./website');
const POST_PATH = "/_results/";
const IMAGE_PATH = "/assets/results/";
const FOLDER_ID = "google_drive_unique_id_goes_here";
const OPTIONS = {
    em_bold: true,
    layout_type: null
};

const drive_to_jekyll = new GoogleDriveToJekyll(BASE_PATH, POST_PATH, IMAGE_PATH, FOLDER_ID, OPTIONS);
drive_to_jekyll.fetch();

People example:

const path = require('path');
const SpreadsheetToJekyllPeople = require('@knight-lab/googledrive2jekyll').SpreadsheetToJekyllPeople;

const BASE_PATH = path.resolve('./website');
const PEOPLE_PATH = "/_people/";
const IMAGE_PATH = "/assets/people/";
const SPREADSHEET_ID = "google_spreadsheet_unique_id_goes_here";

const spreadsheet_to_people = new SpreadsheetToJekyllPeople(BASE_PATH, PEOPLE_PATH, IMAGE_PATH);

spreadsheet_to_people.fetch(SPREADSHEET_ID, {
    check_studio_flag:true,
    image_url_prefix: "http://knightlab.northwestern.edu"
});

Readme

Keywords

none

Package Sidebar

Install

npm i @knight-lab/googledrive2jekyll

Weekly Downloads

3

Version

1.3.5

License

ISC

Unpacked Size

41.5 kB

Total Files

13

Last publish

Collaborators

  • zachwise
  • joegermuska