chore(website): add debug logs

This commit is contained in:
Luka 2024-10-12 23:08:55 +02:00 committed by LukaDev
parent 3e3b48b2a5
commit 35d86d0343

View file

@ -41,7 +41,9 @@ export const load: PageLoad = async ({ parent, fetch }) => {
const { pkg } = await parent()
const { name, version, targets } = pkg
console.log("fetching readme")
const readmeText = await fetchReadme(fetch, name, version, targets[0].kind)
console.log(readmeText)
const file = await unified()
.use(remarkParse)
@ -63,6 +65,7 @@ export const load: PageLoad = async ({ parent, fetch }) => {
.process(readmeText)
const readmeHtml = file.value
console.log(readmeHtml)
return {
readmeHtml,