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
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
weight: 190
---
### Client Config

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

@ -1,6 +1,5 @@
---
type: module
weight: 70
---
### Content repository

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -1,6 +1,5 @@
---
type: module
weight: 320
---
### Server Notices

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

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

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

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

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

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

@ -1,6 +1,5 @@
---
type: module
weight: 20
---
### 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