Skip to content

Commit

Permalink
Specify module order manually to work around hugo issues (#3612)
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jan 5, 2022
1 parent 0ee5810 commit 00169ab
Show file tree
Hide file tree
Showing 36 changed files with 50 additions and 51 deletions.
35 changes: 34 additions & 1 deletion content/client-server-api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 0 additions & 1 deletion content/client-server-api/modules/account_data.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 190
---

### Client Config
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/admin.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 200
---

### Server Administration
Expand Down
3 changes: 1 addition & 2 deletions content/client-server-api/modules/content_repo.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 70
---

### Content repository
Expand Down Expand Up @@ -68,7 +67,7 @@ methods:
- 640x480, scale
- 800x600, scale

In summary:
In summary:
- "scale" maintains the original aspect ratio of the image
- "crop" provides an image in the aspect ratio of the sizes given in
the request
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/device_management.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 90
---

### Device Management
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/dm.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 230
---

### Direct Messaging
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/end_to_end_encryption.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 100
---

### End-to-End Encryption
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/event_context.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 210
---

### Event Context
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/guest_access.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 160
---

### Guest Access
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/history_visibility.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 120
---

### Room History Visibility
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/ignore_users.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 240
---

### Ignoring Users
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/instant_messaging.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 10
---

### Instant Messaging
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/mentions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 300
---

### User, room, and group mentions
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/moderation_policies.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 330
---

### Moderation policy lists
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/openid.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 280
---

### OpenID
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/presence.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 60
---

### Presence
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/push.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 130
---

### Push Notifications
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/read_markers.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 50
---

### Fully read markers
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/receipts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 40
---

### Receipts
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/report_content.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 260
---

### Reporting Content
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/room_previews.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 170
---

### Room Previews
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/room_upgrades.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 310
---

### Room Upgrades
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/search.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 150
---

### Server Side Search
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/secrets.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 110
---

### Secrets
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/send_to_device.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 80
---

### Send-to-Device messaging
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/server_acls.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 290
---

### Server Access Control Lists (ACLs) for rooms
Expand Down
5 changes: 2 additions & 3 deletions content/client-server-api/modules/server_notices.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 320
---

### Server Notices
Expand All @@ -25,12 +24,12 @@ ignored by clients.

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
administrator to intervene. The `limit_type` describes the kind of limit
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
maximum. New connections are being refused by the server. What defines
"active" is left as an implementation detail, however servers are
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/sso_login.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 220
---

### SSO client login/authentication
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/stickers.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 250
---

### Sticker Messages
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/tags.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 180
---

### Room Tagging
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/third_party_invites.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 140
---

### Third party invites
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/third_party_networks.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 270
---

### Third Party Networks
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/typing_notifications.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 30
---

### Typing Notifications
Expand Down
1 change: 0 additions & 1 deletion content/client-server-api/modules/voip_events.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
type: module
weight: 20
---

### Voice over IP
Expand Down
13 changes: 13 additions & 0 deletions layouts/shortcodes/cs-module.html
Original file line number Diff line number Diff line change
@@ -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 }}
14 changes: 0 additions & 14 deletions layouts/shortcodes/cs-modules.html

This file was deleted.

0 comments on commit 00169ab

Please sign in to comment.