diff --git a/contrib/epee/include/net/http_server_handlers_map2.h b/contrib/epee/include/net/http_server_handlers_map2.h index ab2426c9..05e0b691 100644 --- a/contrib/epee/include/net/http_server_handlers_map2.h +++ b/contrib/epee/include/net/http_server_handlers_map2.h @@ -524,7 +524,7 @@ namespace epee { namespace epee { template - 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 << "Auto-doc built with: " << PROJECT_VERSION_LONG << "" << ENDL; + ss << sufix; std::string filename = de.json_method_name; if (!filename.size()) diff --git a/src/daemon/daemon.cpp b/src/daemon/daemon.cpp index f2a48056..4a0238e0 100644 --- a/src/daemon/daemon.cpp +++ b/src/daemon/daemon.cpp @@ -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 = "Auto-doc built with: " PROJECT_VERSION_LONG "(new tools::wallet2())); std::string path_to_generate = command_line::get_arg(vm, command_line::arg_generate_rpc_autodoc); + + std::string auto_doc_sufix = "Auto-doc built with: " PROJECT_VERSION_LONG "