Skip to content

Commit

Permalink
🫡
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt committed Aug 1, 2024
1 parent dfb4dc5 commit 7ff4043
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ import HTMLCard from '@site/src/components/HTMLCard';
writeFileSyncCached(path.join(this.outDir, 'api', `class-${clazz.name.toLowerCase()}.mdx`), this.mdxLinks(output));
}

#formatSince(since) {
_formatSince(since) {
if (since === 'v1.8')
return 'Added before v1.9';
return `Added in: ${since}`;
Expand Down Expand Up @@ -267,7 +267,7 @@ import HTMLCard from '@site/src/components/HTMLCard';
const expressionNameForSearch = `<x-search>${clazz.varName}.${name}</x-search>`;
sections.version.push({
type: 'text',
text: `<font size="2" style={{position: "relative", top: "-20px"}}>${this.#formatSince(member.since)}</font>${expressionNameForSearch}`
text: `<font size="2" style={{position: "relative", top: "-20px"}}>${this._formatSince(member.since)}</font>${expressionNameForSearch}`
});

// Generate deprecations.
Expand Down Expand Up @@ -581,7 +581,7 @@ ${this.documentation.renderLinksInText(member.discouraged)}
const hash = calculatePropertyHash(member, direction);
linkTag = `<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="${hash}"/>`;
if (member.enclosingMethod.since !== member.since)
sinceVersion = ` <font size="2">${this.#formatSince(member.since)}</font>`;
sinceVersion = ` <font size="2">${this._formatSince(member.since)}</font>`;
linkAnchor = `<a href="#${hash}" class="list-anchor">#</a>`;
}

Expand Down

0 comments on commit 7ff4043

Please sign in to comment.