Fix Rack setup so that viewing documentation locally is less painful.
This commit is contained in:
1 parent
84026f0513
commit
b660bd2be6
2 files changed
+3
-3
No files matched your search
+3
-1
@@ -38,11 +38,13 @@ task :serve do
|
|||||||
|
|
||||||
server = fork {
|
server = fork {
|
||||||
app = Rack::Builder.app {
|
app = Rack::Builder.app {
|
||||||
|
map "/jq" do
|
||||||
use Bonsai::StaticPassThrough, :root => Bonsai.root_dir + "/output", :urls => ["/"]
|
use Bonsai::StaticPassThrough, :root => Bonsai.root_dir + "/output", :urls => ["/"]
|
||||||
|
end
|
||||||
run Bonsai::DevelopmentServer
|
run Bonsai::DevelopmentServer
|
||||||
}
|
}
|
||||||
Rack::Handler.default.run(app, :Port => 5000) do
|
Rack::Handler.default.run(app, :Port => 5000) do
|
||||||
Launchy.open("http://localhost:5000/")
|
Launchy.open("http://localhost:5000/jq")
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
Watch.new("{content,templates,public}/**/*") { Bonsai::Exporter.process! }
|
Watch.new("{content,templates,public}/**/*") { Bonsai::Exporter.process! }
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
jq_version: 1.1
|
jq_version: 1.1
|
||||||
# Next line is needed for publishing to github pages
|
|
||||||
root: '/jq'
|
root: '/jq'
|
||||||
# root: ''
|
|
||||||
footer: |
|
footer: |
|
||||||
|
|
||||||
This website is made with [Bonsai](http://www.tinytree.info) and
|
This website is made with [Bonsai](http://www.tinytree.info) and
|
||||||
|
|||||||
Reference in new issue
Block a user