mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-09 20:37:47 +00:00
remove video.json file and dynamic pages for videos
This commit is contained in:
23
plugins.js
23
plugins.js
@@ -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',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user