]> granicus.if.org Git - jq/commitdiff
Fix Rack setup so that viewing documentation locally is less painful.
authorStephen Dolan <mu@netsoc.tcd.ie>
Mon, 10 Dec 2012 22:25:11 +0000 (22:25 +0000)
committerStephen Dolan <mu@netsoc.tcd.ie>
Mon, 10 Dec 2012 22:25:11 +0000 (22:25 +0000)
docs/Rakefile
docs/site.yml

index 62b0139ea7e2324c16e75f0456e40f50cd6cacae..51e9b4841a8b9a4e630d108590fa5c7c763b024e 100644 (file)
@@ -38,11 +38,13 @@ task :serve do
     
     server = fork {        
       app = Rack::Builder.app {
-        use Bonsai::StaticPassThrough, :root => Bonsai.root_dir + "/output", :urls => ["/"]
+        map "/jq" do
+          use Bonsai::StaticPassThrough, :root => Bonsai.root_dir + "/output", :urls => ["/"]
+        end
         run Bonsai::DevelopmentServer
       }
       Rack::Handler.default.run(app, :Port => 5000) do
-        Launchy.open("http://localhost:5000/")
+        Launchy.open("http://localhost:5000/jq")
       end
     }    
     Watch.new("{content,templates,public}/**/*") { Bonsai::Exporter.process! }
index 92a690d117579510b5b0058981a93f95f351bfb8..df758cef3e395cc1b22d07fcdb5f0c4867dc4405 100644 (file)
@@ -2,9 +2,7 @@
 
 
 jq_version: 1.1
-# Next line is needed for publishing to github pages
 root: '/jq'
-# root: ''
 footer: |
   
   This website is made with [Bonsai](http://www.tinytree.info) and