]> granicus.if.org Git - jq/commitdiff
Fix some issues with relative URLs on Github Pages.
authorStephen Dolan <mu@netsoc.tcd.ie>
Wed, 19 Sep 2012 00:10:47 +0000 (01:10 +0100)
committerStephen Dolan <mu@netsoc.tcd.ie>
Wed, 19 Sep 2012 00:10:47 +0000 (01:10 +0100)
docs/content/2.download/default.yml
docs/site.yml
docs/templates/index.liquid
docs/templates/shared/_head.liquid
docs/templates/shared/_header.liquid

index 9d69780a564e524d818cc7a3483a4a0c8673b73f..54f4d78b3f851f9c0c8fef7b15dd243e81b94327 100644 (file)
@@ -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:
index b0d760ef89da64651dc5a2a90c412ab226f27cb1..b34a9faa73478bc48e683c8ec351415801722a8d 100644 (file)
@@ -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
index d2d06de58998f49b8b199e32d22f315e064b8950..aaff1c9f21f68602a0b752f9f9cec5ba467a0b41 100644 (file)
@@ -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>
 
index acc6dfe2b61a77b692f5780c7b3e09a663c30dc1..5f2b7da801da216c14625057ba773f296a9dde08 100644 (file)
@@ -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
index 82f778d71b7bf0cc571b3abd27ef6c6c8744a4cb..020b130ffa11334ef6a3ca93baea1ced44b016c0 100644 (file)
@@ -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>