mix ash_sitemap.generate (ash_sitemap v1.0.1)

View Source

Generates sitemaps for a given domain and resource.

The domain and resource must already exist, this task does not define them.

Positional Arguments

  • domain - The domain (e.g. "Shop").
  • resource - The resource (e.g. "Product").

Options

  • --hostname - The base url of the website serving the content in the resource.
  • --resource-plural - The plural resource name (e.g. "products")
  • --read-action - The action to use when getting the records from the resource (e.g. "read")
  • --urls-limit - The maximum number of urls per sitemap file (default: 50000)
  • --query-limit - The maximum number of records to fetch for each read action (default: 250)

For example:

mix ash_sitemap.generate ExistingDomainName ExistingResourceName

Summary

Functions

generate_from_cli(argv)

run(argv)

Callback implementation for Mix.Task.run/1.