Put each bit of spec in its own directory
I want to change the URLs for the spec sections on the website from <version>/<section>.html to <section>/<version>.html, to better reflect how we do the versioning. This puts each bit of spec in its own directory, updates the index to point to the right place, and fixes continuserv to deal with directories as well as files. This will probably require fixes to the speculator too, but I'll have to come back to that.
This commit is contained in:
parent
a8eed29e9f
commit
01f8173c84
4 changed files with 66 additions and 34 deletions
|
@ -541,25 +541,27 @@ class MatrixUnits(Units):
|
|||
return event_types
|
||||
|
||||
def load_apis(self, substitutions):
|
||||
cs_ver = substitutions.get("%CLIENT_RELEASE_LABEL%", "unstable")
|
||||
fed_ver = substitutions.get("%SERVER_RELEASE_LABEL%", "unstable")
|
||||
return {
|
||||
"rows": [{
|
||||
"key": "`Client-Server API <client_server.html>`_",
|
||||
"type": substitutions.get("%CLIENT_RELEASE_LABEL%", "unstable"),
|
||||
"key": "`Client-Server API <client_server/"+cs_ver+".html>`_",
|
||||
"type": cs_ver,
|
||||
"desc": "Interaction between clients and servers",
|
||||
}, {
|
||||
"key": "`Server-Server API <server_server.html>`_",
|
||||
"type": substitutions.get("%SERVER_RELEASE_LABEL%", "unstable"),
|
||||
"key": "`Server-Server API <server_server/"+fed_ver+".html>`_",
|
||||
"type": fed_ver,
|
||||
"desc": "Federation between servers",
|
||||
}, {
|
||||
"key": "`Application Service API <application_service.html>`_",
|
||||
"type": substitutions.get("%CLIENT_RELEASE_LABEL%", "unstable"),
|
||||
"key": "`Application Service API <application_service/unstable.html>`_",
|
||||
"type": "unstable",
|
||||
"desc": "Privileged server plugins",
|
||||
}, {
|
||||
"key": "`Identity Service API <identity_service.html>`_",
|
||||
"key": "`Identity Service API <identity_service/unstable.html>`_",
|
||||
"type": "unstable",
|
||||
"desc": "Mapping of third party IDs with Matrix ID",
|
||||
}, {
|
||||
"key": "`Push Gateway API <push_gateway.html>`_",
|
||||
"key": "`Push Gateway API <push_gateway/unstable.html>`_",
|
||||
"type": "unstable",
|
||||
"desc": "Push notifications for Matrix events",
|
||||
}]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue