From 37f93b2a302aa25c105d5fd3593ddbf799221812 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 16 Aug 2024 14:02:15 +0200 Subject: [PATCH] also copy the changelog and in-game news raw files to the site --- web/_plugins/copy_changelog_news.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/_plugins/copy_changelog_news.rb b/web/_plugins/copy_changelog_news.rb index 27bed58..fe603f9 100644 --- a/web/_plugins/copy_changelog_news.rb +++ b/web/_plugins/copy_changelog_news.rb @@ -2,8 +2,12 @@ FileUtils.cp '../InGameNews.md', '_includes/__news.md' FileUtils.cp '../Changelog.md', '_includes/__changelog.md' -# after the site is generated, copy changelog and news media into it Jekyll::Hooks.register :site, :post_write do + # after the site is generated, copy changelog and news media into it FileUtils.cp_r "../media/news", "_site/media" FileUtils.cp_r "../media/changelog", "_site/media" + + # 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" end