Skip to content

Commit 048e74c

Browse files
committed
test
1 parent b7d6247 commit 048e74c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/code-snippet/code-snippet.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ function findCodeSnippet(id: string, ext?: string, up?: boolean) {
4242
let jsLibDir = get(currentJSLibrary) === 'web-components' ? 'wc' : get(currentJSLibrary),
4343
pathId = pathname.slice(1).replace(/\/$/, '').replace(`/${jsLibDir}/`, '/');
4444
45-
console.log('\n ~~->', pathId, jsLibDir, id, ext, up);
46-
4745
if (up) {
4846
pathId = pathId.split('/').slice(0, -1).join('/');
4947
if (id.includes('/')) {
@@ -71,7 +69,9 @@ function findCodeSnippet(id: string, ext?: string, up?: boolean) {
7169
}
7270
7371
if (!snippet) {
74-
console.warn(`⚠️ No code snippet was found for the id \`${id}\` at \`${pathname}\`.`);
72+
console.warn(
73+
`⚠️ No code snippet was found for the id \`${id}\` at \`${pathname}\` -> ${isRelativeId} ${get(currentJSLibrary)} ${baseId.replace(/\..*?$/, '')} ${baseId.split('.')[1]}.`,
74+
);
7575
}
7676
7777
const defaultTitle =

0 commit comments

Comments
 (0)