Remove console.log

pull/8452/head
Puru Vijay 3 years ago
parent 6899df23ea
commit 9abbc8c54a

@ -37,8 +37,6 @@ modules.forEach((module) => {
}); });
}); });
console.log(type_links);
/** /**
* @param {import('./types').DocsData} docs_data * @param {import('./types').DocsData} docs_data
* @param {string} slug * @param {string} slug
@ -218,11 +216,8 @@ export async function get_parsed_docs(docs_data, slug) {
type_regex.lastIndex = 0; type_regex.lastIndex = 0;
console.log(html);
html = html html = html
.replace(type_regex, (match, prefix, name) => { .replace(type_regex, (match, prefix, name) => {
console.log(2);
if (options.link === 'false' || name === current) { if (options.link === 'false' || name === current) {
// we don't want e.g. RequestHandler to link to RequestHandler // we don't want e.g. RequestHandler to link to RequestHandler
return match; return match;
@ -257,8 +252,6 @@ export async function get_parsed_docs(docs_data, slug) {
return ( return (
'<code>' + '<code>' +
text.replace(type_regex, (match, prefix, name) => { text.replace(type_regex, (match, prefix, name) => {
console.log(prefix);
console.log(1);
const link = `<a href="${type_links.get(name)}">${name}</a>`; const link = `<a href="${type_links.get(name)}">${name}</a>`;
return `${prefix || ''}${link}`; return `${prefix || ''}${link}`;
}) + }) +

Loading…
Cancel
Save