diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-05 16:05:22 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-05 16:05:22 (GMT) |
commit | 7173f2db0e37a1621236b3ceeb883d4f1255ee42 (patch) | |
tree | ec52c35deb6c136c8a16d0c23304934c09cd2653 /Source/cmDocumentationFormatterHTML.cxx | |
parent | 68bcb056eba91d317e6ba90715e67f62c1e44c54 (diff) | |
download | CMake-7173f2db0e37a1621236b3ceeb883d4f1255ee42.zip CMake-7173f2db0e37a1621236b3ceeb883d4f1255ee42.tar.gz CMake-7173f2db0e37a1621236b3ceeb883d4f1255ee42.tar.bz2 |
ENH: add master index into html full help
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"; +} |