mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-04-10 13:50:56 +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 }) => {
|
||||
try {
|
||||
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,
|
||||
).then((r) => r.text())
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue