convert google sites html to markdown
Java
Switch branches/tags
Nothing to show
Latest commit e034aa8 Dec 17, 2014
Permalink
Failed to load latest commit information.
src/jon fixes Dec 17, 2014
.gitignore google sites to markdown! Feb 8, 2013
README.md compile Dec 17, 2014
pom.xml google sites to markdown! Feb 8, 2013

README.md

Convert Google Sites to markdown

The conversion is far from perfect, but will handle most major html tags besides tables. img src attributes will point to their absolute paths on google sites.

Prerequisites

Liberate your sites from google using Google Sites Liberation

Here's what it looks like for a google apps domain:

Foursquare Liberation

note: if you have two-factor authentication, you'll probably have to generate a password for this

Requirements

  • java 1.7
  • maven

Usage

  1. Make sure your environment's jvm is 1.7

     # verify the version
     java -version
     # set the JAVA_HOME to the appropriate path (like this on osx)
     export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
    
  2. Run the conversion

     export MAVEN_OPTS=-Dfile.encoding=UTF-8
     mvn compile
     mvn exec:java -Dexec.mainClass="jon.Convert" -Dexec.args="/path/to/exported/sites/ /path/to/markdown/destination"
    
  3. Use gollum to host your new wiki!