Release 3.0.0

This commit is contained in:
Michael Morrison 2021-02-25 02:15:53 -06:00
parent f70112d092
commit d65a24dc18
4 changed files with 114 additions and 93 deletions

View file

@ -24,7 +24,7 @@ class GameResolver {
printReadme() {
let out = '';
out += '| GameDig Type ID | Name | Notes\n';
out += '| GameDig Type ID | Name | See Also\n';
out += '|---|---|---\n';
const sorted = this.games
@ -36,8 +36,16 @@ class GameResolver {
let keysOut = game.keys.map(key => '`'+key+'`').join('<br>');
out += "| " + keysOut.padEnd(10, " ") + " "
+ "| " + game.pretty;
if(game.extra.doc_notes)
out += " | [Notes](#"+game.extra.doc_notes+")";
let notes = [];
if(game.extra.doc_notes) {
notes.push("[Notes](#" + game.extra.doc_notes + ")");
}
if(game.options.protocol === 'valve') {
notes.push('[Valve Protocol](#valve)');
}
if(notes.length) {
out += " | " + notes.join(', ');
}
out += "\n";
}
return out;