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

This commit is contained in:
Travis Ralston 2022-01-04 20:29:10 -07:00 committed by GitHub
parent 0ee58100c4
commit 00169abcdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 50 additions and 51 deletions

View file

@ -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" %}}

View file

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

View file

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

View file

@ -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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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 }}

View file

@ -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 }}