Skip to content
Snippets Groups Projects
Commit 385ae5bf authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH: improve html doc

parent 52f960b3
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ namespace Wrapper
#define otbDocHtmlParamMacro( type, param, showKey ) \
oss << "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:'Courier New, courier'; font-weight:600;\"; >"; \
oss << "["<<type<<"] "<< param->GetName(); \
if( showKey == true ) \
if( showKey == true && param->GetKey() != "") \
{ \
oss << " (-"<< param->GetKey()<<")"; \
} \
......@@ -67,7 +67,7 @@ namespace Wrapper
oss << "</p>";
ApplicationHtmlDocGenerator::ApplicationHtmlDocGenerator() : m_ShowParamKeys(false)
ApplicationHtmlDocGenerator::ApplicationHtmlDocGenerator()
{
}
......@@ -126,8 +126,9 @@ ApplicationHtmlDocGenerator::GenerateDoc( const Application::Pointer app, std::s
otbDocHtmlBodyMacro( app->GetDocSeeAlso() );
otbDocHtmlTitle1Macro( "Example of use" );
otbDocHtmlBodyCodeMacro( app->GetHtmlExample() );
otbDocHtmlBodyMacro( app->GetHtmlExample() );
if( showKey == true )
otbDocHtmlBodyCodeMacro( app->GetCLExample() );
oss << "</body></html>";
val = oss.str();
......
......@@ -72,9 +72,6 @@ private:
ApplicationHtmlDocGenerator(const ApplicationHtmlDocGenerator &); //purposely not implemented
void operator =(const ApplicationHtmlDocGenerator&); //purposely not implemented
/** Add the key is the description of the parameter or not. */
bool m_ShowParamKeys;
}; // End class InputImage Parameter
} // End namespace Wrapper
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment