Skip to content
Browse files

Docs: fix code URLs in ocamldoc to point to github

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
  • Loading branch information...
1 parent e841c2d commit db08f1546afc46c130c2f388d9bc6ef160d23a15 @robhoes robhoes committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 ocaml/doc/ocamldoc.js
View
6 ocaml/doc/ocamldoc.js
@@ -24,7 +24,7 @@ var component_stats = {};
var component_deps = {};
var root = '/bind/myrepos/';
-var code_url = 'http://xenbits.xen.org/xapi/';
+var code_url = 'http://github.com/xen-org/';
function fill_components()
{
@@ -446,13 +446,13 @@ function moduledoc(mod)
if (mod.location.interface != 'unknown') {
if_file = r.exec(mod.location.interface)[1];
x = /([\.\-\w]*)\/([^\|]*)/.exec(if_file);
- url = code_url + x[1] + '?raw-file/tip/' + x[2];
+ url = code_url + x[1] + '/blob/master/' + x[2];
html += '<tr><td><b>Interface file:</b></td><td><a href="' + url + '" target="_blank">' + if_file + '</a></td></tr>';
}
if (mod.location.implementation != 'unknown') {
im_file = r.exec(mod.location.implementation)[1];
x = /([\.\-\w]*)\/([^\|]*)/.exec(im_file);
- url = code_url + x[1] + '?raw-file/tip/' + x[2];
+ url = code_url + x[1] + '/blob/master/' + x[2];
html += '<tr><td><b>Implementation file:</b></td><td><a href="' + url + '" target="_blank">' + im_file + '</a></td></tr>';
}
html += '</table></div>';

0 comments on commit db08f15

Please sign in to comment.
Something went wrong with that request. Please try again.