diff --git a/src/cltools/GenJson.cpp b/src/cltools/GenJson.cpp index b605bccef2..8c9adec6ce 100644 --- a/src/cltools/GenJson.cpp +++ b/src/cltools/GenJson.cpp @@ -51,6 +51,7 @@ plumed gen_json class GenJson : public CLTool { private: std::string version; + void printHyperlink(std::string action ); public: static void registerKeywords( Keywords& keys ); explicit GenJson(const CLToolOptions& co ); @@ -75,6 +76,20 @@ GenJson::GenJson(const CLToolOptions& co ): if( config::getVersionLong().find("dev")==std::string::npos ) version="v"+config::getVersion(); } +void GenJson::printHyperlink( std::string action ) { + std::cout<<" \"hyperlink\" : \"https://www.plumed.org/doc-"< action_names( actionRegister().getActionNames() ); + std::vector action_names( actionRegister().getActionNames() ); std::vector allmodules; for(unsigned i=0; isecond<<"\",\n"; + bool found=false; std::string thismodule = getModuleMap().find(action_names[i])->second; + for(unsigned i=0; i