mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Add continuserv index
Oops, forgot this when adding support for the API docs to continuserv in
bfb65d8.
This commit is contained in:
parent
d41438605d
commit
2ec43a5948
15
scripts/continuserv/index.html
Normal file
15
scripts/continuserv/index.html
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<head>
|
||||||
|
<script>
|
||||||
|
window.onload = function() {
|
||||||
|
var url = new URL(window.location);
|
||||||
|
url.pathname += "api-docs.json";
|
||||||
|
var newLoc = "http://matrix.org/docs/api/client-server/?url=" + encodeURIComponent(url);
|
||||||
|
document.getElementById("apidocs").href = newLoc;
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body><ul>
|
||||||
|
<li><a id="apidocs">api docs</a></li>
|
||||||
|
<li><a href="index.html">spec</a></li>
|
||||||
|
</ul>
|
||||||
|
</body>
|
||||||
Loading…
Reference in a new issue