Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nicol committed Oct 26, 2024
1 parent ffa138d commit bada393
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
22 changes: 16 additions & 6 deletions src/main/java/org/beta/WikiGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static void main(String[] args) throws IOException {

MTGControler.getInstance();

buildPluginsdirectory();
//buildPluginsdirectory();

buildePluginsIndex();

Expand Down Expand Up @@ -60,12 +60,22 @@ private static void buildePluginsIndex() throws IOException {

List<MTGPlugin> ps = PluginRegistry.inst().listPlugins(e.getKey()).stream().sorted().toList();

ps.forEach(p->
builder.append("* [").append(p.getName()).append("]")
builder.append("| | Name | Status |\n");
builder.append("|----|---------|---------|\n");


ps.forEach(p->{

builder.append("![](https://raw.githubusercontent.com/nicho92/MtgDesktopCompanion/refs/heads/master/src/main/resources/icons/plugins/"+p.getName().toLowerCase().replace(" ","%20")+".png)").append("|");

builder.append("[").append(p.getName()).append("]")
.append("(").append(p.getType()).append("-").append(p.getName().replace(" ", "_")).append(")")
.append(p.getStatut()!=STATUT.STABLE?" - _"+p.getStatut().name().toLowerCase()+"_":"")
.append("\n")
);
.append("|");

builder.append(p.getStatut()).append("|\n");


});

});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ public MTGEdition getSetById(String id) {
logger.error(e);
return null;
}


}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public STATUT getStatut() {

@Override
public MTGQueryBuilder<?> getMTGQueryManager() {
MTGQueryBuilder<?> b= new JsonCriteriaBuilder();
var b= new JsonCriteriaBuilder();
initBuilder(b);
return b;
}
Expand Down

0 comments on commit bada393

Please sign in to comment.