AshSitemap (ash_sitemap v1.0.1)

View Source

Documentation for AshSitemap.

Summary

Functions

Generates sitemaps from resource

Functions

generate(domain, resource, opts \\ [])

Generates sitemaps from resource

Positional Arguments

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

Options

  • resource_plural - The plural name of the resource (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)

Examples

iex> AshSitemap.generate(Example.News, Example.Article, resource_plural: "articles")
GENERATING[article_1.xml]: ||   2% (1000/50000)