npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@primeton-ui/pmbook

v1.1.15

Published

Minimalistic doc generator with Vue component based layout system

Downloads

1,000

Readme

Pmbook

基于vuepress封装的markdown文档系统

安装

npm install @primeton-ui/pmbook -g

如果您不需要pdf导出功能,请安装1.0.17版本

pdf导出功能对windows系统可用版本:1.0.14win版本

pdf导出功能对mac系统可用版本:1.0.14mac版本,并且需要您手动将一个1.20.0版本的puppeteer依赖包(请在其它前端项目中install并在node_modules中寻找)复制到您全局@primeton-ui/pmbook安装位置的node_mudules文件夹下

这是由于pdf导出依赖包1.20.0版本的puppeteer需要系统权限才能安装(mac系统可能会遇到安装失败问题)

使用

pmbook dev
pmbook build
pmbook exportPDF

全局安装pmbook后,完成基本目录、附件配置在文档根目录运行pmbook dev命令即可(可能需要管理员身份运行)

必要的文件

   ├── config                         基本配置文件
       ├── menu 
           ├── menu.js                左侧菜单
           ├── nav.js                 navbar下拉菜单
       ├── config.js 
   ├── public                          附件文件夹
   │   ├── pmbook-logo.svg                 
   ├── dist                            编译产物包

menu.js

export default [{
  'title': '产品文档',
  'children': [{
    'title': '文档说明',
    'path': 'product-doc/introduce',
    'children': [],
  }],
}]

nav.js

export default [
  {
    text: '其他版本',
    items: [
      {
        text: '1.1',
        link: '/1.1/'
      },
      {
        text: '1.2',
        link: '/1.2/'
      }
    ]
  }
]

config.js

import menu from './menu/meun'
import Nav from './menu/nav'

export default {
  // base:'/pmbook/',    基本路径,默认为'/'
  locales: {
    '/': {
      title: 'pmbook',
      description: 'pmbook是一个基于vuepress封装的文档框架,全局安装后可以在任何文档下直接运行、打包',
    },
  },
  themeConfig: {
    sidebar: menu,
    locales: {
      '/': {
        nav: Nav,
      },
    },
    logo: '/pmbook-logo.svg', //logo图片地址对应public文件夹中位值
  },
  paramsConfig:{
    version:'1.1' //变量配置,可以在md文件中通过{{$paramsConfig.version}}引用并显示
    //如需在代码段中使用变量,请使用:::code :::来包裹代码段,而不是惯常使用的``` ```
  }
}