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

Bluescreen - button with a link to the documentation #476

Open
janbarasek opened this issue Mar 31, 2021 · 0 comments
Open

Bluescreen - button with a link to the documentation #476

janbarasek opened this issue Mar 31, 2021 · 0 comments

Comments

@janbarasek
Copy link
Contributor

Hello,

very often I would like to implement an exception in the library that can return the URL to the documentation that describes the problem. Currently, I solve this by implementing my own Bluescreen, which can display a link to the documentation.

What about allowing the link to be displayed directly on the top red bar so that other libraries can implement a similar feature? For example, Nette itself describes a number of issues in the documentation and could bind the code to the documentation.

Snímek obrazovky 2021-03-31 v 10 15 07

For this to work in general, I suggest testing the existence of the getDocumentationUrl() method (directly in exception), which will either return a valid URL (then a button will appear), or anything else or will not exist.

Thanks!

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

No branches or pull requests

1 participant