nijikokun / minami

💅 Clean and minimal JSDoc 3 Template / Theme
Other
575 stars 161 forks source link

Custom tag not working #31

Open Ridermansb opened 7 years ago

Ridermansb commented 7 years ago

I create an new tag ..

exports.defineTags = function (dictionary) {
  dictionary.defineTag("topic", {
    mustHaveValue: true,
    canHaveType: false,
    canHaveName: true,
    onTagged: function (doclet, tag) {
      doclet.topic = tag.value;
    }
  });
};

Inclide in my jsdoc.json ..

{
  "tags": {
    "allowUnknownTags": true,
    "dictionaries": ["jsdoc"]
  },
  "source": {
    "include": ["package.json", "README.md"],
    "includePattern": ".js$",
    "excludePattern": "(node_modules/|docs)"
  },
  "plugins": [
    "plugins/markdown",
    "./jsdoc/topic.js" // HERE
  ],
  "opts": {
    "template": "./node_modules/minami",
    "encoding": "utf8",
    "destination": "docs/",
    "recurse": true,
    "verbose": true
  },
  "templates": {
    "cleverLinks": false,
    "monospaceLinks": true,
    "useLongnameInNav": false,
    "showInheritedInNav": true
  }
}

Added into my code

But nothing change in doc