Skip to content

Commit

Permalink
[fix][doc] change the method of generating reference docs titles. (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
zuobiao-zhou authored Jun 12, 2023
1 parent 791282e commit 8ffa2df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private void generateDocument(StringBuilder sb, String module, JCommander obj) {
sb.append("\n\n");
CmdBase cmdObj = (CmdBase) obj.getObjects().get(0);
cmdObj.jcommander.getCommands().forEach((subK, subV) -> {
sb.append("\n\n## <em>").append(subK).append("</em>\n\n");
sb.append("\n\n## ").append(subK).append("\n\n");
sb.append(cmdObj.getUsageFormatter().getCommandDescription(subK)).append("\n\n");
sb.append("**Command:**\n\n");
sb.append("```shell\n$ pulsar-admin ").append(module).append(" ")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private String generateDocument(String module, JCommander commander) {
sb.append(" subcommand").append("\n```").append("\n\n");
cmdObj.getCommands().forEach((subK, subV) -> {
if (!subK.equals(name)) {
sb.append("\n\n## <em>").append(subK).append("</em>\n\n");
sb.append("\n\n## ").append(subK).append("\n\n");
String subDesc = cmdObj.getUsageFormatter().getCommandDescription(subK);
if (null != subDesc && !subDesc.isEmpty()) {
sb.append(subDesc).append("\n");
Expand Down

0 comments on commit 8ffa2df

Please sign in to comment.