2024-03-19 19:06:53 +01:00
|
|
|
# copy changelog and news to includes
|
|
|
|
FileUtils.cp '../InGameNews.md', '_includes/__news.md'
|
|
|
|
FileUtils.cp '../Changelog.md', '_includes/__changelog.md'
|
|
|
|
|
|
|
|
Jekyll::Hooks.register :site, :post_write do
|
2024-08-16 14:02:15 +02:00
|
|
|
# after the site is generated, copy changelog and news media into it
|
2024-03-19 19:06:53 +01:00
|
|
|
FileUtils.cp_r "../media/news", "_site/media"
|
|
|
|
FileUtils.cp_r "../media/changelog", "_site/media"
|
2024-08-16 14:02:15 +02:00
|
|
|
|
|
|
|
# also copy the raw markdown files for the in-game changelog/news viewers
|
|
|
|
FileUtils.cp_r "_includes/__news.md", "_site/ingamenews/raw.md"
|
|
|
|
FileUtils.cp_r "_includes/__changelog.md", "_site/changelog/raw.md"
|
2024-03-19 19:06:53 +01:00
|
|
|
end
|