diff --git a/.gitignore b/.gitignore
index 3b94161ec7..9ec2a23d14 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,6 +37,7 @@ shaders/ABuffer/constants.hglsl
LuaScripting.txt
Properties.txt
log.html
+Documentation.html
data/scene/rosetta/67P/obj/67P_rotated_5_130.obj
data/spice/NewHorizonsKernels/
data/scene/newhorizons/pluto/pluto/textures/
diff --git a/src/documentation/documentationengine.cpp b/src/documentation/documentationengine.cpp
index 7d32f09a4a..2489730b41 100644
--- a/src/documentation/documentationengine.cpp
+++ b/src/documentation/documentationengine.cpp
@@ -106,37 +106,44 @@ std::string generateJsonDocumentation(const Documentation& d) {
std::string generateHtmlDocumentation(const Documentation& d) {
std::stringstream html;
- html << "
\n"
- << "\t" << d.name << "\n\n"
- << "\t\n"
- << "\t\t\n"
- << "\t\t\t| Key | \n"
- << "\t\t\tOptional | \n"
- << "\t\t\tType | \n"
- << "\t\t\tRestrictions | \n"
- << "\t\t\tDocumentation | \n"
- << "\t\t
\n"
- << "\t\n"
- << "\t\n";
-
+
+ html << "\t\n"
+ << "\t\t| " << d.name << " | \n";
+
for (const auto& p : d.entries) {
html << "\t
\n"
+ << "\t\t | \n"
<< "\t\t" << p.key << " | \n"
<< "\t\t" << (p.optional ? "true" : "false") << " | \n"
<< "\t\t" << p.verifier->type() << " | \n";
TableVerifier* tv = dynamic_cast(p.verifier.get());
if (tv) {
// We have a TableVerifier, so we need to recurse
- html << "\t\t" << generateHtmlDocumentation(tv->doc) << " | \n";
+ html << "\n"
+ << "\t\n"
+ << "\t\t\n"
+ << "\t\t\t | \n"
+ << "\t\t\tKey | \n"
+ << "\t\t\tOptional | \n"
+ << "\t\t\tType | \n"
+ << "\t\t\tRestrictions | \n"
+ << "\t\t\tDocumentation | \n"
+ << "\t\t \n"
+ << "\t\n"
+ << "\t\n"
+ << generateHtmlDocumentation(tv->doc)
+ << "\t\n"
+ << " \n"
+ << " | \n";
}
else {
html << "\t\t" << p.verifier->documentation() << " | \n";
}
+ html << "\t\t" << p.documentation << " | \n"
+ << "\t
\n";
}
- html << "\t\n"
- << "
\n";
return html.str();
}
@@ -177,10 +184,32 @@ void DocumentationEngine::writeDocumentation(const std::string& f, const std::st
<< "\t\n"
<< "\n";
+
+ html << "\n"
+ << "\tDocumentation\n\n"
+ << "\t\n"
+ << "\t\t\n"
+ << "\t\t\t| Name | \n"
+ << "\t\t
\n"
+ << "\t\t\n"
+ << "\t\t\t| Key | \n"
+ << "\t\t\tOptional | \n"
+ << "\t\t\tType | \n"
+ << "\t\t\tRestrictions | \n"
+ << "\t\t\tDocumentation | \n"
+ << "\t\t
\n"
+ << "\t\n"
+ << "\t\n";
+
for (const Documentation& d : _documentations) {
html << generateHtmlDocumentation(d);
+
+ html << "\t |
\n";
}
+ html << "\t\n"
+ << "
\n";
+
html << "\n";
html << "