Security News
Python Overtakes JavaScript as Top Programming Language on GitHub
Python becomes GitHub's top language in 2024, driven by AI and data science projects, while AI-powered security tools are gaining adoption.
redocusaurus
Advanced tools
Redoc for Docusaurus v2.
npm i --save redocusaurus
# OR
yarn add redocusaurus
Add it as a preset to your docusaurus config along with @docusaurus/preset-classic and pass options:
// docusaurus.config.js
module.exports = {
// ...
presets: [
// .. Your other presets' config
'@docusaurus/preset-classic',
// Redocusaurus config
[
'redocusaurus',
{
// Plugin Options for loading OpenAPI files
specs: [
{
spec: 'openapi/openapi.yaml',
route: '/api/',
},
],
// Theme Options for modifying how redoc renders them
theme: {
// Change with your site colors
primaryColor: '#1890ff',
},
},
],
],
// ...
};
OR Pass it a OpenAPI spec URL
// docusaurus.config.js
module.exports = {
// ...
presets: [
// .. Your other presets' config
'@docusaurus/preset-classic',
// Redocusaurus config
[
'redocusaurus',
{
// Plugin Options for loading OpenAPI files
specs: [
{
spec: 'https://redocly.github.io/redoc/openapi.yaml',
route: '/api/',
},
],
// Theme Options for modifying how redoc renders them
theme: {
// Change with your site colors
primaryColor: '#1890ff',
},
},
],
],
// ...
};
The API Doc will be available at the route specified (/api/
in the example above). To customize it see full plugin options.
Pass it an array of plugin options, see docusaurus-plugin-redoc for individual option details.
Pass options to customize the theme, see docusaurus-theme-redoc for individual option details.
redocusaurus@1.2.0
d4d12ce
Thanks @rohit-gohri! - Move docusaurus packages to peer dependencies#204 5c2eb52
Thanks @rohit-gohri! - Upgrade to beta-21
Updated dependencies [d4d12ce
, 5c2eb52
]:
FAQs
Redoc for DocusaurusV2
The npm package redocusaurus receives a total of 15,952 weekly downloads. As such, redocusaurus popularity was classified as popular.
We found that redocusaurus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Python becomes GitHub's top language in 2024, driven by AI and data science projects, while AI-powered security tools are gaining adoption.
Security News
Dutch National Police and FBI dismantle Redline and Meta infostealer malware-as-a-service operations in Operation Magnus, seizing servers and source code.
Research
Security News
Socket is tracking a new trend where malicious actors are now exploiting the popularity of LLM research to spread malware through seemingly useful open source packages.