Use an array of pages in pages.json
Closed this issue · 0 comments
superdump commented
Instead of using an object where the key is the name of the page and the value is an object with a pageNumber key, perhaps it would be better to use the implicit ordering of an array. So perhaps something like this:
[
...
{
"pageId": "example-page", // The ID of the page that also will be used in the URL. Should be a slugged version of the title.
"title": "Example Page", // The title of the page
"description": "Example description.", // The description of the page that will be shown on the home page.
"text": "pages/example-page.md", // The text which will be shown in the guide.
"code": "pages/example-page.js", // The code that will be shown in the editor beside the text.
"readOnly": false // If the code in the editor should be editable and runnable or not.
},
...
]