mirror of
https://github.com/jellyfin/jellyfin.org.git
synced 2026-09-03 04:00:06 +03:00
Add postbuild script to copy rss feed
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
"docusaurus": "docusaurus",
|
||||
"start": "docusaurus start",
|
||||
"build": "docusaurus build",
|
||||
"postbuild": "node ./scripts/copy-rss-feed.js",
|
||||
"swizzle": "docusaurus swizzle",
|
||||
"clear": "docusaurus clear",
|
||||
"serve": "docusaurus serve",
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
fs.copyFile(
|
||||
path.resolve(__dirname, '../build/posts/rss.xml'),
|
||||
path.resolve(__dirname, '../build/index.xml'),
|
||||
(error) => {
|
||||
if (error) {
|
||||
throw error;
|
||||
} else {
|
||||
console.log('RSS feed has been copied to index.xml');
|
||||
}
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user