-
-
Notifications
You must be signed in to change notification settings - Fork 941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why not sort the API queries in the document? #2527
Comments
Thank you for your feature proposal. We marked it as "waiting for user interest" for now to gather some feedback from our community:
We would also like to hear about other community members' use cases for the feature to give us a better understanding of their potential implicit or explicit requirements. We will start the implementation based on:
We do this because:
|
Just for clarification: As an alternative, we could group the sidebar into core (faker constructors, util) and modules. |
Adding a extra separator before Airline would make it clearer that the rest are in alphabetical order |
Yes, the APIs in sidebar can be sorted alphabetically。🤔 |
They already are, it's just that there are some special ones at the top and the bottom. Adding some extra separators or subheadings would clarify that. |
@LARVAIDE Are you interested in creating a PR to implement this? |
I'll give it a try。 |
From the code, it can be seen that 'Faker', 'SimpleFaker', and 'Randomizer' have special rules, among which 'Randomizer' is not quite the same. Why is this necessary? @ST-DDT |
Because those are classes whereas the others are "Modules". Faker has some internal classes, methods and other stuff, that should not be exposed in the api docs. Such as:
For that reason we select which data we wish to expose:
|
That makes it look like Faker Core has its own page. But I don't think we have a link for that. Maybe Faker could be the "top level" item with others nested inside it? |
Or maybe use the following structure?
|
I feel like the Modules are the most important part for most users so they should not be nested too deep. It's only for advanced usage you really need to delve too much into the constructors, Randomizer etc. Maybe just a API
|
FakerCore will likely be a new type/interface/thing in v9. (DAO for locales, mersenne and config, not fixed yet) How about the following structure:
Alternatively, we could try the following
|
I think that was the original idea. |
Clear and concise description of the problem
It is difficult to use without sorting
Suggested solution
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: