Skip to main content

download_links

Function download_links 

Source
pub fn download_links(
    source: &CatalogueSource,
    variant: &str,
    published_repo: Option<&str>,
) -> Result<Vec<(String, String)>, Error>
Expand description

The download links a variant’s own documents carry, by file name.

Two documents can carry them and either may answer. A variant whose docs-tree page exists has its table there, read through the marked region; the language-specific fine-tunes - moonshine’s Arabic and Japanese builds, breeze - have no page in the tree at all, and keep their table in the published repo’s README instead. The doc is read first; a doc that is absent, or carries no table, falls through to the README. Both are parsed for their links, never constructed from the file name.

Blocking, like the feed’s fetch, and worth calling only when a model is being installed or a config key names one that is not on disk.