---
---

{% assign pages = site.en | sort: "idx" %}
{% assign num = 0 %}

[
{% for link in pages %}
	{% assign idsplit = link.id | split: '/' %}
	{% assign section = idsplit[2] %}

	{
		"idx": {{ link.idx }},
		"title": "{{ link.title }}",
		"loc": "https://rubenwardy.com/minetest_modding_book/{{ link.url }}",
		{% if link.description %}
		"description": "{{ link.description }}",
		{% endif %}
		"priority": 1
		{% if section != "index" %}, "chapter_number": {{ num }}{% endif %}
	},

	{% assign num = num | plus:1 %}
{% endfor %}
	{
		"title": "Download Examples",
		"loc": "https://github.com/rubenwardy/minetest_modding_book/archive/examples.zip",
		"priority": 0.5
	}
]
