summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-09-19 01:10:47 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2012-09-19 01:10:47 +0100
commitf51eca20f59ef3d9291b5df61ca357d7924872da (patch)
tree7c666bd7859b56af1743d6d7f6cdbbf1a86e28e4 /docs
parent9887cb57b2e7ac99301310957934765f3288fd21 (diff)
Fix some issues with relative URLs on Github Pages.
Diffstat (limited to 'docs')
-rw-r--r--docs/content/2.download/default.yml6
-rw-r--r--docs/site.yml3
-rw-r--r--docs/templates/index.liquid8
-rw-r--r--docs/templates/shared/_head.liquid6
-rw-r--r--docs/templates/shared/_header.liquid4
5 files changed, 15 insertions, 12 deletions
diff --git a/docs/content/2.download/default.yml b/docs/content/2.download/default.yml
index 9d69780a..54f4d78b 100644
--- a/docs/content/2.download/default.yml
+++ b/docs/content/2.download/default.yml
@@ -7,9 +7,9 @@ body:
possible to build it for nearly any platform. Prebuilt binaries are
available for Linux (64-bit x86) and OS X.
- * [Download binary for 64-bit Linux](/download/linux_x86_64/jq)
- * [Download binary for OS X](/download/osx_64/jq)
- * [Download source](/download/source/jq.tgz)
+ * [Download binary for 64-bit Linux](linux_x86_64/jq)
+ * [Download binary for OS X](osx_64/jq)
+ * [Download source](source/jq.tgz)
The binaries should just run, but you may need to make them
executable first using:
diff --git a/docs/site.yml b/docs/site.yml
index b0d760ef..b34a9faa 100644
--- a/docs/site.yml
+++ b/docs/site.yml
@@ -2,6 +2,9 @@
jq_version: 1.0
+# Next line is needed for publishing to github pages
+# root: '/jq'
+root: ''
footer: |
This website is made with [Bonsai](http://www.tinytree.info) and
diff --git a/docs/templates/index.liquid b/docs/templates/index.liquid
index d2d06de5..aaff1c9f 100644
--- a/docs/templates/index.liquid
+++ b/docs/templates/index.liquid
@@ -7,7 +7,7 @@
<div class="container">
<div class="row">
<div class="hero-unit">
- <img src="/jq.png" style="width: 400px; height: 220px; float: left; margin-right: 60px">
+ <img src="{{root}}/jq.png" style="width: 400px; height: 220px; float: left; margin-right: 60px">
<div id="blurb">
{{blurb | markdownify}}
<div class="btn-group" style="float:right">
@@ -16,9 +16,9 @@
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
- <li><a href="/download/linux_x86_64/jq">Linux (x86_64)</a></li>
- <li><a href="/download/osx_64/jq">OS X (64-bit)</a></li>
- <li><a href="/download">Other platforms and source</a></li>
+ <li><a href="{{root}}/download/linux_x86_64/jq">Linux (x86_64)</a></li>
+ <li><a href="{{root}}/download/osx_64/jq">OS X (64-bit)</a></li>
+ <li><a href="{{root}}/download">Other platforms and source</a></li>
</ul>
</div>
diff --git a/docs/templates/shared/_head.liquid b/docs/templates/shared/_head.liquid
index acc6dfe2..5f2b7da8 100644
--- a/docs/templates/shared/_head.liquid
+++ b/docs/templates/shared/_head.liquid
@@ -1,12 +1,12 @@
<head>
<meta charset=UTF-8>
<title>{{headline}} | jq</title>
- <link rel="stylesheet" href="/bootstrap/css/bootstrap.css" type="text/css">
- <link rel="stylesheet" href="/css/base.css" type="text/css">
+ <link rel="stylesheet" href="{{root}}/bootstrap/css/bootstrap.css" type="text/css">
+ <link rel="stylesheet" href="{{root}}/css/base.css" type="text/css">
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
- <script src="/bootstrap/js/bootstrap.js"></script>
+ <script src="{{root}}/bootstrap/js/bootstrap.js"></script>
</head> \ No newline at end of file
diff --git a/docs/templates/shared/_header.liquid b/docs/templates/shared/_header.liquid
index 82f778d7..020b130f 100644
--- a/docs/templates/shared/_header.liquid
+++ b/docs/templates/shared/_header.liquid
@@ -7,12 +7,12 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
- <a class="brand" href="/">jq</a>
+ <a class="brand" href="{{root}}/">jq</a>
<div class="nav-collapse collapse">
<ul class="nav">
{% for item in navigation %}
<li {% if item.permalink == permalink %} class="active" {% endif %}>
- <a href="{{item.permalink}}">{{item.name}}</a>
+ <a href="{{root}}{{item.permalink}}">{{item.name}}</a>
</li>
{% endfor %}
<li><a href="https://github.com/stedolan/jq/issues">Issues</a></li>