diff --git a/README.md b/README.md index 4a602d6..e3925dc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ # CIM Engine map list -## Political Map of the World ([worldMap](https://cimengine.github.io/map/?id=worldMap)) - -## ERTH2 - Map of the Virtual States of the ERTH2 Universe ([movc](https://cimengine.github.io/map/?id=movc)) - +1. Political Map of the World ([worldMap](https://cimengine.github.io/map/?id=worldMap)) +2. ERTH2 - Map of the Virtual States of the ERTH2 Universe ([movc](https://cimengine.github.io/map/?id=movc)) diff --git a/index.js b/index.js index 648df51..70fa92b 100644 --- a/index.js +++ b/index.js @@ -4,11 +4,12 @@ const index = JSON.parse(fs.readFileSync("./index.json", "utf-8")); let readme = "# CIM Engine map list\n\n"; +let k = 1; for (let id in index) { let item = index[id]; - readme += `## ${item.name} ${ + readme += `${k++}. ${item.name} ${ item.description ? `- ${item.description}` : "" - } ([${id}](https://cimengine.github.io/map/?id=${id}))\n\n`; + } ([${id}](https://cimengine.github.io/map/?id=${id}))\n`; } fs.writeFileSync("./README.md", readme);