A module used for fetching content from Markdown files (resources) from a file or git repository.
Summary
Functions
Fetches raw content from git repository or path on disk listed under config.
Fetches raw content from a path on disk listed under config only.
Functions
@spec get(Resource.name()) :: {:ok, [PolyPost.Resource.Unit.t()]} | {:error, term()} | {:error, term(), term()}
Fetches raw content from git repository or path on disk listed under config.
@spec get_from_path(Resource.name()) :: {:ok, [PolyPost.Resource.Unit.t()]} | {:error, term()} | {:error, term(), term()}
Fetches raw content from a path on disk listed under config only.
Notes
If the resource is configured to originate from a git repository and has already been pulled at some point in the past to the filesystem, it will still attempt to retrieve the raw content for the resource from the path without using git.