remove video.json file and dynamic pages for videos

This commit is contained in:
darrell-thobe-sp
2024-03-27 10:50:54 -04:00
parent 19872980c0
commit 43ef21b2ed
3 changed files with 28 additions and 1151 deletions

View File

@@ -1,27 +1,4 @@
const path = require('path');
const videos = require('./static/videos/videos.json');
const videoCardDetails = require.resolve(
'./src/components/video-library/VideoCardDetails/index.js',
);
const routes = videos.map((video) => ({
path: video.path,
exact: false,
component: videoCardDetails,
customProps: {
uuid: video.uuid,
title: video.title,
topicid: video.topicid,
},
}));
module.exports = [
[
path.resolve(__dirname, 'plugin-dynamic-routes'),
{
// this is the options object passed to the plugin
routes,
},
],
[
'docusaurus2-dotenv',
{