diff --git a/src/scripting/scriptengine.cpp b/src/scripting/scriptengine.cpp index 5f396d68f9..64fbb91be7 100644 --- a/src/scripting/scriptengine.cpp +++ b/src/scripting/scriptengine.cpp @@ -566,6 +566,7 @@ void ScriptEngine::writeDocumentation(const std::string& filename, const std::st file.exceptions(~std::ofstream::goodbit); file.open(filename); +#ifdef JSON // Create JSON std::stringstream json; json << "["; @@ -589,7 +590,61 @@ void ScriptEngine::writeDocumentation(const std::string& filename, const std::st std::string jsonText = json.str(); +#else + std::stringstream html; + html << "\n" + << "\t
\n" + << "\t\t| Library | \n" + << "\t\t\tFunctions | \n" + << "\t\t|||
|---|---|---|---|---|
| Name | \n" + << "\t\t\tArguments | \n" + << "\t\t\tHelp | \n" + << "\t\t||
| openspace | \n"; + } + else { + html << "\t\topenspace." << l.name << " | \n"; + } + html << "\t\t\n" + << "\t\ | ||
| \n" + << "\t\t | " << f.name << " | \n" + << "\t\t" << f.argumentText << " | \n" + << "\t\t" << f.helpText << " | \n" + << "\t|