about summary refs log tree commit diff
path: root/src/tools/linkchecker
AgeCommit message (Collapse)AuthorLines
2020-04-26linkchecker: fix typo in main.rsUjjwal Sharma-1/+1
2020-02-13Add shared script for linkchecking books.Eric Huss-0/+113
2020-01-01Cleanup linkchecker whitelistOliver Middleton-20/+9
linkchecker is no longer run on the compiler docs so they can be removed from the whitelist.
2019-12-22Format the worldMark Rousskov-83/+85
2019-10-21Remove `InternedString`.Nicholas Nethercote-1/+0
By using `LocalInternedString` instead for the few remaining uses.
2019-09-23Add `#![deny(warnings)]` to internal toolsAlex Crichton-0/+2
2019-07-28Remove lint annotations in specific crates that are already enforced by ↵Vadim Petrochenkov-2/+0
rustbuild Remove some random unnecessary lint `allow`s
2019-04-27Stabilized vectored IOSteven Fackler-2/+2
This renames `std::io::IoVec` to `std::io::IoSlice` and `std::io::IoVecMut` to `std::io::IoSliceMut`, and stabilizes `std::io::IoSlice`, `std::io::IoSliceMut`, `std::io::Read::read_vectored`, and `std::io::Write::write_vectored`. Closes #58452
2019-02-13Whitelist iovec types in linkcheckerSteven Fackler-1/+3
2019-02-03Transition linkchecker to 2018 editionHirokazu Hata-1/+4
2019-01-20linkchecker: Update deprecated trim_left_matches usageIgor Matuszewski-3/+3
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-12Remove `RcVec` and `RcSlice`.Nicholas Nethercote-1/+0
They're both unused now.
2018-12-05Rollup merge of #56119 - frewsxcv:frewsxcv-option-carrier, r=TimNNPietro Albini-4/+1
Utilize `?` instead of `return None`. None
2018-12-04Utilize `?` instead of `return None`.Corey Farwell-4/+1
2018-11-29Optimize local linkchecker programAlex Crichton-19/+19
I noticed on a [recent build][1] that the linkchecker stage of CI took a whopping 15 minutes of CI time for something that should be near instantaneous. Some local profiling showed some very hot functions and clones which were pretty easy to remove, and now instead of running in minutes locally it runs in seconds. [1]: https://ci.appveyor.com/project/rust-lang/rust/build/job/kptifw1kb1nm4xuu
2018-11-02Rename `Value` to `Immediate` for miriOliver Scherer-1/+1
2018-04-02Bump to 1.27.0Alex Crichton-0/+5
Also update some `Cargo.lock` dependencies, finishing up some final steps of our [release process]! This doesn't update the bootstrap compiler just yet but that will come in a follow-up PR. [release process]: https://forge.rust-lang.org/release-process.html
2018-03-06Update env_logger to 0.5.4Alex Crichton-0/+2
It looks like this cuts down on the number of dependencies in env_logger and notably cuts out a difference between a shared dependency of rls/cargo. My goal here is to ensure that when we compile the RLS/Cargo on CI we only compile Cargo once, and this is one step towards that!
2018-01-12Report errors instead of panic!()Mikko Rantanen-1/+11
2018-01-08rustdoc: Don't import macros from private importsOliver Middleton-7/+0
2018-01-01Ignore remaining broken links caused by rustdoc bugsMalo Jaffré-2/+20
As pointed out by @ollie27.
2017-11-29Fix invalid HTML escapeGuillaume Gomez-0/+1
2017-10-28Fix weird bugsGuillaume Gomez-0/+17
2017-06-13Merge crate `collections` into `alloc`Murarth-5/+5
2017-05-14linkchecker: Add support for <base> tagOliver Middleton-56/+33
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.
2017-04-19Remove platform-specific directory separator.Corey Farwell-1/+1
2017-04-18Add top level sections to the Unstable Book.Corey Farwell-0/+6
Prior to this commit, the contents of the Unstable Book were assumed to be unstable features. This commit moves features into 'language features' or 'library features' subsections. It also moves the 'linker_flavor' compiler flag into a new 'Compiler Flags' subsection. Even though it was helpful, I removed the tidy check that cross-references the SUMMARY.md links with the Unstable Book directory contents just because it would be difficult to maintain. Relevant PR: https://github.com/rust-lang/rust/issues/41142.
2017-04-14std::collections docs: Address issues that came up in PR #41286lukaramu-1/+2
* Bound: * Added another example using RangeArgument to illustrate how Bound maps to range endpoints. * Added a note to the existing example that says that it's better to use range syntax in most cases * Added missing /// line * binary_heap::PeakMut: s/Object representing/Structure wrapping * added collections/hash_set/struct.HashSet.html to linkchecker whitelist
2017-03-20fix trailing whitespacesteveklabnik-1/+1
2017-03-20exempt hbs from linkcheckersteveklabnik-0/+6
2017-02-20Enable linkchecker on booksSteve Klabnik-8/+16
Previously, mdBook used JavaScript to add header links, so we skipped checking the book. As of https://github.com/rust-lang/rust/pull/39966, it no longer does, so we can start checking again. There is a twist, though: it uses name instead of id, so let's test for both. They're both valid links anyway, so it's good to have the checker check anyway.
2017-02-13fix up linkcheckerSteve Klabnik-1/+17
1. skip png files 2. skip fragments for the book and nomicon, as these are added by JS 3. Actually print the filename for errors
2017-01-20linkchecker: Fix checking links which are just fragmentsOliver Middleton-11/+10
Also fix a typo which linkchecker should have caught.
2016-11-08rustbuild: Tweak for vendored dependenciesAlex Crichton-38/+29
A few changes are included here: * The `winapi` and `url` dependencies were dropped. The source code for these projects is pretty weighty, and we're about to vendor them, so let's not commit to that intake just yet. If necessary we can vendor them later but for now it shouldn't be necessary. * The `--frozen` flag is now always passed to Cargo, obviating the need for tidy's `cargo_lock` check. * Tidy was updated to not check the vendor directory Closes #34687
2016-10-12Stabilise `?`Nick Cameron-2/+0
cc [`?` tracking issue](https://github.com/rust-lang/rust/issues/31436)
2016-10-07Use workspaces and switch to a single Cargo.lock.Ahmed Charles-50/+0
This involves hacking the code used to run cargo test on various packages, because it reads Cargo.lock to determine which packages should be tested. This change implements a blacklist, since that will catch new crates when they are added in the future.
2016-09-11Use question_mark feature in linkchecker.Ahmed Charles-4/+5
2016-08-18Fix linksNick Cameron-0/+6
2016-08-12Upgrade linkchecker to url 1.2.0.Ahmed Charles-45/+20
2016-06-29Reject invalid urls in linkcheckerOliver Middleton-23/+20
For example root-relative links will now be rejected. Also remove some exceptions which have since been fixed and fix a typo in the broken redirect handling.
2016-06-11run rustfmt on linkchecker folderin src/tools/linkcheckerSrinivas Reddy Thatiparthy-37/+30
2016-06-02linkchecker: Treat directory links as errorsOliver Middleton-0/+6
Directory links don't work well offline so they should be treated as errors.
2016-05-05Fix some some duplicate words.Georg Brandl-1/+1
2016-03-28Add FIXME for linkchecker whitlistsmitaa-2/+5
2016-03-28Don't check(=cache) redirect pagesmitaa-12/+19
Checking a redirect page during tree traversal before trying to actually follow the redirect leads to retrieval of the redirect pages source instead.
2016-03-27Drop cached sources to reduce memory usagemitaa-23/+43
2016-03-27Extend linkchecker with anchor checkingmitaa-42/+196
This adds checks to ensure that: * link anchors refer to existing id's on the target page * id's are unique within an html document * page redirects are valid
2016-03-14linkchecker: Fix path checks on WindowsAlex Crichton-18/+17
2016-03-08rustbuild: Add a link checker for documentationAlex Crichton-0/+236
Add a script to get run which verifies that `href` links in documents are correct. We're always getting a steady stream of "fix a broken link" PRs and issue reports, and we should probably just nip them all in the bud.