Skip to content

Commit b7d6247

Browse files
committed
wip
1 parent c6bac60 commit b7d6247

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ 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+
4547
if (up) {
4648
pathId = pathId.split('/').slice(0, -1).join('/');
4749
if (id.includes('/')) {

src/stores/code-snippets.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import snippets from ':code_snippets';
22
import { readonly, writable } from 'svelte/store';
33

4-
console.log(snippets);
5-
64
const store = writable(snippets);
75

86
export const codeSnippets = readonly(store);

0 commit comments

Comments
 (0)