
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@telus-uds/docusaurus-plugin-component-docs-pages
Advanced tools
Docusaurus plugin for accessing jsdocs parsed from the components
Docusaurus plugin for reusing base component mdx pages
npm install --save @telus-uds/docusaurus-plugin-component-docs-pages
module.exports = {
// ...
plugins: ['@telus-uds/docusaurus-plugin-component-docs-pages']
// ...
}
This plugin wraps a docusaurus docs plugin with content automatically provided from the 'docs/' folder. The plugin accepts all options applicable to the docs plugin, and passes these through to the underlying docs plugin, altering only the sidebarPath to reflect the copied sidebar file.
Note 1: If you are using this as your only docs plugin and you are using the classic preset, you will need to disable docs in the preset.
Note 2: You will need to provide @theme/PropsTable @theme/Playground and @theme/LibraryInfo components in your docusaurus site for this plugin to work, you will also need to make all UDS Base components and at least an ExampleIcon available in the react live scope (see e.g. the Koodo docs site for how to do this).
module.exports = {
// ...
presets: [
'classic',
{
docs: false,
theme: {
//...
}
}
],
plugins: [
'@telus-uds/docusaurus-plugin-component-docs-pages',
{
breadcrumbs: false
}
]
// ...
}
If you wish to use this plugin with a custom index page, just add a README.mdx to the directory which will contain the docs and add
slug: '/'
displayed_sidebar: generatedComponentsDocs
into the metadata.
To add documentation for a component depending on a platform:
web, multi-platform, ios inside docs/. If the platform you need does not exist create a respective folder for it in docs/.sidebars/ with the same name as the destination folder. For eg: if shown below is your plugin options in docusaurus.config.js;[
'@telus-uds/docusaurus-plugin-component-docs-pages',
{
id: 'allium',
path: 'components/allium',
routeBasePath: 'components/allium',
breadcrumbs: false
}
]
You'll need an allium.js in sibebars with keys for each respective platform as shown below.
module.exports = {
ios: {
Inputs: ['ios/radio', 'ios/checkbox']
},
web: ['web/list', 'web/image']
}
Refer to the UDS monorepo README for details.
FAQs
Docusaurus plugin for accessing jsdocs parsed from the components
We found that @telus-uds/docusaurus-plugin-component-docs-pages demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.