boakley/robotframework-hub

Allow custom sorting or subdividing of keywords in a library

Opened this issue · 0 comments

I have a library that contains about 40 keywords, but the keywords can be grouped into smaller groups. For example:

Protocol Library

Keyword Arguments Documentation
Close Type1 Session session close a Type1 session
Close Type2 Session session close a Type2 session
Close Type3 Session session close a Type3 session
Open Type1 Session *varags open a Type1 session
Open Type2 Session *varags open a Type2 session
Open Type3 Session *varags open a Type3 session
Update Type1 Session session, *varargs update a Type1 session
Update Type2 Session session, *varargs update a Type2 session
Update Type3 Session session, *varargs update a Type3 session

It doesn't really make sense to break these into separate libraries because there really aren't many cases where you would need one but not the others. It also doesn't make sense to try to combine them into common keywords because the different session types take different arguments.

It would make more sense to organize the table such that the Type1 keywords are grouped together, then Type2, then Type3. It would be nice if I could force this somehow, rather than them always being sorted alphabetically by default. Ideally, the Protocol Library

I know this isn't supported by libdoc, but it would be a nice enhancement.