File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { defineConfig } from 'vitepress';
33export default defineConfig ( {
44 title : 'AFDocs' ,
55 description : 'Test your documentation site against the Agent-Friendly Documentation Spec' ,
6+ cleanUrls : true ,
67
78 sitemap : {
89 hostname : 'https://afdocs.dev' ,
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ RewriteCond %{HTTP_ACCEPT} text/markdown
2222RewriteCond %{REQUEST_FILENAME}.md -f
2323RewriteRule ^(.*)$ /log-agent-signal.php?path=$1.md&trigger=content-negotiation [L,QSA]
2424
25+ # 1. Content negotiation — .html URL with .md equivalent
26+ RewriteCond %{HTTP_ACCEPT} text/markdown
27+ RewriteCond %{REQUEST_URI} ^(.*)\.html$
28+ RewriteCond %{DOCUMENT_ROOT}%1.md -f
29+ RewriteRule ^(.*)\.html$ /log-agent-signal.php?path=$1.md&trigger=content-negotiation [L,QSA]
30+
2531# 2. Direct .md file requests
2632RewriteCond %{REQUEST_URI} \.md$
2733RewriteCond %{REQUEST_FILENAME} -f
You can’t perform that action at this time.
0 commit comments