diff --git a/custom-elements-manifest.config.js b/custom-elements-manifest.config.js index 0bb65548da..7fdf455d0d 100644 --- a/custom-elements-manifest.config.js +++ b/custom-elements-manifest.config.js @@ -1,9 +1,9 @@ +import * as path from 'path'; import { customElementVsCodePlugin } from "custom-element-vs-code-integration"; import { parse } from 'comment-parser'; import { pascalCase } from 'pascal-case'; import commandLineArgs from 'command-line-args'; import fs from 'fs'; -import * as path from 'path'; const packageData = JSON.parse(fs.readFileSync('./package.json', 'utf8')); const { name, description, version, author, homepage, license } = packageData; @@ -193,7 +193,11 @@ export default { // Generate custom VS Code data customElementVsCodePlugin({ outdir, - cssFileName: null + cssFileName: null, + referencesTemplate: (_, tag) => [{ + name: "Documentation", + url: `https://shoelace.style/components/${tag.replace('sl-', '')}` + }] }) ] };