-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# YYYY-MM-DD | ||
|
||
- date: 2024-06-06 | ||
text: > | ||
Added FAQ entries to $link:Toll Roads$, $link:Wrestlers$, and $link:Vow of Poverty$. | ||
Changed the answer to "How does this work if I have Witch's Bargain?" for $link:Toll Roads$ from "Blah blah blah" to "Blah blah blah." We did this because of reasons. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const path = require('path'); | ||
const fs = require('fs-extra'); | ||
const yaml = require('js-yaml'); | ||
const readdir = require('recursive-readdir'); | ||
|
||
fs.ensureDirSync('./dist'); | ||
|
||
const readAllChangelogs = async () => { | ||
const allChangelogFiles = await readdir('./content/changelog'); | ||
|
||
const allChangelogData = {}; | ||
|
||
allChangelogFiles.forEach((f) => { | ||
const [, , game] = f.split(path.sep); | ||
const locale = path.basename(f, '.yml'); | ||
const changelogs = yaml.load(fs.readFileSync(f)); | ||
|
||
allChangelogData[game] ??= {}; | ||
allChangelogData[game][locale] = changelogs; | ||
}); | ||
|
||
fs.writeJsonSync(`dist/changelog.json`, allChangelogData); | ||
console.log(`Got ${allChangelogFiles.length} changelog files!`); | ||
}; | ||
|
||
readAllChangelogs(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters