Module:ParseRecipes/doc

This module is invoked in the Template:UpdateRecipes upon any edit.

It parses Docs.json and stores all detected recipes in the recipes and recipe_items cargo tables.

It uses Module:GetDocs.

Note: recipes for mined/pumped raw resources are hardcoded into the  function because they're not in the recipes list in docs.json and there's no easy way to extract this info. Let's hope that raw resources or base mining/pumping rates won't change anytime soon.