mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-04-21 12:23:58 +01:00
fix(website): use v1 api for docs
This commit is contained in:
parent
cb3c47477a
commit
308320602f
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ const findDocTitle = (docs: DocEntry[], name: string): string | undefined => {
|
||||||
export const load: PageLoad = async ({ params, parent, fetch }) => {
|
export const load: PageLoad = async ({ params, parent, fetch }) => {
|
||||||
try {
|
try {
|
||||||
const page = await fetchRegistry(
|
const page = await fetchRegistry(
|
||||||
`packages/${encodeURIComponent(`${params.scope}/${params.name}`)}/${encodeURIComponent(params.version ?? "latest")}/${encodeURIComponent(params.target ?? "any")}?doc=${encodeURIComponent(params.doc)}`,
|
`packages/${encodeURIComponent(`${params.scope}/${params.name}`)}/${encodeURIComponent(params.version ?? "latest")}/${encodeURIComponent(params.target ?? "any")}/doc?doc=${encodeURIComponent(params.doc)}`,
|
||||||
fetch,
|
fetch,
|
||||||
).then((r) => r.text())
|
).then((r) => r.text())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue