File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
player/[...recordingPath]
recordings/[...recordingPath] Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 2626 let isMounted;
2727 let introAgentsRef;
2828
29- const METHODS_ANCHOR = " #methods" ;
29+ const heroCTA = copy? .paperHeader ? .hero ? .cta || {};
30+ const PAPER_LINK =
31+ typeof heroCTA .href === " string" && heroCTA .href .trim ().length > 0 ? heroCTA .href : " #" ;
3032
3133 onMount (() => {
3234 setTimeout (() => {
5961 if (index === 1 || index === 2 ) {
6062 return html .replace (
6163 / <span class=instructions>([\s\S ] *? )<\/ span>/ g ,
62- ` <a class="methods-link" href="${ METHODS_ANCHOR } "><span class="instructions">$1</span></a>`
64+ ` <a class="methods-link" href="${ PAPER_LINK } " target="_blank" rel="noopener noreferrer "><span class="instructions">$1</span></a>`
6365 );
6466 }
6567 return html;
Original file line number Diff line number Diff line change 11import allBenchmarkData from "$data/website_data.csv" ;
22
33export const ssr = false ;
4+ export const prerender = false ;
45
56export function load ( { params, url } ) {
67 const recordingPath = params . recordingPath || "" ;
Original file line number Diff line number Diff line change 11import path from "node:path" ;
22import { readFile } from "node:fs/promises" ;
33
4+ export const prerender = false ;
5+
46const recordingsRoot = path . resolve ( "src/data/recordings" ) ;
57
68export async function GET ( { params } ) {
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ const preprocess = sveltePreprocess({
1111const config = {
1212 preprocess,
1313 kit : {
14- adapter : adapterStatic ( )
14+ adapter : adapterStatic ( {
15+ fallback : "200.html"
16+ } )
1517 } ,
1618 vitePlugin : {
1719 // experimental: {
You can’t perform that action at this time.
0 commit comments