-
Notifications
You must be signed in to change notification settings - Fork 138
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
broken links should break the build #1730
Comments
I think red links make sense in a wiki context where you can click on the link to instantiate the page. But given that Framework is a static site generator and not a wiki, and hence there’s no way to edit the site or page when viewing the page, I think breaking the build is more appropriate than rendering stylized broken links. |
True. I was not thinking of being able to click on the link to instantiate the page, because the site is read-only for visitors. Then again, I would like a visual clue about any broken links. At times, I know that I will create the page that a link refers to, and I don’t want to have to go back later and add that link. Foresight, if you will. It feels natural for me to add a Thanks again for your reply. And wishing you a good weekend, again. |
Having red links (for preview at least) and optionally breaking the build would give us the best of both worlds. |
I am interested to learn why broken links should break the build. What is the rationale? I mean, the author(s) of the site are responsible for its content, right? |
So that authors are aware of broken links. |
Right. But the authors can already be aware of broken links as they are listed during the build. This does not imply that the build must break, too, right? |
In typical builds, there are hundreds if not thousands of lines of output, so it can be easy to miss when a broken link is issued only as a warning. Furthermore with continuous integration/deployment, humans often don’t look at the output at all; we need an automated signal to notify authors when something is broken, rather than just another line of text. Furthermore, we want to prevent the broken site from being deployed, so that developers can fix the link before users see it. |
I agree. But what if the ultimate responsible person – like a product manager or business owner – wants those broken links to be deployed, for whatever reason. Should there be an option to turn that on or off? Enfin, I want to be careful with your time, so I’m happy to close the conversation. I understand what you are saying and I agree with it, yet see it as a partial solution to break the build. Thanks again for your time and wish you a perfect day. |
Yes, we could provide a way to opt-out of this behavior. At a minimum, I expect using the |
As an additional option, remove the href attribute from red links (#1858 (comment)). |
(ref #1729)
The text was updated successfully, but these errors were encountered: