Skip to content
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

Make Exceptions a sub-grouping inside modules #1124

Merged
merged 6 commits into from
Jan 30, 2020

Conversation

archdragon
Copy link
Contributor

Issue: #1104

Before After
image image

Changes

  • Exceptions sidebar category was removed
  • Exceptions are now treated like regular modules and available in a separate group, under Modules. This group is always displayed at the last position.
    • As a side-effect API Reference looks more cluttered now, since exceptions are treated as regular modules and displayed in the module list. We've discussed potentially introducing module grouping there (as a separate PR), to keep the list clean and readable.
    • Other functionality (like autocomplete search) is not affected by the change.

Demo

[Elixir docs with new exception grouping]

function getSortingPriority (item) {
if (isException(item)) {
return sortingPriority['Exception']
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am thinking we should remove this and not special case Exceptions in any way. Thoughts?

@josevalim josevalim merged commit b82d0b3 into elixir-lang:master Jan 30, 2020
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@josevalim
Copy link
Member

Hi @archdragon! I have dropped a comment that we can tackle later if you think it makes sense. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants