diff options
Diffstat (limited to 'Source/cmDocumentationFormatterHTML.cxx')
-rw-r--r-- | Source/cmDocumentationFormatterHTML.cxx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Source/cmDocumentationFormatterHTML.cxx b/Source/cmDocumentationFormatterHTML.cxx index 3451183..a1745d3 100644 --- a/Source/cmDocumentationFormatterHTML.cxx +++ b/Source/cmDocumentationFormatterHTML.cxx @@ -97,6 +97,21 @@ void cmDocumentationFormatterHTML const std::vector<cmDocumentationEntry> &entries = section.GetEntries(); + + os << "<ul>\n"; + for(std::vector<cmDocumentationEntry>::const_iterator op + = entries.begin(); op != entries.end(); ++ op ) + { + if(op->Name.size()) + { + os << " <li><a href=\"#command_" + << op->Name.c_str() << "\"><b><code>"; + this->PrintHTMLEscapes(os, op->Name.c_str()); + os << "</code></b></a></li>"; + } + } + os << "</ul>\n" ; + for(std::vector<cmDocumentationEntry>::const_iterator op = entries.begin(); op != entries.end();) { @@ -108,9 +123,10 @@ void cmDocumentationFormatterHTML os << " <li>\n"; if(op->Name.size()) { - os << " <b><code>"; + os << " <a name=\"command_"<< + op->Name.c_str() << "\"><b><code>"; this->PrintHTMLEscapes(os, op->Name.c_str()); - os << "</code></b>: "; + os << "</code></b></a>: "; } this->PrintHTMLEscapes(os, op->Brief.c_str()); if(op->Full.size()) |