Skip to content

Commit

Permalink
chore: fixed generate docs and format docs and scripts deno code
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoydip committed Sep 7, 2024
1 parent aa5b9d9 commit d02acb5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const markdown = {
const site = lume(
{
location: new URL("https://lume.land"),
},
},
{ markdown },
);

Expand Down
10 changes: 6 additions & 4 deletions docs/custom/components/lume_shield.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default class LumeShield extends HTMLElement {
async connectedCallback() {
if (this.dataset.skipNudd !== '') {
if (this.dataset.skipNudd !== "") {
const data = await getData(this.dataset.name, this.dataset.skipNudd);

if (data) {
Expand All @@ -11,11 +11,13 @@ export default class LumeShield extends HTMLElement {
</a>`;
}
} else {
const { name, url, color, version } = this.dataset
const { name, url, color, version } = this.dataset;
this.innerHTML = `
<a href="${url}">
${name}<span style="background-color: ${color}"; color: 'white'>${version.replace(/^v/, "")}</span>
</a>`
${name}<span style="background-color: ${color}"; color: 'white'>${
version.replace(/^v/, "")
}</span>
</a>`;
}
}
}
Expand Down

0 comments on commit d02acb5

Please sign in to comment.