-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: brokenAnchors for linked typed list fixed * ci: Add and moddify helpers, functions and handlebars * ci: manual fixes in .md and .ts files * Apply suggestions from code review Co-authored-by: Rekard0 <[email protected]> * ci: requested changes from code review * Feature: Add support for osx-configs (#324) * add support for osx-configs * update for new configs * fix comments and update yarn lock * fix comments * fix tests * fix sonar * fix sonar * refactor getNetwork function * fix comments * fix: throw error when repo contract is not available * fix: build --------- Co-authored-by: Rekard0 <[email protected]> Co-authored-by: josemarinas <[email protected]>
- Loading branch information
1 parent
e53f221
commit e132db3
Showing
11 changed files
with
120 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{! usage: link to="namepath" html=true/false caption="optional caption"~}} | ||
|
||
{{~#if html~}} | ||
<code> | ||
|
||
{{~#link to~}} | ||
{{#if url~}} | ||
<a href="{{{url}}}">{{#if ../../caption}}{{../../../caption}}{{else}}{{name}}{{/if}}</a> | ||
{{~else~}} | ||
{{#if ../../caption}}{{../../../caption}}{{else}}{{name}}{{/if~}} | ||
{{/if~}} | ||
{{/link~}} | ||
|
||
</code> | ||
{{~else~}} | ||
|
||
{{#link to~}} | ||
{{#if url~}} | ||
[<code>{{#if ../../caption}}{{escape ../../../caption}}{{else}}{{escape name}}{{/if}}</code>]({{{toLowerCase url}}}) | ||
{{~else~}} | ||
{{#if ../../caption}}{{escape ../../../caption}}{{else}}{{{escape (toLowerCase (extractText name))}}}{{/if~}} | ||
{{~/if~}} | ||
{{/link~}} | ||
|
||
{{/if~}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{{#each types~}} | ||
{{>custom-link to=this html=../html ~}} | ||
{{#unless @last}}{{{../delimiter}}}{{/unless~}} | ||
{{/each}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
const util = require("util"); | ||
|
||
exports.anchorName = anchorName; | ||
|
||
function anchorName(options) { | ||
const methodSign = options.data.methodSign | ||
? options.data.methodSign | ||
.replace(/[^\w\s]/g, "") | ||
.replace(/\s+/g, "-") | ||
.toLowerCase() | ||
: ""; | ||
|
||
if (!this.id) | ||
throw new Error( | ||
"[anchorName helper] cannot create a link without a id: " + | ||
JSON.stringify(this) | ||
); | ||
if (this.inherited) { | ||
options.hash.id = this.inherits; | ||
const inherits = _identifier(options); | ||
if (inherits) { | ||
return anchorName.call(inherits, options); | ||
} else { | ||
return ""; | ||
} | ||
} | ||
|
||
return util.format( | ||
"%s%s%s%s", | ||
this.isExported ? "exp_" : "", | ||
this.kind === "constructor" ? "new_" : "", | ||
this.id | ||
.replace(/:/g, "_") | ||
.replace(/~/g, "..") | ||
.replace(/\(\)/g, "_new") | ||
.replace(/#/g, "") | ||
.replace(/\./g, "") | ||
.toLowerCase(), | ||
methodSign | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
|
||
exports.stripTags = stripTags | ||
exports.toLowerCase = toLowerCase; | ||
exports.stripTags = stripTags; | ||
exports.extractText = extractText; | ||
|
||
function stripTags(input) { | ||
// Replace HTML entities with their corresponding characters | ||
var decodedInput = input.replace(/</g, '<').replace(/>/g, '>'); | ||
// Remove <p> tags | ||
return decodedInput.replace(/<\/?p>/ig, ""); | ||
// Replace HTML entities with their corresponding characters | ||
const decodedInput = input.replace(/</g, "<").replace(/>/g, ">"); | ||
// Remove <p> tags | ||
return decodedInput.replace(/<\/?p>/gi, ""); | ||
} | ||
|
||
function toLowerCase(input) { | ||
return input.toLowerCase(); | ||
} | ||
|
||
|
||
function extractText(input) { | ||
// Keep only alphabetic characters (a-z, A-Z) | ||
return input.match(/[a-zA-Z0-9]+/g).join(""); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{#if scope}} | ||
**Kind**: {{#if (equal kind "event") ~}} | ||
event emitted{{#if memberof}} by {{>link to=memberof}}{{/if}} | ||
{{else~}} | ||
{{scope}} {{#if virtual}}abstract {{/if}}{{kindInThisContext}}{{#if memberof}} of {{>custom-link to=memberof}}{{/if}} | ||
{{/if~}} | ||
{{else~}} | ||
{{#if isExported}}**Kind**: Exported {{kind}} | ||
{{/if~}} | ||
{{/if~}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{#if virtual}}*{{/if}}{{#with (parentObject)}}{{#if virtual}}*{{/if~}}{{/with~}} | ||
{{#if name}}{{#sig~}} | ||
{{{@depOpen}~}} | ||
[{{{@codeOpen}~}} | ||
{{#if @prefix}}{{@prefix}} {{/if~}} | ||
{{@accessSymbol}}{{#if (isEvent)}}"{{{name}}}"{{else}}{{{name}}}{{/if~}} | ||
{{~#if @methodSign}}{{#if (isEvent)}} {{@methodSign}}{{else}}{{@methodSign}}{{/if}}{{/if~}} | ||
{{{@codeClose}}}](#{{{anchorName}}}{{#if @returnTypes}}--{{>custom-linked-type-list types=@returnTypes delimiter="--" }}{{/if~}}) | ||
{{~#if @returnSymbol}} {{@returnSymbol}}{{/if~}} | ||
{{#if @returnTypes}} {{>linked-type-list types=@returnTypes delimiter=" \| " }}{{/if~}} | ||
{{#if @suffix}} {{@suffix}}{{/if~}} | ||
{{{@depClose}~}} | ||
{{~/sig}}{{/if~}} | ||
{{#if virtual}}*{{/if}}{{#with (parentObject)}}{{#if virtual}}*{{/if~}}{{/with~}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters