Specify module order manually to work around hugo issues (#3612)

pull/3621/head
Travis Ralston 2 years ago committed by GitHub
parent 0ee58100c4
commit 00169abcdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2177,4 +2177,37 @@ operations and run in a resource constrained environment. Like embedded
applications, they are not intended to be fully-fledged communication applications, they are not intended to be fully-fledged communication
systems. systems.
{{% cs-modules %}} {{% cs-module name="instant_messaging" %}}
{{% cs-module name="voip_events" %}}
{{% cs-module name="typing_notifications" %}}
{{% cs-module name="receipts" %}}
{{% cs-module name="read_markers" %}}
{{% cs-module name="presence" %}}
{{% cs-module name="content_repo" %}}
{{% cs-module name="send_to_device" %}}
{{% cs-module name="device_management" %}}
{{% cs-module name="end_to_end_encryption" %}}
{{% cs-module name="secrets" %}}
{{% cs-module name="history_visibility" %}}
{{% cs-module name="push" %}}
{{% cs-module name="third_party_invites" %}}
{{% cs-module name="search" %}}
{{% cs-module name="guest_access" %}}
{{% cs-module name="room_previews" %}}
{{% cs-module name="tags" %}}
{{% cs-module name="account_data" %}}
{{% cs-module name="admin" %}}
{{% cs-module name="event_context" %}}
{{% cs-module name="sso_login" %}}
{{% cs-module name="dm" %}}
{{% cs-module name="ignore_users" %}}
{{% cs-module name="stickers" %}}
{{% cs-module name="report_content" %}}
{{% cs-module name="third_party_networks" %}}
{{% cs-module name="openid" %}}
{{% cs-module name="server_acls" %}}
{{% cs-module name="mentions" %}}
{{% cs-module name="room_upgrades" %}}
{{% cs-module name="server_notices" %}}
{{% cs-module name="moderation_policies" %}}
{{% cs-module name="spaces" %}}

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 190
--- ---
### Client Config ### Client Config

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 200
--- ---
### Server Administration ### Server Administration

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 70
--- ---
### Content repository ### Content repository
@ -68,7 +67,7 @@ methods:
- 640x480, scale - 640x480, scale
- 800x600, scale - 800x600, scale
In summary: In summary:
- "scale" maintains the original aspect ratio of the image - "scale" maintains the original aspect ratio of the image
- "crop" provides an image in the aspect ratio of the sizes given in - "crop" provides an image in the aspect ratio of the sizes given in
the request the request

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 90
--- ---
### Device Management ### Device Management

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 230
--- ---
### Direct Messaging ### Direct Messaging

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 100
--- ---
### End-to-End Encryption ### End-to-End Encryption

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 210
--- ---
### Event Context ### Event Context

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 160
--- ---
### Guest Access ### Guest Access

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 120
--- ---
### Room History Visibility ### Room History Visibility

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 240
--- ---
### Ignoring Users ### Ignoring Users

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 10
--- ---
### Instant Messaging ### Instant Messaging

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 300
--- ---
### User, room, and group mentions ### User, room, and group mentions

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 330
--- ---
### Moderation policy lists ### Moderation policy lists

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 280
--- ---
### OpenID ### OpenID

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 60
--- ---
### Presence ### Presence

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 130
--- ---
### Push Notifications ### Push Notifications

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 50
--- ---
### Fully read markers ### Fully read markers

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 40
--- ---
### Receipts ### Receipts

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 260
--- ---
### Reporting Content ### Reporting Content

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 170
--- ---
### Room Previews ### Room Previews

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 310
--- ---
### Room Upgrades ### Room Upgrades

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 150
--- ---
### Server Side Search ### Server Side Search

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 110
--- ---
### Secrets ### Secrets

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 80
--- ---
### Send-to-Device messaging ### Send-to-Device messaging

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 290
--- ---
### Server Access Control Lists (ACLs) for rooms ### Server Access Control Lists (ACLs) for rooms

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 320
--- ---
### Server Notices ### Server Notices
@ -25,12 +24,12 @@ ignored by clients.
The specified values for `server_notice_type` are: The specified values for `server_notice_type` are:
`m.server_notice.usage_limit_reached` `m.server_notice.usage_limit_reached`
The server has exceeded some limit which requires the server The server has exceeded some limit which requires the server
administrator to intervene. The `limit_type` describes the kind of limit administrator to intervene. The `limit_type` describes the kind of limit
reached. The specified values for `limit_type` are: reached. The specified values for `limit_type` are:
`monthly_active_user` `monthly_active_user`
The server's number of active users in the last 30 days has exceeded the The server's number of active users in the last 30 days has exceeded the
maximum. New connections are being refused by the server. What defines maximum. New connections are being refused by the server. What defines
"active" is left as an implementation detail, however servers are "active" is left as an implementation detail, however servers are

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 220
--- ---
### SSO client login/authentication ### SSO client login/authentication

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 250
--- ---
### Sticker Messages ### Sticker Messages

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 180
--- ---
### Room Tagging ### Room Tagging

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 140
--- ---
### Third party invites ### Third party invites

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 270
--- ---
### Third Party Networks ### Third Party Networks

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 30
--- ---
### Typing Notifications ### Typing Notifications

@ -1,6 +1,5 @@
--- ---
type: module type: module
weight: 20
--- ---
### Voice over IP ### Voice over IP

@ -0,0 +1,13 @@
{{/*
This template is used to render a Client-Server API Module. Modules are defined
alongside the `_index.md` for the CS API.
The `name` parameter is the file name without extension.
*/}}
{{ $name := .Params.name }}
{{ $page := .Site.GetPage (path.Join .Page.Dir "modules" (printf "%s%s" $name ".md"))}}
{{ $page.Content }}

@ -1,14 +0,0 @@
{{/*
This template is used to embed module documentation in the client-server API spec.
It searches the site for pages of type "module", sorts them by weight, and
emits the page's rendered content.
*/}}
{{ $modules := where site.Pages "Type" "module" }}
{{ range $modules.ByWeight }}
{{ .Content }}
{{ end }}
Loading…
Cancel
Save