Created
          September 6, 2013 14:07 
        
      - 
      
- 
        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
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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