Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #181 from challgren/relative-links

Use relative links instead of hard coding "/"
  • Loading branch information...
commit 634c32cc6ecc8e3df0c67374dd43cf86732f902e 2 parents 73551d0 + 445073e
@mansilladev mansilladev authored
View
6 public/javascripts/docs.js
@@ -156,13 +156,13 @@
$('#oauthAuthenticated').hide();
$('section.credentials').removeClass('authed');
if (params[1].name == 'oauth') {
- $.post('/auth', params, function(result) {
+ $.post('auth', params, function(result) {
if (result.signin) {
window.open(result.signin,"_blank","height=900,width=800,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
}
})
} else if (params[1].name == 'oauth2') {
- $.post('/auth2', params, function(result) {
+ $.post('auth2', params, function(result) {
if (result.signin) {
window.open(result.signin,"_blank","height=900,width=800,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
}
@@ -253,7 +253,7 @@
.addClass('response prettyprint'));
}
- $.post('/processReq', params, function(result, text) {
+ $.post('processReq', params, function(result, text) {
// If we get passed a signin property, open a window to allow the user to signin/link their account
if (result.signin) {
window.open(result.signin,"_blank","height=900,width=800,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
View
2  public/stylesheets/style.css
@@ -453,7 +453,7 @@ li {
border-radius: 5px;
margin: 10px 0;
/* &.authrequired .http-method {
- background-image: url(/images/lock.png);
+ background-image: url(images/lock.png);
background-repeat: no-repeat;
background-position: 7px 50%;
}*/
View
2  views/api.jade
@@ -48,7 +48,7 @@ block content
div(id='oauthAuthenticated', style='display:none')
br
span(style='vertical-align:botttom') Authenticated with OAuth
- img(src='/images/accept.png')
+ img(src='images/accept.png')
- if (authed && (apiInfo.oauth || apiInfo.oauth2))
script.
document.getElementById('oauthAuthenticated').style.display = 'block';
View
2  views/index.jade
@@ -4,4 +4,4 @@ h1=title
// ul
// - for (var api in apiInfo)
-// li: a(href = '/' + api) #{apiInfo[api].name}
+// li: a(href = api) #{apiInfo[api].name}
View
16 views/layout.jade
@@ -6,8 +6,8 @@ html
-else
- var title = 'Live Documentation'
title=title
- link(rel='stylesheet', href='/stylesheets/prettify.css')
- link(rel='stylesheet', href='/stylesheets/style.css')
+ link(rel='stylesheet', href='stylesheets/prettify.css')
+ link(rel='stylesheet', href='stylesheets/style.css')
body
block content
@@ -17,9 +17,9 @@ html
div(class='f-right') Powered by
a(href='https://github.com/mashery/iodocs') I/O Docs
script(src='https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js')
- script(src='/javascripts/json2.js')
- script(src='/javascripts/prettify.js')
- script(src='/javascripts/utilities.js')
- script(src='/javascripts/livedocs.js')
- script(src='/javascripts/docs.js')
- script(src='/javascripts/bookmarks.js')
+ script(src='javascripts/json2.js')
+ script(src='javascripts/prettify.js')
+ script(src='javascripts/utilities.js')
+ script(src='javascripts/livedocs.js')
+ script(src='javascripts/docs.js')
+ script(src='javascripts/bookmarks.js')
View
2  views/listAPIs.jade
@@ -6,4 +6,4 @@ block content
ul
- for (var api in apiInfo)
- li: a(href = '/' + api) #{apiInfo[api].name}
+ li: a(href = api) #{apiInfo[api].name}
Please sign in to comment.
Something went wrong with that request. Please try again.