Socket
Book a DemoInstallSign in
Socket

@crossid/docusaurus-remote-content

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crossid/docusaurus-remote-content

A plugin for Docusaurus to fetch content from remote sources.

0.1.5
latest
Source
npmnpm
Version published
Maintainers
2
Created
Source

@crossid/docusaurus-remote-content

A plugin for Docusaurus to fetch content remotely.

Usage

npm: npm install --save @crossid/docusaurus-remote-content

yarn: yarn add @crossid/docusaurus-remote-content

docusaurus.config.js:

module.exports = {
  plugins: [
    [
      '@crossid/docusaurus-remote-content',
      {
        type: 'docs',
        contents: [
          {
            file: 'sample-nodejs.md',
            url: 'https://raw.githubusercontent.com/crossid/sample-nodejs/main/README.md',
            header: `:::note
This content is from the README file of https://github.com/crossid/sample-nodejs.
:::`,
            meta: {
              id: 'sample-nodejs',
              sidebar_label: 'Sample-Nodejs',
              hide_title: true,
            },
          },
      }
    ],
  ],
};

To fetch / clean remote files from CLI, add to your package.json:

{
  "scripts": {
    "fetch-remote-docs": "docusaurus fetch-remote-docs",
    "clean-remote-docs": "docusaurus clean-remote-docs"
  }
}

For complete example, see example/docusaurus.config.js

Keywords

docusaurus

FAQs

Package last updated on 10 Sep 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.