#336 Remove new lines before base commands
- GitHub doesn't seem able to add a space before a new base command without adding random new lines in the entire list
This commit is contained in:
parent
0abfd5705c
commit
72365bc6e4
@ -33,7 +33,7 @@ public class CommandPageCreater implements ToolTask {
|
|||||||
+ "commands/command_entry.tpl.md");
|
+ "commands/command_entry.tpl.md");
|
||||||
|
|
||||||
StringBuilder commandsResult = new StringBuilder();
|
StringBuilder commandsResult = new StringBuilder();
|
||||||
addCommandsInfo(commandsResult, baseCommands, template, true);
|
addCommandsInfo(commandsResult, baseCommands, template);
|
||||||
|
|
||||||
FileUtils.generateFileFromTemplate(
|
FileUtils.generateFileFromTemplate(
|
||||||
ToolsConstants.TOOLS_SOURCE_ROOT + "commands/commands.tpl.md",
|
ToolsConstants.TOOLS_SOURCE_ROOT + "commands/commands.tpl.md",
|
||||||
@ -43,7 +43,7 @@ public class CommandPageCreater implements ToolTask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void addCommandsInfo(StringBuilder sb, Collection<CommandDescription> commands,
|
private static void addCommandsInfo(StringBuilder sb, Collection<CommandDescription> commands,
|
||||||
final String template, boolean addNewLine) {
|
final String template) {
|
||||||
for (CommandDescription command : commands) {
|
for (CommandDescription command : commands) {
|
||||||
Map<String, String> tags = ANewMap
|
Map<String, String> tags = ANewMap
|
||||||
.with("command", CommandUtils.constructCommandPath(command))
|
.with("command", CommandUtils.constructCommandPath(command))
|
||||||
@ -54,10 +54,7 @@ public class CommandPageCreater implements ToolTask {
|
|||||||
sb.append(TagReplacer.applyReplacements(template, tags));
|
sb.append(TagReplacer.applyReplacements(template, tags));
|
||||||
|
|
||||||
if (!command.getChildren().isEmpty()) {
|
if (!command.getChildren().isEmpty()) {
|
||||||
addCommandsInfo(sb, command.getChildren(), template, false);
|
addCommandsInfo(sb, command.getChildren(), template);
|
||||||
}
|
|
||||||
if (addNewLine) {
|
|
||||||
sb.append("\n\n");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<!-- AUTO-GENERATED FILE! Do not edit this directly -->
|
<!-- AUTO-GENERATED FILE! Do not edit this directly -->
|
||||||
<!-- File auto-generated on Sat Dec 26 13:56:13 CET 2015. See commands/commands.tpl.md -->
|
<!-- File auto-generated on Sat Dec 26 14:05:00 CET 2015. See commands/commands.tpl.md -->
|
||||||
|
|
||||||
## AuthMe Commands
|
## AuthMe Commands
|
||||||
You can use the following commands to use the features of AuthMe. Mandatory arguments are marked with `< >`
|
You can use the following commands to use the features of AuthMe. Mandatory arguments are marked with `< >`
|
||||||
@ -44,33 +44,21 @@ brackets; optional arguments are enclosed in square brackets (`[ ]`).
|
|||||||
- **/authme reload**: Reload the AuthMeReloaded plugin.
|
- **/authme reload**: Reload the AuthMeReloaded plugin.
|
||||||
<br />Requires `authme.admin.reload`
|
<br />Requires `authme.admin.reload`
|
||||||
- **/authme version**: Show detailed information about the installed AuthMeReloaded version, the developers, contributors, and license.
|
- **/authme version**: Show detailed information about the installed AuthMeReloaded version, the developers, contributors, and license.
|
||||||
|
|
||||||
|
|
||||||
- **/login** <password>: Command to log in using AuthMeReloaded.
|
- **/login** <password>: Command to log in using AuthMeReloaded.
|
||||||
<br />Requires `authme.player.login`
|
<br />Requires `authme.player.login`
|
||||||
- **/login help** [query]: View detailed help pages about AuthMeReloaded login commands.
|
- **/login help** [query]: View detailed help pages about AuthMeReloaded login commands.
|
||||||
|
|
||||||
|
|
||||||
- **/logout**: Command to logout using AuthMeReloaded.
|
- **/logout**: Command to logout using AuthMeReloaded.
|
||||||
<br />Requires `authme.player.logout`
|
<br />Requires `authme.player.logout`
|
||||||
- **/logout help** [query]: View detailed help pages about AuthMeReloaded logout commands.
|
- **/logout help** [query]: View detailed help pages about AuthMeReloaded logout commands.
|
||||||
|
|
||||||
|
|
||||||
- **/register** <password> [verifyPassword]: Command to register using AuthMeReloaded.
|
- **/register** <password> [verifyPassword]: Command to register using AuthMeReloaded.
|
||||||
<br />Requires `authme.player.register`
|
<br />Requires `authme.player.register`
|
||||||
- **/register help** [query]: View detailed help pages about AuthMeReloaded register commands.
|
- **/register help** [query]: View detailed help pages about AuthMeReloaded register commands.
|
||||||
|
|
||||||
|
|
||||||
- **/unreg** <password>: Command to unregister using AuthMeReloaded.
|
- **/unreg** <password>: Command to unregister using AuthMeReloaded.
|
||||||
<br />Requires `authme.player.unregister`
|
<br />Requires `authme.player.unregister`
|
||||||
- **/unreg help** [query]: View detailed help pages about AuthMeReloaded unregister commands.
|
- **/unreg help** [query]: View detailed help pages about AuthMeReloaded unregister commands.
|
||||||
|
|
||||||
|
|
||||||
- **/changepassword** <oldPassword> <newPassword>: Command to change your password using AuthMeReloaded.
|
- **/changepassword** <oldPassword> <newPassword>: Command to change your password using AuthMeReloaded.
|
||||||
<br />Requires `authme.player.changepassword`
|
<br />Requires `authme.player.changepassword`
|
||||||
- **/changepassword help** [query]: View detailed help pages about AuthMeReloaded changepassword commands.
|
- **/changepassword help** [query]: View detailed help pages about AuthMeReloaded changepassword commands.
|
||||||
|
|
||||||
|
|
||||||
- **/email**: The AuthMeReloaded Email command base.
|
- **/email**: The AuthMeReloaded Email command base.
|
||||||
- **/email help** [query]: View detailed help pages about AuthMeReloaded email commands.
|
- **/email help** [query]: View detailed help pages about AuthMeReloaded email commands.
|
||||||
- **/email add** <email> <verifyEmail>: Add a new email address to your account.
|
- **/email add** <email> <verifyEmail>: Add a new email address to your account.
|
||||||
@ -79,13 +67,10 @@ brackets; optional arguments are enclosed in square brackets (`[ ]`).
|
|||||||
<br />Requires `authme.player.email.change`
|
<br />Requires `authme.player.email.change`
|
||||||
- **/email recover** <email>: Recover your account using an Email address by sending a mail containing a new password.
|
- **/email recover** <email>: Recover your account using an Email address by sending a mail containing a new password.
|
||||||
<br />Requires `authme.player.email.recover`
|
<br />Requires `authme.player.email.recover`
|
||||||
|
|
||||||
|
|
||||||
- **/captcha** <captcha>: Captcha command for AuthMeReloaded.
|
- **/captcha** <captcha>: Captcha command for AuthMeReloaded.
|
||||||
<br />Requires `authme.player.captcha`
|
<br />Requires `authme.player.captcha`
|
||||||
- **/captcha help** [query]: View detailed help pages about AuthMeReloaded captcha commands.
|
- **/captcha help** [query]: View detailed help pages about AuthMeReloaded captcha commands.
|
||||||
|
|
||||||
|
|
||||||
- **/converter** <job>: Converter command for AuthMeReloaded.
|
- **/converter** <job>: Converter command for AuthMeReloaded.
|
||||||
<br />Requires `authme.admin.converter`
|
<br />Requires `authme.admin.converter`
|
||||||
- **/converter help** [query]: View detailed help pages about AuthMeReloaded converter commands.
|
- **/converter help** [query]: View detailed help pages about AuthMeReloaded converter commands.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user