Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NeeEoo committed Oct 16, 2024
1 parent cb7637c commit de9ee72
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions api-generator/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@ class Main {
}

class CodenameApi extends Api {
override function pathToUrl(path:String):String {
var res = super.pathToUrl(path);
if(res.endsWith("index.html")) {
res = res.substr(0, res.length - 10);
}
return res;
}

override function packageToUrl(path:String):String {
var res = super.packageToUrl(path);
if(res.endsWith("index.html")) {
res = res.substr(0, res.length - 10);
}
return res;
}

override function getSourceLink(type:TypeInfos):Null<String> {
var module = type.module != null ? type.module : type.path;
var ending = ".hx";
Expand Down

0 comments on commit de9ee72

Please sign in to comment.