liara.actions

Module Contents

Classes

Functions

gather_links

Gather links across documents.

validate_internal_links

Validate internal links.

validate_external_links

Validate external links.

API

class liara.actions.LinkType(*args, **kwds)

Bases: enum.Enum

Internal = 'auto(...)'
External = 'auto(...)'

Gather links across documents.

Returns:

A dictionary containing a link, and the list of document paths in which this link was found.

Validate internal links.

For each link, check if it exists inside the provided site. If not, an error is printed indicating the link and the documents referencing it.

Validate external links.

This issues a request for each link, and checks if it connects correctly. If not, an error is printed indicating the link and the documents referencing it.