Files
developer.sailpoint.com/plugins.js
darrell-thobe-sp 49161718ef update path name
2023-12-11 13:29:16 -05:00

156 lines
4.1 KiB
JavaScript

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,
body: video.body,
tags: video.tags,
},
}));
module.exports = [
[
path.resolve(__dirname, 'plugin-dynamic-routes'),
{
// this is the options object passed to the plugin
routes,
},
],
[
'@docusaurus/plugin-google-tag-manager',
{
containerId: 'GTM-TSD78J',
},
],
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: '/',
from: ['/conf', '/developerdays', '/developerdays/agenda'],
},
],
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'idn',
path: 'products/idn',
routeBasePath: 'idn',
editUrl:
'https://github.com/sailpoint-oss/developer-community-site/edit/main/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
sidebarPath: require.resolve('./products/idn/sidebar.js'),
docItemComponent: '@theme/ApiItem',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'iiq',
path: 'products/iiq',
routeBasePath: 'iiq',
editUrl:
'https://github.com/sailpoint-oss/developer-community-site/edit/main/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
sidebarPath: require.resolve('./products/iiq/sidebar.js'),
docItemComponent: '@theme/ApiItem',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'nerm',
path: 'products/nerm',
routeBasePath: 'nerm',
editUrl:
'https://github.com/sailpoint-oss/developer-community-site/edit/main/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
sidebarPath: require.resolve('./products/nerm/sidebar.js'),
docItemComponent: '@theme/ApiItem',
},
],
[
'docusaurus-plugin-openapi-docs',
{
id: 'idn-api',
docsPluginId: 'idn',
config: {
idn_v3: {
specPath: 'static/api-specs/idn/sailpoint-api.v3.yaml',
outputDir: 'products/idn/api/v3',
downloadUrl:
'https://raw.githubusercontent.com/sailpoint-oss/api-specs/main/dereferenced/deref-sailpoint-api.v3.yaml',
sidebarOptions: {
groupPathsBy: 'tag',
categoryLinkSource: 'tag',
},
template: 'api.mustache',
},
idn_beta: {
specPath: 'static/api-specs/idn/sailpoint-api.beta.yaml',
outputDir: 'products/idn/api/beta',
downloadUrl:
'https://raw.githubusercontent.com/sailpoint-oss/api-specs/main/dereferenced/deref-sailpoint-api.beta.yaml',
sidebarOptions: {
groupPathsBy: 'tag',
categoryLinkSource: 'tag',
},
template: 'api.mustache',
},
},
},
],
[
'docusaurus-plugin-openapi-docs',
{
id: 'iiq-api',
docsPluginId: 'iiq',
config: {
iiq: {
specPath: 'static/api-specs/iiq/sailpoint-api.iiq.yaml',
outputDir: 'products/iiq/api',
downloadUrl:
'https://raw.githubusercontent.com/sailpoint-oss/api-specs/main/iiq/sailpoint-api.iiq.yaml',
sidebarOptions: {
groupPathsBy: 'tag',
categoryLinkSource: 'tag',
},
template: 'api.mustache',
},
},
},
],
[
'docusaurus-plugin-openapi-docs',
{
id: 'nerm-api',
docsPluginId: 'nerm',
config: {
nerm: {
specPath: 'static/api-specs/nerm/openapi.yaml',
outputDir: 'products/nerm/api',
downloadUrl:
'https://raw.githubusercontent.com/sailpoint-oss/api-specs/main/dereferenced/deref-sailpoint-api.nerm.yaml',
sidebarOptions: {
groupPathsBy: 'tag',
categoryLinkSource: 'tag',
},
template: 'api.mustache',
},
},
},
],
];