New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vuepress-plugin-thirdparty-search

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuepress-plugin-thirdparty-search

Enhanced search plugin for VuePress,可以添加第三方搜索链接的 Vuepress 搜索插件

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
815
decreased by-32.7%
Maintainers
1
Weekly downloads
 
Created
Source

此插件是基于官方的搜索框插件 @vuepress/plugin-search 做了功能添加,添加的功能如下:

  • 在搜索结果最底部添加第三方搜索链接

使用

安装

npm i vuepress-plugin-thirdparty-search -D

.vuepress/config.jsplugins选项添加插件,并配置第三方搜索链接:

// .vuepress/config.js
module.exports = {
  plugins: [
    ['thirdparty-search', {
      thirdparty: [ // 可选,默认 []
        {
          title: '在MDN中搜索', // 在搜索结果显示的文字
          frontUrl: 'https://developer.mozilla.org/zh-CN/search?q=', // 搜索链接的前面部分
          behindUrl: '' // 搜索链接的后面部分,可选,默认 ''
        },
        {
          title: '在Runoob中搜索',
          frontUrl: 'https://www.runoob.com/?s=',
        },
        {
          title: '在Vue API中搜索',
          frontUrl: 'https://cn.vuejs.org/v2/api/#',
        }
      ]
    }], 
  ]
}
  • 此插件会覆盖原本官方的 plugin-search 插件,但原插件的参数选项仍适用。更多配置请查看:plugin-search

  • 此插件在官方默认主题也适用。

Keywords

FAQs

Package last updated on 08 May 2020

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc