Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Dec 2, 2024
1 parent b7d6247 commit 048e74c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/code-snippet/code-snippet.astro
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ function findCodeSnippet(id: string, ext?: string, up?: boolean) {
let jsLibDir = get(currentJSLibrary) === 'web-components' ? 'wc' : get(currentJSLibrary),
pathId = pathname.slice(1).replace(/\/$/, '').replace(`/${jsLibDir}/`, '/');
console.log('\n ~~->', pathId, jsLibDir, id, ext, up);
if (up) {
pathId = pathId.split('/').slice(0, -1).join('/');
if (id.includes('/')) {
Expand Down Expand Up @@ -71,7 +69,9 @@ function findCodeSnippet(id: string, ext?: string, up?: boolean) {
}
if (!snippet) {
console.warn(`⚠️ No code snippet was found for the id \`${id}\` at \`${pathname}\`.`);
console.warn(
`⚠️ No code snippet was found for the id \`${id}\` at \`${pathname}\` -> ${isRelativeId} ${get(currentJSLibrary)} ${baseId.replace(/\..*?$/, '')} ${baseId.split('.')[1]}.`,
);
}
const defaultTitle =
Expand Down

0 comments on commit 048e74c

Please sign in to comment.