-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Remove the Sidecar and Insert Links/Buttons Elsewhere #816
Conversation
Adding a new gitter button for opening the overlay Preventing it from overlapping the footer on scroll
Looks good. |
@bebraw any idea what's going on with those build errors? None of them seem to be related to the changes I made with this PR... If not, I'll try running the hyperlink test locally and reverting some of my changes to see what's causing it. |
@skipjack There are some relative links at package readmes. We would have to rewrite those to point at GitHub I think. |
👍 |
@simon04 yea I see what you mean but I think it's fine, both React and Babel have a similar implementation. @bebraw so should we merge and solve this in another PR? Or if you point me to the right section I could try to resolve it... weird though it looks like some errors are coming from organization where the data is hardcoded. Maybe some repos were moved recently? |
@skipjack I merged the related PRs. Hopefully that helps with the problem. It had to do with new loaders that were added to an organization we scrape. Basically we capture issues in their readmes too now. |
@bebraw so apparently the Aside from these the other link errors had to do with us scraping plugins/loaders. From my standpoint I think we should merge this and then debug and fix these in another PR, but I'll leave merging to you in case you feel differently. |
content/concepts/loaders.md
Outdated
@@ -28,7 +28,7 @@ Secondly, configure in your `webpack.config.js` that for every `.css` file the ` | |||
module.exports = { | |||
module: { | |||
rules: [ | |||
{test: /\.css$/, use: ['css-loader'](/loaders/css-loader)}, | |||
{test: /\.css$/, use: ['css-loader'](https://github.com/webpack/css-loader)}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why to change this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was one of the links that was failing but I guess only locally for me, now that I go to the live site I see that page does exist -- weird, does do I need to run more than just npm run build
to pick up all the remote content?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's npm run fetch
for getting the remotes.
@Munter Any thoughts on 301/302s? |
302's should be valid, since there is no way to automatically conclude what the correct updated url should be for a temp redirect. 301 should be considered an error IMO. Link to the correct resource |
A couple of link notes:
|
@bebraw another thing I'm wondering is why CI is executing ok on other PRs even though this seems to be a global problem. |
@bebraw and yea these two I can fix:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work again :). Noticed two thingies:
- The hover for the StackOverflow / GitHub thingies is inconsistent; hovering results in a blue icon, while other items in the navbar stay white:
I think we do need to have some hover color in the navbar btw, but that isn't really in the scope of this PR.
- The GitHub & StackOverflow icons don't have a
title
tag. That would be nice for people who don't happen to recognize the icon / screenreaders.
This reverts commit afdc323.
… with top-level links
Before merging, we should figure out how to get around hyperlink (ideally we'll submit a PR), but I'm fine with a local hack just to get the PR in without breaking Travis. |
@Munter The weird thing is the links that are failing do return 302s. So maybe we don't even need to PR the ignore feature, we just need a bugfix? |
I found some time. Try hyperlink v2.7.0 with |
@Munter thanks for the quick update! Just tried it out... it seems to be semi-working (I'm noticing the Guessing --root from input files: file:///.../Webpack/build/
2747 tests complete (1m 5.5s)
Crawling 1200 outgoing urls should respond with HTTP status 200 # SKIP
---
operator: error
expected: "200 https://opencollective.com/webpack/sponsor/10/website"
actual: "404 https://opencollective.com/webpack/sponsor/10/website"
at: build/index.html:58:2217 <a class="support__item" href="https://opencollective.com/webpack/sponsor/10/website" target="_blank">...</a>
...
Crawling 1200 outgoing urls should respond with HTTP status 200 # SKIP
---
operator: error
expected: "200 https://opencollective.com/webpack/sponsor/28/website"
actual: "404 https://opencollective.com/webpack/sponsor/28/website"
at: build/index.html:58:5547 <a class="support__item" href="https://opencollective.com/webpack/sponsor/28/website" target="_blank">...</a>
...
[ some more omitted for brevity ]
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lint:links"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] lint:links: `hyperlink -r --exclude https://opencollective.com/webpack/*/*/website build/index.html | tap-min`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] lint:links script 'hyperlink -r --exclude https://opencollective.com/webpack/*/*/website build/index.html | tap-min'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the webpack.js.org package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! hyperlink -r --exclude https://opencollective.com/webpack/*/*/website build/index.html | tap-min
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs webpack.js.org
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls webpack.js.org
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /.../Project/Webpack/npm-debug.log Any ideas? I'll push the changes so you can see it for yourself in the travis build. |
I ran the the linting from this branch locally and can't recreate a process exiting with an error for the skipped
But I also had runs where the only errors in the raw tap output were the skipped opencollective website links: https://gist.github.com/Munter/8c2ead255a2abad695d39af7ba86dda4 I suspected |
@Munter yea I've noticed that flakiness as well. It does look like CI has picked up the correct version of TBH, I'm kind of at a loss on what to do with this PR as I've never run into this situation before. It now contains a whole bunch of fixes that I'm worried will start conflicting with similar fixes on master. I guess I can cherry pick some things to new, smaller PRs that hopefully don't fail? What's been driving me really nuts is that the nature of the errors we're seeing in CI should be representing themselves on other PRs as well, yet they aren't. I'm not familiar enough with our CI process to debug this much further, I'm not sure where else to look but @webpack/documentation-team any advice or assistance would be much appreciated. This is starting to hold me back from getting other things done like #409, which I started but don't want to leave this floating in the wind while I finish it as it's going to be a more ongoing task. |
It's really close. The remaining errors are like this due to Open Collective: Crawling 1201 outgoing urls should respond with HTTP status 200 # SKIP
---
operator: error
expected: "200 https://opencollective.com/webpack/sponsor/12/website"
actual: "404 https://opencollective.com/webpack/sponsor/12/website"
at: build/index.html:58:2587 <a class="support__item" href="https://opencollective.com/webpack/sponsor/12/website" target="_blank">...</a>
... Note the See also Munter/hyperlink#12 (comment) and Munter/hyperlink@a883caa . Could it be that they get flagged as TAP errors? |
@bebraw Those skipped errors are marked as skips in the report, see bottom of https://gist.github.com/Munter/8c2ead255a2abad695d39af7ba86dda4 Hyperlink exits with an exit code 0 if there are no errors in the report at all. However, you don't see the final report when you pipe directly to I recommend you temporarily disable the |
@Munter @bebraw yeah so I was able to confirm that running
only fails when it's piped to A potential solution here should be to just remove |
@skipjack Yup. Let's drop |
@skipjack I don't see any skip specific handling. So it could be a problem in tap-min. |
See comments in #816. `hyperlink` and `tap-min` are not playing nice together so we decided to drop `tap-min` for now and debug this issue more in another PR.
Looks like it passed. Thanks for debugging. 👍 I'll leave merge to @skipjack. |
@bebraw Thanks for getting in touch with me. Will enable the issue tracker and fix the issue in |
FYI (not sure if you want this discussion here): I ran the TAP log you posted above through Also, I cannot reproduce |
@derhuerst It's fine. Thanks for pitching in and sharing your results. The logical behavior to me would be to not take skipped tests into account when aggregating the results. It's possible this is a niche case and |
@brebaw |
@derhuerst If you want to retain the old behavior, a flag to enable skipping would be completely fine I think. 👍 |
I might be implementing wrong behavior in hyperlink by actually outputting a test that is both failed and skipped at the same time. Can't find any specifcs ont hat in the spec though, so this might be an edge case |
@Munter The popular I found TestAnything/Specification#23 to be helpful. |
This PR is intended to address #710. Quick summary:
@johnstew already added a link to the blog in the Navigation bar so I didn't do anything for that
Links in navigation bar:
Gitter button: