From 3acd43e08dc1101c5d8a8c0784a34bfc177232a8 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Thu, 7 May 2015 16:42:51 +0900 Subject: [PATCH] special case a few samples --- docs/js/samples.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/js/samples.js b/docs/js/samples.js index 684128ae..c9f4a447 100644 --- a/docs/js/samples.js +++ b/docs/js/samples.js @@ -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);