Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
docusaurus-theme-redoc
Advanced tools
This theme provides a Redoc
and a ApiDoc
theme component with a theme matching the default docusaurus classic theme and with dark mode support.
⚠️⚠️⚠️ NOTE: Not recommended for direct use. Use through main package instead: redocusaurus
Install theme:
npm i --save docusaurus-theme-redoc
Add it as a theme to your docusaurus config:
// docusaurus.config.js
module.exports = {
// ...
themes: ['docusaurus-theme-redoc'],
// ...
};
RedocStandalone
with dark mode support, matching docusaurus classic theme.
import Redoc from '@theme/Redoc';
Includes a @theme/Layout
wrapper over Redoc.
import ApiDoc from '@theme/ApiDoc';
{
/**
* Highlight color for docs
*/
primaryColor: '#1890ff',
/**
* Highlight color for docs in dark mode, if different.
* Will default to `primaryColor` if not set.
*/
primaryColorDark: '#25c2a0',
/**
* Options to pass to redoc
* @see https://github.com/redocly/redoc#redoc-options-object
*/
options: { disableSearch: true },
/**
* Options to pass to override RedocThemeObject
* @see https://github.com/Redocly/redoc#redoc-theme-object
*/
theme: { typography: { fontSize: '16px' }},
}
Convenient way to provide the highlighted color used by Redoc.
This value will be used as colors.primary.main
in the themes
option. Must be an actual color value and not a css variable.
Optional way to change the highlighted color used by Redoc in dark mode. Defaults to primaryColor
if not set.
This value will be used as colors.primary.main
in the themes
option. Must be an actual color value and not a css variable.
Override redoc options passed to RedocStandalone component. See the defaults here.
Available properties here.
You cannot set theme property using this property, use theme
option below instead.
Override the redoc theme object passed to Redoc. See the default here.
Note: You should not provide any color using this property, as it will be the same value for dark and light themes.
FAQs
Redoc Component for DocusaurusV2
We found that docusaurus-theme-redoc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.