How Landscape2 works: Data Sources and Architecture
mainLandscape2 is a CLI tool that generates static websites by processing several YAML-based data sources. These sources are passed to the tool as arguments (URLs or local paths).
Core Data Sources
- Landscape data: A YAML file describing the items to be displayed. Each item must include a
logofield containing a relative reference to an SVG image. - Landscape settings: A YAML file for customizing the website (e.g., logo, colors, grouping, or featured items).
- Landscape guide: A YAML file defining the content of the guide displayed on the site.
- Landscape games: A YAML file defining the content of games displayed on the site.
- Logos location: A data source (URL or local path) that defines the base location for the logos referenced in the landscape data.
External Data Collection
During generation, the tool can enrich data by collecting information from external services via environment variables:
- GitHub: Provide a comma-separated list of GitHub tokens with
public_reposcope in theGITHUB_TOKENSenvironment variable. Providing multiple tokens helps avoid rate limits and increases concurrency. - Crunchbase: Provide a Crunchbase API key in the
CRUNCHBASE_API_KEYenvironment variable. Note that this requires an Enterprise or Application license for full API access.