Skip to content

Commit

Permalink
Remove clojuredocs urls from see-alsos
Browse files Browse the repository at this point in the history
  • Loading branch information
PEZ committed Nov 1, 2021
1 parent 6580542 commit c866a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clojuredocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function docsEntry2ClojureCode(docs: DocsEntry, printDocString = false): string
// Not planning to print docs string, but keeping this code anyway =)
const doc = docs.doc.split(/\n/).map(line => `;; ${line.replace(/^ {0,3}/, '')}`).join('\n').trim();
const examples = docs.examples.map((example, i) => `${exampleSeparatorB} ${i + 1}\n${example.trim()}\n${exampleSeparatorE} ${i + 1}`).join('\n\n');
const seeAlsos = docs.seeAlsos.map(also => `${also.replace(/^clojure.core\//, '')} ; ${docs.baseUrl}/${also.replace(/\?/g, '%3F')}`).join(`\n`);
const seeAlsos = docs.seeAlsos.map(also => `${also.replace(/^clojure.core\//, '')}`).join(`\n`);
const code = `${name}\n${webUrl}\n${printDocString ? doc + '\n' : ''}\n;; Examples:\n${examples}\n\n;; See also:\n${seeAlsos}\n`;
return code;
}
Expand Down

0 comments on commit c866a45

Please sign in to comment.