diff options
Diffstat (limited to 'Source/cmDocumentationFormatterHTML.cxx')
-rw-r--r-- | Source/cmDocumentationFormatterHTML.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmDocumentationFormatterHTML.cxx b/Source/cmDocumentationFormatterHTML.cxx index 0c44ed7..c3b0dee 100644 --- a/Source/cmDocumentationFormatterHTML.cxx +++ b/Source/cmDocumentationFormatterHTML.cxx @@ -206,3 +206,18 @@ void cmDocumentationFormatterHTML::PrintHTMLEscapes(std::ostream& os, } } } + +void cmDocumentationFormatterHTML +::PrintIndex(std::ostream& os, + std::vector<const cmDocumentationSection *>& sections) +{ + os << "<h2><a name=\"section_Index\"/>Master Index</h2>\n"; + os << "<ul>\n"; + for(unsigned int i=0; i < sections.size(); ++i) + { + std::string name = sections[i]-> + GetName((this->GetForm())); + os << " <li><a href=\"#section_" << name << "\"<b>" << name << "</b></a></li>\n"; + } + os << "</ul>\n"; +} |