GithubHelp home page GithubHelp logo

yangyang0507 / vuepress-plugin-lastest-version Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 143 KB

Get lastest version for artifact

License: MIT License

JavaScript 100.00%
vue vuepress vuepress-plugin version-control documentation doc

vuepress-plugin-lastest-version's Introduction

vuepress-plugin-lastest-version

npm npm GitHub

Get lastest version of artifact for your vuepress doc

Install

yarn add -D vuepress-plugin-lastest-version
# OR npm install -D vuepress-plugin-lastest-version

Use

module.exports = {
  plugins: [
    "lastest-version",
    {
      repos: [
        {
          keywords: "mybatis-plus-latest-version",
          type: "maven",
          repo: "com.baomidou/mybatis-plus",
        }
      ]
    }
  ]
};

repos.keywords

  • type: string
  • requried: true
  • value: your keywords

The keywords which will be replaced

repos.type

  • type: string
  • requried: true
  • value: maven | npm

Choose which artifact type need get lastest version

repos.repo

  • type: string
  • requried: true
  • value: your repo

When type is maven, your repo value is :groupId/:artifactId When type is npm, your repo value is :packageName

e.g.

module.exports = {
  plugins: [
    "lastest-version",
    {
      repos: [
        {
          keywords: "mybatis-plus-latest-version",
          type: "maven",
          repo: "com.baomidou/mybatis-plus",
        }
      ]
    }
  ]
};

module.exports = {
  plugins: [
    "lastest-version",
    {
      repos: [
        {
          keywords: "vuepress-plugin-latest-version",
          type: "npm",
          repo: "vuepress-plugin-lastest-version",
        }
      ]
    }
  ]
};

After configuration, the plugin will replace all keywords character to really lastest version.

So, don't forgot to add keywords placeholder to your document so that this plugin can change version normally.

vuepress-plugin-lastest-version's People

Contributors

yangyang0507 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.