Skip to content

Commit 522733b

Browse files
Copilot0xrinegade
andcommitted
Move index.html to /docs for GitHub Pages setup
Co-authored-by: 0xrinegade <[email protected]>
1 parent 92f60d1 commit 522733b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.html renamed to docs/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ <h1>🚀 Solana IDL Registry</h1>
441441
// Load index.json and initialize
442442
async function init() {
443443
try {
444-
const response = await fetch('index.json');
444+
const response = await fetch('../index.json');
445445
const data = await response.json();
446446
allProtocols = data.protocols;
447447
filteredProtocols = allProtocols;
@@ -625,7 +625,7 @@ <h3>No protocols found</h3>
625625
if (!protocol) return;
626626

627627
try {
628-
const response = await fetch(protocol.idlPath);
628+
const response = await fetch('../' + protocol.idlPath);
629629
const idl = await response.json();
630630

631631
const newWindow = window.open('', '_blank');
@@ -654,7 +654,7 @@ <h1>${protocol.name} IDL</h1>
654654
if (!protocol) return;
655655

656656
try {
657-
const response = await fetch(protocol.idlPath);
657+
const response = await fetch('../' + protocol.idlPath);
658658
const idl = await response.json();
659659

660660
const blob = new Blob([JSON.stringify(idl, null, 2)], { type: 'application/json' });
@@ -680,7 +680,7 @@ <h1>${protocol.name} IDL</h1>
680680
if (!protocol) continue;
681681

682682
try {
683-
const response = await fetch(protocol.idlPath);
683+
const response = await fetch('../' + protocol.idlPath);
684684
const idl = await response.json();
685685
idls[protocolId] = idl;
686686
} catch (error) {

0 commit comments

Comments
 (0)