Skip to content

Commit

Permalink
fix linking
Browse files Browse the repository at this point in the history
  • Loading branch information
crucialfelix committed Jan 9, 2020
1 parent 8438a8b commit 548fdc2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tasks/render-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ const redirects = {
package: "server-plus",
name: "ServerPlus", // actually the whole package
},
ServerState: {
package: "server",
name: "ServerState",
},
map: {
package: "server",
name: "mapping",
Expand Down Expand Up @@ -488,7 +492,8 @@ const renderIndexJson = (kv, package, packages) => {
);

const buildLink = (pkg, name) => {
const page = pageForName(pkg, name) || `api?id=${stripQuotes(name)}`;
const n = stripQuotes(name);
const page = pageForName(pkg, n) || `api?id=${stripQuotes(name)}`;
return `#/packages/${pkg}/${page}`;
};

Expand Down

0 comments on commit 548fdc2

Please sign in to comment.