forked from lthn/blockchain
fixed errors in compilation
This commit is contained in:
parent
9115226f00
commit
bd05907dd8
3 changed files with 7 additions and 5 deletions
|
|
@ -524,7 +524,7 @@ namespace epee {
|
|||
namespace epee
|
||||
{
|
||||
template<typename t_rpc_server>
|
||||
bool generate_doc_as_md_files(const std::string& folder, t_rpc_server& server)
|
||||
bool generate_doc_as_md_files(const std::string& folder, t_rpc_server& server, const std::string& sufix = std::string())
|
||||
{
|
||||
LOG_PRINT_L0("Dumping RPC auto-generated documents!");
|
||||
epee::net_utils::http::http_request_info query_info;
|
||||
|
|
@ -551,7 +551,7 @@ namespace epee
|
|||
ss << "### Response: " << ENDL << "```json" << ENDL << de.response_json_example << ENDL << "```" << ENDL;
|
||||
ss << "### Response description: " << ENDL << "```" << ENDL << de.response_json_descriptions << ENDL << "```" << ENDL;
|
||||
|
||||
ss << "<sub>Auto-doc built with: " << PROJECT_VERSION_LONG << "</sub>" << ENDL;
|
||||
ss << sufix;
|
||||
|
||||
std::string filename = de.json_method_name;
|
||||
if (!filename.size())
|
||||
|
|
|
|||
|
|
@ -300,8 +300,8 @@ int main(int argc, char* argv[])
|
|||
if (command_line::has_arg(vm, command_line::arg_generate_rpc_autodoc))
|
||||
{
|
||||
std::string path_to_generate = command_line::get_arg(vm, command_line::arg_generate_rpc_autodoc);
|
||||
|
||||
if (!generate_doc_as_md_files(path_to_generate, rpc_server))
|
||||
std::string auto_doc_sufix = "<sub>Auto-doc built with: " PROJECT_VERSION_LONG "</sub";
|
||||
if (!generate_doc_as_md_files(path_to_generate, rpc_server, auto_doc_sufix))
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3293,8 +3293,10 @@ int main(int argc, char* argv[])
|
|||
{
|
||||
tools::wallet_rpc_server wallet_rpc_server(std::shared_ptr<tools::wallet2>(new tools::wallet2()));
|
||||
std::string path_to_generate = command_line::get_arg(vm, command_line::arg_generate_rpc_autodoc);
|
||||
|
||||
std::string auto_doc_sufix = "<sub>Auto-doc built with: " PROJECT_VERSION_LONG "</sub";
|
||||
|
||||
if (!generate_doc_as_md_files(path_to_generate, wallet_rpc_server))
|
||||
if (!generate_doc_as_md_files(path_to_generate, wallet_rpc_server, auto_doc_sufix))
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue