Skip to content

Commit

Permalink
feat(schema): link to schema documentation index
Browse files Browse the repository at this point in the history
The format is:

```
https://docs.neuroml.org/Userdocs/Schemas/Index.html?highlight={lowerCamelCase name of component type}#{lower case name of component type}
```
  • Loading branch information
sanjayankur31 committed May 11, 2023
1 parent 3167804 commit fa36594
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions neuroml/nml/generatedssupersuper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit fa36594

Please sign in to comment.