mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-12-21 14:29:23 +01:00
also copy the changelog and in-game news raw files to the site
This commit is contained in:
parent
fdf6d55414
commit
37f93b2a30
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue