0.2.6 • Published 3 years ago

vuepress-plugin-lastest-version v0.2.6

Weekly downloads
19
License
MIT
Repository
github
Last release
3 years ago

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.

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.1

3 years ago

0.2.2

3 years ago

0.2.0

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago