Skip to content

Instantly share code, notes, and snippets.

@DASpringate
Created September 6, 2013 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DASpringate/6464300 to your computer and use it in GitHub Desktop.
Save DASpringate/6464300 to your computer and use it in GitHub Desktop.
A quick setup of an example blog using the Samatha static site engine
require(devtools)
load_all(".")
site <- "/home/me/mysite"
skeleton(site)
setup_example_site(site)
## buggy - Have to run twice to get the tags to work...
samatha(site, rss = FALSE, initial = TRUE)
samatha(site, rss = FALSE, initial = TRUE)
# then cd to /home/me/mysite/mysite
# and do:
# python ~/samatha/server.py
# to get the development server
# browse to localhost/8000 to see the site
# Further post and page updates can be made with auto-build on by doing:
# samatha(site, rss = FALSE, initial = FALSE)
# hit excape to get back to the repl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment