Skip to content

Commit

Permalink
special case a few samples
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed May 7, 2015
1 parent ae3cad6 commit 3acd43e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/js/samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ requirejs([
var search = parseSearchString(window.location.search);
if (search.repo && search.owner) {
if (search.type === "docs") {
window.location.href = "http://github.com/" + search.owner + "/" + search.repo + "/blob/master/README.md";
var special = {
"greggman/hft-unity2dplatformer": "/docs/unity/2d-platformer.html",
"greggman/hft-unitycharacterexample": "/docs/unity/3d-characters.html",
};
var url = special[search.owner + "/"+ search.repo] ||
"http://github.com/" + search.owner + "/" + search.repo + "/blob/master/README.md";
window.location.href = url;
} else {

setButtonTarget("github", "http://github.com/" + search.owner + "/" + search.repo);
Expand Down

0 comments on commit 3acd43e

Please sign in to comment.