Skip to content

publish a simple website from a public google drive folder

Notifications You must be signed in to change notification settings

giorgiouboldi/drive-in

 
 

Repository files navigation

drive-in

publish a simple website from a public google drive folder without coding in HTML. Only some markdown syntax are required for bod or italic Everythiong else is driven by googledocs!

advanced usages

To be used in conjunction with editey which allow you to comment and edit collaboratively on every pieces of code!

How to install: 30 sec. installation

Drive-in uses just one (public) folder as website root and generates a one-level structure of subfolders as menu entries.

Apply for a google public API key, clone the project, copy the file settings.sample.js into settings.js and modify it according to your need... Voila the default settings :

'use strict';

var settings = {
	baseUrl: 'https://drive.google.com/folderview?id='// the google drive sharing base url
};

/*
  	Modify according to your own data ...
*/
settings.apiKey = 'your (public!) api key';
settings.defaultFolder = 'your public default folder';
settings.title = 'DRIVE-IN'

That'is

Q&A

"I want to add a bookmark (internal link) into a google document"

In Google Docs, the links between different parts of the same documents are made by bookmarks. Drive-in can recognize those links and transform them in html anchor links.

"... and if I want to use vimeo videos?"

This is a markdown magic. Just type in a google doc a line starting with ^^vimeo followed by the vimeo share link:

Oh! bla bla bla...

^^vimeo http://vimeo.com/38447770

Eh! bla bla bla...

configure google analytics

Thanks to angularytics. The google analytics script is executed directly inside index.html. Every step in every angular view is quietly recorded.

About

publish a simple website from a public google drive folder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.6%
  • CSS 4.4%