Lines Matching refs:links
16 Page = namedtuple('Page', 'status, links, anchors, anchor_refs')
27 of the page render, the href of all the links that occurred on the page, all
28 of the anchors on the page (ids and names), and all links that contain an
47 links, anchors = parser.links, parser.anchors
55 # Convert relative links to absolute links and categorize links as edges
57 for link in links:
86 '''Parse an html file pulling out all links and anchor_refs, where an
92 self.links = []
106 self.links.append(href)
115 '''Finds link errors on the doc server. This includes broken links, those with
117 have no links to them.
143 processing the resultant html to pull out all links and anchors.
189 '''Find all broken links on a page and create appropriate notes describing
196 for link in page.links + page.anchor_refs:
232 '''Find all broken links. A broken link is a link that leads to a page
252 |seed_url|s. Return the links that are valid on the server but are not in
268 for link in target_page.links:
280 '''Prints out broken links in a more readable format.
296 for target, links in groupby(sorted(broken_links, key=target), target):
297 links = list(links)
299 if len(links) > 50 and not links[0][2].startswith('#'):
300 message = "Found %d broken links (" % len(links)
301 output.append("%s%s)" % (message, pretty_print(links[0], len(message))))
303 for link in links: