diff --git a/nginx/nginx.conf b/nginx/nginx.conf index ea3faa886..1a64e451c 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -17,6 +17,7 @@ http { location / { rewrite ^/(.*)/$ /$1 permanent; try_files $uri $uri.html $uri/index.html =404; + add_header 'Link' '; rel="api-catalog"' always; } location /assets/ { try_files $uri $uri/ =404; @@ -29,9 +30,14 @@ http { } location /index.html { add_header 'Cache-Control' 'no-store' always; + add_header 'Link' '; rel="api-catalog"' always; } location /404.html { add_header 'Cache-Control' 'no-store' always; } + # RFC 9727 — extension-less file, advertise correct content type + location = /.well-known/api-catalog { + types { } default_type application/linkset+json; + } } } diff --git a/static/.well-known/agent-skills/index.json b/static/.well-known/agent-skills/index.json new file mode 100644 index 000000000..2263c8f31 --- /dev/null +++ b/static/.well-known/agent-skills/index.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://schemas.agentskills.io/discovery/0.2.0/schema.json", + "skills": [] +} diff --git a/static/.well-known/api-catalog b/static/.well-known/api-catalog new file mode 100644 index 000000000..819910286 --- /dev/null +++ b/static/.well-known/api-catalog @@ -0,0 +1,46 @@ +{ + "linkset": [ + { + "anchor": "https://developers.stellar.org/docs/data/apis/rpc", + "service-desc": [ + { + "href": "https://developers.stellar.org/stellar-rpc.openrpc.json", + "type": "application/json" + } + ], + "service-doc": [ + { + "href": "https://developers.stellar.org/docs/data/apis/rpc/api-reference", + "type": "text/html" + } + ] + }, + { + "anchor": "https://developers.stellar.org/docs/data/apis/horizon", + "service-doc": [ + { + "href": "https://developers.stellar.org/docs/data/apis/horizon/api-reference", + "type": "text/html" + } + ] + }, + { + "anchor": "https://developers.stellar.org/docs/platforms/anchor-platform", + "service-doc": [ + { + "href": "https://developers.stellar.org/docs/platforms/anchor-platform/api-reference", + "type": "text/html" + } + ] + }, + { + "anchor": "https://developers.stellar.org/docs/platforms/stellar-disbursement-platform", + "service-doc": [ + { + "href": "https://developers.stellar.org/docs/platforms/stellar-disbursement-platform/api-reference", + "type": "text/html" + } + ] + } + ] +} diff --git a/static/robots.txt b/static/robots.txt index 4504538d3..b814f3070 100644 --- a/static/robots.txt +++ b/static/robots.txt @@ -2,4 +2,5 @@ User-agent: * Allow: / +Content-Signal: ai-train=yes, search=yes, ai-input=yes Sitemap: https://developers.stellar.org/sitemap.xml \ No newline at end of file