From fa3659493abe2143f88942a67f8c77ee5918523f Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Thu, 11 May 2023 13:19:22 +0100 Subject: [PATCH] feat(schema): link to schema documentation index The format is: ``` https://docs.neuroml.org/Userdocs/Schemas/Index.html?highlight={lowerCamelCase name of component type}#{lower case name of component type} ``` --- neuroml/nml/generatedssupersuper.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neuroml/nml/generatedssupersuper.py b/neuroml/nml/generatedssupersuper.py index 6bd5171..6dfd864 100644 --- a/neuroml/nml/generatedssupersuper.py +++ b/neuroml/nml/generatedssupersuper.py @@ -303,8 +303,9 @@ def info(self, show_contents=False, return_format="string"): except AttributeError: info_str = "" - info_str += "Please see the NeuroML standard schema documentation at https://docs.neuroml.org/Userdocs/NeuroMLv2.html for more information.\n\n" - info_str += "Valid members for {} are:\n".format(self.__class__.__name__) + class_name = self.__class__.__name__ + info_str += f"NeuroMLv2 schema documentation: https://docs.neuroml.org/Userdocs/Schemas/Index.html?highlight={class_name[0].lower()}{class_name[1:]}#{class_name.lower()} for more information.\n\n" + info_str += "Valid members for {} are:\n".format(class_name) all_members = self._get_members() for member in all_members: info_str += "* {} (class: {}, {})\n".format(