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

linkchecker: Add support for <base> tag #41992

Merged
merged 2 commits into from
May 15, 2017
Merged

Conversation

ollie27
Copy link
Member

@ollie27 ollie27 commented May 14, 2017

Add support for the HTML tag as used by mdBook so The Unstable
Book can be checked.

Also cleanup a few things:

  • Stop checking the name attribute. It should never have been used and
    mdBook has since been fixed not to use it.
  • Make sure we only check html files.
  • Remove a few unnecessary allocations.

Finally, dead links in The Unstable Book have been fixed.

ollie27 added 2 commits May 14, 2017 18:06
Add support for the HTML <base> tag as used by mdBook so The Unstable
Book can be checked.

Also cleanup a few things:
* Stop checking the name attribute. It should never have been used and
mdBook has since been fixed not to use it.
* Make sure we only check html files.
* Remove a few unnecessary allocations.

Finally, dead links in The Unstable Book have been fixed.
@rust-highfive
Copy link
Collaborator

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

@bors: r+

Awesome thanks! FWIW linkchecker was written in a time w/ only the makefiles so we couldn't use crates.io, but nowadays we could enhance this to actually depend on, for example, html5ever, and have real html parsing! I'm not sure if it's necessary, but something to consider at least.

@bors
Copy link
Contributor

bors commented May 14, 2017

📌 Commit d4f20eb has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented May 14, 2017

⌛ Testing commit d4f20eb with merge 8ddecf2...

@bors
Copy link
Contributor

bors commented May 14, 2017

💔 Test failed - status-appveyor

@Mark-Simulacrum
Copy link
Member

@bors retry

set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
Invoke-WebRequest -Uri https://download.sysinternals.com/files/Handle.zip -OutFile handle.zip
Invoke-WebRequest : The operation has timed out.
At line:1 char:1
+ Invoke-WebRequest -Uri https://download.sysinternals.com/files/Handle ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
 
Command executed with exception: The operation has timed out.
cat %CD%\sccache.log || exit 0

@alexcrichton
Copy link
Member

I've sent a PR to retry that HTTP request: #41996

@bors
Copy link
Contributor

bors commented May 14, 2017

⌛ Testing commit d4f20eb with merge fcc1a3c...

@bors
Copy link
Contributor

bors commented May 14, 2017

💔 Test failed - status-appveyor

@Mark-Simulacrum
Copy link
Member

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request May 14, 2017
…chton

linkchecker: Add support for <base> tag

Add support for the HTML <base> tag as used by mdBook so The Unstable
Book can be checked.

Also cleanup a few things:
* Stop checking the name attribute. It should never have been used and
mdBook has since been fixed not to use it.
* Make sure we only check html files.
* Remove a few unnecessary allocations.

Finally, dead links in The Unstable Book have been fixed.
@carols10cents carols10cents added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label May 15, 2017
@bors
Copy link
Contributor

bors commented May 15, 2017

⌛ Testing commit d4f20eb with merge 75b0568...

bors added a commit that referenced this pull request May 15, 2017
linkchecker: Add support for <base> tag

Add support for the HTML <base> tag as used by mdBook so The Unstable
Book can be checked.

Also cleanup a few things:
* Stop checking the name attribute. It should never have been used and
mdBook has since been fixed not to use it.
* Make sure we only check html files.
* Remove a few unnecessary allocations.

Finally, dead links in The Unstable Book have been fixed.
@steveklabnik
Copy link
Member

Thanks for this!

(I agree with @alexcrichton that we'll probably want to upgrade it even more in the future, but this is good for now)

@bors
Copy link
Contributor

bors commented May 15, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 75b0568 to master...

@bors bors merged commit d4f20eb into rust-lang:master May 15, 2017
@ollie27 ollie27 deleted the linkchecker_base branch May 15, 2017 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants