All Projects → foursquare → sites-to-markdown

foursquare / sites-to-markdown

Licence: other
convert google sites html to markdown

Programming Languages

java
68154 projects - #9 most used programming language

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!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].