Skip to content

Commit

Permalink
add references
Browse files Browse the repository at this point in the history
  • Loading branch information
break-stuff committed Aug 11, 2023
1 parent c8bb83a commit a957d54
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions custom-elements-manifest.config.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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-', '')}`
}]
})
]
};

0 comments on commit a957d54

Please sign in to comment.