@knight-lab/googledrive2jekyll
v1.3.5
Published
Grabs images and Google Docs in a designated folder marked up with ArchieML and turns them into Jekyll post files.
Downloads
11
Readme
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"
});