Skip to content

Commit 3bdc79f

Browse files
authored
docs: remove /index.html from homepage URL (#90)
## Summary - Replace all `href="index.html"` links with `href="/"` across 35 doc pages so clicking Home or the logo produces a clean URL without `/index.html` - Add `history.replaceState` fallback in `index.html` to silently rewrite `/index.html` → `/` for direct visits (bookmarks, search engines, old links) - Update `sidebar.js` current-page detection to still highlight correctly when the path is `/` ## Test plan - [ ] Visit https://aimock.copilotkit.dev and confirm the URL stays `/` (no `/index.html`) - [ ] Click the logo or "Home" link from any doc page and confirm the URL is `/` - [ ] Navigate directly to `/index.html` and confirm the URL rewrites to `/` - [ ] Verify sidebar highlighting still works on the homepage
2 parents ad32dad + b1450d9 commit 3bdc79f

37 files changed

+78
-70
lines changed

docs/a2a-mock.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
>
2525
☰
2626
</button>
27-
<a href="index.html" class="nav-brand"> <span class="prompt">$</span> aimock </a>
27+
<a href="/" class="nav-brand"> <span class="prompt">$</span> aimock </a>
2828
</div>
2929
<ul class="nav-links">
30-
<li><a href="index.html">Home</a></li>
30+
<li><a href="/">Home</a></li>
3131
<li><a href="docs.html" style="color: var(--accent)">Docs</a></li>
3232
<li>
3333
<a href="https://github.com/CopilotKit/aimock" class="gh-link" target="_blank"

docs/aimock-cli.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
>
2525
&#9776;
2626
</button>
27-
<a href="index.html" class="nav-brand"> <span class="prompt">$</span> aimock </a>
27+
<a href="/" class="nav-brand"> <span class="prompt">$</span> aimock </a>
2828
</div>
2929
<ul class="nav-links">
30-
<li><a href="index.html">Home</a></li>
30+
<li><a href="/">Home</a></li>
3131
<li><a href="docs.html" style="color: var(--accent)">Docs</a></li>
3232
<li>
3333
<a href="https://github.com/CopilotKit/aimock" class="gh-link" target="_blank"

docs/aws-bedrock.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
>
2525
&#9776;
2626
</button>
27-
<a href="index.html" class="nav-brand"> <span class="prompt">$</span> aimock </a>
27+
<a href="/" class="nav-brand"> <span class="prompt">$</span> aimock </a>
2828
</div>
2929
<ul class="nav-links">
30-
<li><a href="index.html">Home</a></li>
30+
<li><a href="/">Home</a></li>
3131
<li><a href="docs.html" style="color: var(--accent)">Docs</a></li>
3232
<li>
3333
<a href="https://github.com/CopilotKit/aimock" class="gh-link" target="_blank"

docs/azure-openai.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
>
2525
&#9776;
2626
</button>
27-
<a href="index.html" class="nav-brand"> <span class="prompt">$</span> aimock </a>
27+
<a href="/" class="nav-brand"> <span class="prompt">$</span> aimock </a>
2828
</div>
2929
<ul class="nav-links">
30-
<li><a href="index.html">Home</a></li>
30+
<li><a href="/">Home</a></li>
3131
<li><a href="docs.html" style="color: var(--accent)">Docs</a></li>
3232
<li>
3333
<a href="https://github.com/CopilotKit/aimock" class="gh-link" target="_blank"

docs/chaos-testing.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
>
2525
&#9776;
2626
</button>
27-
<a href="index.html" class="nav-brand"> <span class="prompt">$</span> aimock </a>
27+
<a href="/" class="nav-brand"> <span class="prompt">$</span> aimock </a>
2828
</div>
2929
<ul class="nav-links">
30-
<li><a href="index.html">Home</a></li>
30+
<li><a href="/">Home</a></li>
3131
<li><a href="docs.html" style="color: var(--accent)">Docs</a></li>
3232
<li>
3333
<a href="https://github.com/CopilotKit/aimock" class="gh-link" target="_blank"

docs/chat-completions.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
>
2525
&#9776;
2626
</button>
27-
<a href="index.html" class="nav-brand"> <span class="prompt">$</span> aimock </a>
27+
<a href="/" class="nav-brand"> <span class="prompt">$</span> aimock </a>
2828
</div>
2929
<ul class="nav-links">
30-
<li><a href="index.html">Home</a></li>
30+
<li><a href="/">Home</a></li>
3131
<li><a href="docs.html" style="color: var(--accent)">Docs</a></li>
3232
<li>
3333
<a href="https://github.com/CopilotKit/aimock" class="gh-link" target="_blank">

docs/claude-messages.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
>
2525
&#9776;
2626
</button>
27-
<a href="index.html" class="nav-brand"> <span class="prompt">$</span> aimock </a>
27+
<a href="/" class="nav-brand"> <span class="prompt">$</span> aimock </a>
2828
</div>
2929
<ul class="nav-links">
30-
<li><a href="index.html">Home</a></li>
30+
<li><a href="/">Home</a></li>
3131
<li><a href="docs.html" style="color: var(--accent)">Docs</a></li>
3232
<li>
3333
<a href="https://github.com/CopilotKit/aimock" class="gh-link" target="_blank"

docs/cohere.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
>
2525
&#9776;
2626
</button>
27-
<a href="index.html" class="nav-brand"> <span class="prompt">$</span> aimock </a>
27+
<a href="/" class="nav-brand"> <span class="prompt">$</span> aimock </a>
2828
</div>
2929
<ul class="nav-links">
30-
<li><a href="index.html">Home</a></li>
30+
<li><a href="/">Home</a></li>
3131
<li><a href="docs.html" style="color: var(--accent)">Docs</a></li>
3232
<li>
3333
<a href="https://github.com/CopilotKit/aimock" class="gh-link" target="_blank"

docs/compatible-providers.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
>
2525
&#9776;
2626
</button>
27-
<a href="index.html" class="nav-brand"> <span class="prompt">$</span> aimock </a>
27+
<a href="/" class="nav-brand"> <span class="prompt">$</span> aimock </a>
2828
</div>
2929
<ul class="nav-links">
30-
<li><a href="index.html">Home</a></li>
30+
<li><a href="/">Home</a></li>
3131
<li><a href="docs.html" style="color: var(--accent)">Docs</a></li>
3232
<li>
3333
<a href="https://github.com/CopilotKit/aimock" class="gh-link" target="_blank"

docs/docker.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
>
2525
&#9776;
2626
</button>
27-
<a href="index.html" class="nav-brand"> <span class="prompt">$</span> aimock </a>
27+
<a href="/" class="nav-brand"> <span class="prompt">$</span> aimock </a>
2828
</div>
2929
<ul class="nav-links">
30-
<li><a href="index.html">Home</a></li>
30+
<li><a href="/">Home</a></li>
3131
<li><a href="docs.html" style="color: var(--accent)">Docs</a></li>
3232
<li>
3333
<a href="https://github.com/CopilotKit/aimock" class="gh-link" target="_blank"

0 commit comments

Comments
 (0)