Exemple #1
0
 @Override
 public void visitSummary(SummarySection summarySection) {
   docbook.open("refnamediv").text("\n");
   docbook.open("refname").text(doc.getInvocation()).close("refname").text("\n");
   docbook.open("refpurpose").text(doc.getSummary().getSummary()).close("refpurpose").text("\n");
   docbook.close("refnamediv").text("\n");
 }
Exemple #2
0
 @Override
 public void startSynopsis(Synopsis synopsis) {
   hadFirstArgument = false;
   hadOptions = false;
   docbook.open("cmdsynopsis").text("\n");
   docbook.open("command").text(doc.getInvocation()).close("command").text("\n");
 }
Exemple #3
0
  @Override
  public void start(Doc doc) {
    this.doc = doc;
    ResourceBundle bundle = CeylonHelpToolMessages.RESOURCE_BUNDLE;
    if (!omitDoctype) {
      docbook
          .doctype(
              "refentry PUBLIC \"-//OASIS//DTD DocBook XML V4.1.2//EN\"\n"
                  + "\"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd\"")
          .text("\n");
    }

    docbook.open("refentry").text("\n");
    docbook.open("refmeta").text("\n");
    docbook.open("refentrytitle").text(doc.getInvocation()).close("refentrytitle").text("\n");
    docbook.open("manvolnum").text("1").close("manvolnum").text("\n");
    docbook.close("refmeta").text("\n");
  }