Skip to content

docs: remove .html extensions from all URLs site-wide#95

Closed
NathanTarbert wants to merge 3 commits intoCopilotKit:mainfrom
NathanTarbert:fix/clean-homepage-url
Closed

docs: remove .html extensions from all URLs site-wide#95
NathanTarbert wants to merge 3 commits intoCopilotKit:mainfrom
NathanTarbert:fix/clean-homepage-url

Conversation

@NathanTarbert
Copy link
Copy Markdown
Contributor

@NathanTarbert NathanTarbert commented Apr 8, 2026

Summary

Follows up on #90 (which fixed the homepage /index.html URL). This PR removes .html extensions from all URLs site-wide.

  • Restructure all doc pages from page.htmlpage/index.html directories so GitHub Pages serves clean URLs (e.g. /docs instead of /docs.html)
  • Update all internal href links across every HTML file and sidebar.js to use extensionless paths
  • Update sidebar.js current-page detection to work with directory-based URLs
  • Add 80 tests validating file structure, link integrity, and clean URL compliance

Test plan

  • 80 automated tests pass covering:
    • File structure (pages in directories, no stale root HTML files)
    • No .html in any internal href across all HTML files
    • No .html in sidebar.js href values
    • Homepage replaceState redirect exists
    • All internal link targets resolve to existing page directories
  • Click "Docs" in the navbar — URL is /docs (no /docs.html)
  • Click any sidebar link — URL has no .html extension
  • Click the logo or "Home" from any doc page — URL is /
  • Sidebar highlighting still works on all pages
  • Anchored links (e.g. /services#moderation) still work

Restructure each docs page from page.html to page/index.html so
GitHub Pages serves clean URLs (e.g. /docs instead of /docs.html).
Update all internal links and sidebar.js page detection accordingly.
80 tests verifying file structure, no .html in links,
sidebar.js hrefs, homepage redirect, and link target resolution.
@NathanTarbert NathanTarbert force-pushed the fix/clean-homepage-url branch from 1cf66eb to cad7275 Compare April 8, 2026 22:33
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 8, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@copilotkit/aimock@95

commit: e457424

@jpr5
Copy link
Copy Markdown
Contributor

jpr5 commented Apr 9, 2026

Superseded by the v1.9.0 release which restructured all docs into directories and stripped .html from all links.

@jpr5 jpr5 closed this Apr 9, 2026
@NathanTarbert NathanTarbert deleted the fix/clean-homepage-url branch April 9, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants