You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: Members are not ordered by explicit list #119
I have compiled a MRE example and attached it as a zip file above. The contents are as follows:
test
├── docs
│ └── index.md
├── mkdocs.yml
├── mymodule
│ └── __init__.py
└── requirements.txt
1. Download it and extract the files
2. Run `cd test`
3. Run `pip install -r requirements.txt`
4. Run `mkdocs serve`
5. Open http://127.0.0.1:8000/ in a browser
6. You should see the same result as in the screenshot above
Full traceback
n/a
Expected behavior
I would expected that mymodule.my_func is displayed first.
So, I think it works as intended, however there's a subtlety that should definitely be documented to avoid confusion: objects are still grouped by category (modules, classes, functions, attributes) before being sorted as specified by members or members_order. Can you try disabling grouping to see if it solves your issue? group_by_category: false.
Activity
pawamoy commentedon Jan 9, 2024
Hello, thanks for the report!
So, I think it works as intended, however there's a subtlety that should definitely be documented to avoid confusion: objects are still grouped by category (modules, classes, functions, attributes) before being sorted as specified by
membersormembers_order. Can you try disabling grouping to see if it solves your issue?group_by_category: false.docs: Tell that members are still grouped by category when specifying…
pawamoy commentedon Jan 9, 2024
I was able to confirm my suggested solution above in your MRE (thanks for it). I pushed an update to the docs, will deploy them now, closing 🙂
RafaelWO commentedon Jan 12, 2024
Thanks for the explanation and the update to the docs! It's much clearer now 🙂
docs: Tell that members are still grouped by category when specifying…