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 = [ module.exports = [
[
path.resolve(__dirname, 'plugin-dynamic-routes'),
{
// this is the options object passed to the plugin
routes,
},
],
[ [
'docusaurus2-dotenv', 'docusaurus2-dotenv',
{ {

File diff suppressed because it is too large Load Diff

View File

@@ -1,26 +0,0 @@
[
{
"uuid": "Jd8waVWCZm3bZcNjJhRF2n",
"title": "Out of the Box Charts and Dashboards",
"path": "/videos/access-intelligence-center:-out-of-the-box-charts-&-dashboards",
"topicid": "29911"
},
{
"uuid": "frpStJBTV8xeQaE95wmbHp",
"title": "Filtering and Responsive UI",
"path": "/videos/Filtering and Responsive UI",
"topicid": "29911"
},
{
"uuid": "1j49GXFzu8Tr5ZmyLEUxam",
"title": "Authoring and Creating new Sheets",
"path": "/videos/Authoring and Creating new Sheets",
"topicid": "29911"
},
{
"uuid": "Sk9EaFTUcwKXRQ4efvsyKF",
"title": "Bookmarking Capabilities",
"path": "/videos/Bookmarking Capabilities",
"topicid": "29911"
}
]