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

jsdoc-template-vue

v0.2.5

Published

A jsdoc template write by vue

Downloads

7

Readme

jsdoc-template-vue

This is jsdoc template write by vue, the main UI part is base on TUI JSDoc Template, while use Vue server renderer as template render.

INSTALL

npm install -D jsdoc-template-vue

FEATURE

jsdoc-template-vue has the following features:

  • Navigation:
    • AutoComplete Searchbox
    • Collapsible
    • Members / Methods / Events
    • Vue Components written by iview-typescript format
    • Grouped navigation for components, classes, namespaces, mixins
    • API / Examples (Tutorials) switcher
    • Resizable
    • mermaid support in markdown snippet,see mermaid documentation
  • Examples: HTML/JS source tab in example pages
  • Typescript feature support: Generics Type

Configuration

Here is an full example configuration of jsdoc

{
  "$schema": "https://json.schemastore.org/jsdoc-1.0.0.json",
  "plugins": ["jsdoc-plugin-typescript-support", "jsdoc-template-vue/plugins/vue", "plugins/markdown", "plugins/summarize"],
  "source": {
    // include source files
    "include": ["types", "node_modules/view-design/types"],

    "includePattern": ".+\\.ts(doc|x)?$"
  },
  "opts": {
    "encoding": "utf8",
    "recurse": true,
    "package": "package.json",
    "readme": "README.md",
    "destination": "docker/docs",
    "template": "node_modules/jsdoc-template-vue",
    // include tutorial files
    "tutorials": "documentation/tutorials/"
  },
  "sourceType": "module",
  "templates": {
    "cleverLinks": true,
    "monospaceLinks": true,
    "default": {
      "outputSourceFiles": true,
      "includeDate": true,
      "staticFiles": {
        "include": ["documentation/static/"]
      }
    }
  },
  "jsdoc-template-vue": {
    // if server is enable, a devserver will be start after all doclet is parsed, instead of generate documentation files, this is only availiable for development enviroment
    "server": false,
    // the port for devserver
    "port": 8090,
    "host": "0.0.0.0",
    "css": ["styles/custom.css"],
    "appName": "新c端开发文档",
    "footerText": "新c端开发文档, 文档撰写:1. <a href=\"mailto:[email protected]\">何友表</a>",
    // translations
    "translations": {
      "api": "接口",
      "tutorials?": "教程",
      "modules?": "模块",
      "class(es)?": "类",
      "interfaces?": "接口",
      "globals?": "全局属性",
      "methods?": "方法",
      "(type\\s+definition|typedef)s?": "类型定义",
      "members?": "成员变量",
      "props?": "属性",
      "components?": "组件",
      "events?": "事件",
      "extends": "继承",
      "fires?": "触发事件"
    },
    // allow group documentaions for components, classes, namespaces, mixins, interfaces
    "groups": {
      "components": {
        "IView 组件": "doc=>doc.meta.shortpath.startsWith('node_modules/view-design')"
      },
      "interfaces": {
        "外部服务调用": "doc=>doc.meta.shortpath.startsWith('types/services')"
      }
    }
  },
  "tags": {
    "allowUnknownTags": true,
    "dictionaries": ["jsdoc", "closure"]
  },
  "recurseDepth": 10
}

DEVELOPEMENT

Compiles and hot-reloads for development

Enable jsdoc-template-vue.server options, and then run jsdoc -c yourjsdocconf.jsdoc, a hot-reloads server will be start after all documentaion are parsed;

Compiles and minifies for production for both client and server bundle

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.