Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an API vs command overview in table form to docs #149

Merged
merged 72 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
44593b6
Set docs TOC to show subcommands and remove useless Contents heading
JOJ0 Jul 26, 2024
5983bcb
Remove useless Contents heading in package docs
JOJ0 Jul 26, 2024
4ac4947
Add to docs an API/Command overview as a table
JOJ0 Jul 27, 2024
a8b9f47
Fix typo in features.csv
JOJ0 Aug 3, 2024
4e50a99
No bulletpoints in features.csv - ugly
JOJ0 Aug 3, 2024
f55c9b4
Fix media api link worded as in Synapse docs
JOJ0 Aug 3, 2024
15e89df
In features.csv play around with linking
JOJ0 Aug 3, 2024
161bbbe
In features.csv link to EVERY single Admin API
JOJ0 Aug 3, 2024
7deb008
features.csv fix Delete Group API docs link
JOJ0 Aug 5, 2024
f85224a
Add a scraper gathering Admin API docs links
JOJ0 Aug 5, 2024
c549c2c
Build a minimalistic Click cli around scraper
JOJ0 Aug 6, 2024
9ad9bee
Add rst output format to scraper
JOJ0 Aug 6, 2024
926b3a6
Finally add csv output to scraper
JOJ0 Aug 6, 2024
c7cabf6
Again decide that bulletpoints in a table are ugly
JOJ0 Aug 6, 2024
cf4d09d
Add remaining room api links to features.csv
JOJ0 Aug 6, 2024
f718e86
Proper space escaping in scraper csv output
JOJ0 Aug 6, 2024
608f1a5
Add description to features.rst and reword heading
JOJ0 Aug 6, 2024
ef11c1b
Remove unnecessary api docs link in features.csv
JOJ0 Aug 6, 2024
a150833
Use doublequotes throughout csv for readability
JOJ0 Aug 6, 2024
a3ec164
Remove all linebreaks (right column) in features.csv
JOJ0 Aug 6, 2024
818f716
Finally add all remaining Admin API links
JOJ0 Aug 6, 2024
e34f13b
Work around indentation level problem from last commit
JOJ0 Aug 6, 2024
fddd823
Shorten two long api docs links to fix layout,
JOJ0 Aug 6, 2024
812807c
Fix link list-media-upload-by-a-user
JOJ0 Aug 6, 2024
409bdc0
Rename CLI reference chapter titles
JOJ0 Aug 6, 2024
5aef7ba
Fix broken user_admin_api links
JOJ0 Aug 6, 2024
54e86c0
Also add user media alias below User media section
JOJ0 Aug 6, 2024
6135307
Add missing experimental features api links
JOJ0 Aug 6, 2024
1cce4a4
Add missing group delete command
JOJ0 Aug 6, 2024
b3bef7a
Add missing background updates api links
JOJ0 Aug 6, 2024
09f0c16
Add remaining synadm commands to features.csv
JOJ0 Aug 6, 2024
07b9961
And finally describe matrix and raw commands
JOJ0 Aug 6, 2024
dc0f8d2
Fix scrape_docs.py linter warnings
JOJ0 Aug 6, 2024
7fc22f6
features.csv fix del group api version
JOJ0 Aug 28, 2024
07f7ac7
Add docs scraper dependency to requirements.txt
JOJ0 Sep 3, 2024
0b290ba
Fix broken media api links (due to bug in scraper)
JOJ0 Sep 3, 2024
c1e6b3b
Fix bug in docs scraper
JOJ0 Sep 3, 2024
ff8e381
Move scraper requirement to its own file
JOJ0 Sep 10, 2024
fae0165
scrape_docs refactor heading tag lists definitions
JOJ0 Sep 10, 2024
4783171
scrape_docs spacing magic for rst format only
JOJ0 Sep 10, 2024
c5b9a1b
scrape_docs spacing magic also for csv format
JOJ0 Sep 10, 2024
4a8d6b1
scrape_docs simplify default out condition
JOJ0 Sep 10, 2024
8000859
scrape_docs fix some comments
JOJ0 Sep 10, 2024
9c762f4
scrape_docs output formats naming and improvements
JOJ0 Sep 10, 2024
e58b6aa
scrap_docs improve online help wording
JOJ0 Sep 10, 2024
14bb4d0
scrape_docs add headline output to csv format
JOJ0 Sep 10, 2024
e43605c
scrape_docs add column headlines
JOJ0 Sep 10, 2024
5116375
features.csv split into multiple files part 1
JOJ0 Sep 10, 2024
0e9eaa7
features.csv split into multiple files part 2
JOJ0 Sep 10, 2024
5dc2183
Fixes in soon unused features.csv
JOJ0 Sep 11, 2024
b92efa9
Separate table/csv-file for each Synapse Admin docs chapter
JOJ0 Sep 11, 2024
cbdca54
Reword features.rst intro text
JOJ0 Sep 11, 2024
719ee5e
Try keepspace option in features.rst for media csv
JOJ0 Sep 11, 2024
53076e7
Finally find a way to escape whitespace in rst
JOJ0 Sep 12, 2024
4099d2c
scrape_docs requirement in setup.py, not txt file
JOJ0 Sep 21, 2024
15d92a7
Rename rst whitespace replacer and finish tables
JOJ0 Sep 24, 2024
97d2934
Add misc section features.rst and csv table
JOJ0 Sep 24, 2024
6754999
Fix user media command position in features_users.csv
JOJ0 Sep 24, 2024
b5570bc
fix extras_require
JacksonChen666 Sep 24, 2024
3bb915f
correct prerequisites command in scrape_docs.py
JacksonChen666 Sep 24, 2024
02ef169
scrape_docs escape square brackets in install command
JOJ0 Sep 28, 2024
b1712b7
scrape_docs add usage info to header comment
JOJ0 Sep 28, 2024
1b5e2c6
CONTRIBUTING.md feature coverage documentation
JOJ0 Sep 28, 2024
14ca367
delete features.csv
JacksonChen666 Sep 24, 2024
59a3398
move *.csv to a dir and github link to it
JacksonChen666 Sep 24, 2024
d1a3eac
Apply review suggestions with corrected title
JOJ0 Sep 30, 2024
bbfc3bb
scrape_docs replace indentation spaces with rst replacer
JOJ0 Oct 1, 2024
49c990d
features.rst note on docs
JOJ0 Oct 2, 2024
d57bab8
features.rst shorten last intro text sentence
JOJ0 Oct 3, 2024
c43d47c
contributing docs details on linking to cli reference
JOJ0 Oct 3, 2024
9d96193
scrape_docs csv out no headline output
JOJ0 Oct 3, 2024
7cfbadf
scrape_docs explain indentation space replacement
JOJ0 Oct 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
'collapse_navigation': True,
'navigation_depth': 8,
'sticky_navigation': False,
'prev_next_buttons_location': 'both'
'prev_next_buttons_location': 'bottom'
}


Expand Down
182 changes: 182 additions & 0 deletions doc/source/features.csv
JOJ0 marked this conversation as resolved.
Show resolved Hide resolved
JacksonChen666 marked this conversation as resolved.
Show resolved Hide resolved

Large diffs are not rendered by default.

152 changes: 152 additions & 0 deletions doc/source/features.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
Synapse Admin API Coverage
JOJ0 marked this conversation as resolved.
Show resolved Hide resolved
==========================

The tables below show which Synapse Admin APIs are used by their corresponding ``synadm`` commands.
The left column's entries link to the official Synapse Admin API documentation, the right column's entries point to the ``synadm`` CLI reference.
To add missing entries to a table edit one of the CSV files in our `documentation source directory`_ and submit a `pull request`_.

Account Validity
----------------

.. csv-table::
:file: features_account_validity.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Background Updates
------------------

.. csv-table::
:file: features_background_updates.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Delete Group
------------

.. csv-table::
:file: features_delete_group.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Event Reports
-------------

.. csv-table::
:file: features_event_reports.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Experimental Features
---------------------

.. csv-table::
:file: features_experimental_features.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Media
-----

.. csv-table::
:file: features_media.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1
:keepspace:

Purge History
-------------

.. csv-table::
:file: features_purge_history.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Register Users
--------------

.. csv-table::
:file: features_register_users.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Registration Tokens
-------------------

.. csv-table::
:file: features_registration_tokens.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Manipulate Room Membership
--------------------------

.. csv-table::
:file: features_manipulate_room_membership.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Rooms
-----

.. csv-table::
:file: features_rooms.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Server Notices
--------------

.. csv-table::
:file: features_server_notices.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Statistics
----------

.. csv-table::
:file: features_statistics.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Users
-----

.. csv-table::
:file: features_users.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Server Version
--------------

.. csv-table::
:file: features_server_version.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Federation
----------

.. csv-table::
:file: features_federation.csv
:header: "Synapse Admin API","synadm command(s)"
:widths: 1 1

Miscellaneous
-------------

.. csv-table::
:file: features_miscellaneous.csv
:header: "Description","synadm command(s)"
:widths: 1 1


.. _documentation source directory:
https://github.com/JOJ0/synadm/tree/master/doc/source/features.csv
JacksonChen666 marked this conversation as resolved.
Show resolved Hide resolved
.. _feature request issue:
https://github.com/JOJ0/synadm/issues/new
.. _pull request:
https://github.com/JOJ0/synadm/blob/dev/CONTRIBUTING.md#submitting-your-work
.. |indent| unicode:: U+00A0 U+00A0 .. non-breaking two-space indentation
1 change: 1 addition & 0 deletions doc/source/features_account_validity.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"`Renew account <https://element-hq.github.io/synapse/latest/admin_api/account_validity.html#renew-account>`_",
3 changes: 3 additions & 0 deletions doc/source/features_background_updates.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"`Status <https://element-hq.github.io/synapse/latest/usage/administration/admin_api/background_updates.html#status>`_",
"`Enabled <https://element-hq.github.io/synapse/latest/usage/administration/admin_api/background_updates.html#enabled>`_",
"`Run <https://element-hq.github.io/synapse/latest/usage/administration/admin_api/background_updates.html#run>`_",
1 change: 1 addition & 0 deletions doc/source/features_delete_group.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"`Delete a local group <https://element-hq.github.io/synapse/v1.61/admin_api/delete_group.html#delete-a-local-group>`_",:option:`synadm group delete GROUP_ID`
3 changes: 3 additions & 0 deletions doc/source/features_event_reports.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"`Show reported events <https://element-hq.github.io/synapse/latest/admin_api/event_reports.html#show-reported-events>`_",
"`Show details of a specific event report <https://element-hq.github.io/synapse/latest/admin_api/event_reports.html#show-details-of-a-specific-event-report>`_",
"`Delete a specific event report <https://element-hq.github.io/synapse/latest/admin_api/event_reports.html#delete-a-specific-event-report>`_",
2 changes: 2 additions & 0 deletions doc/source/features_experimental_features.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"`Enabling/Disabling Features <https://element-hq.github.io/synapse/latest/admin_api/experimental_features.html#enablingdisabling-features>`_",
"`Listing Enabled Features <https://element-hq.github.io/synapse/latest/admin_api/experimental_features.html#listing-enabled-features>`_",
4 changes: 4 additions & 0 deletions doc/source/features_federation.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"`List of destinations <https://element-hq.github.io/synapse/latest/usage/administration/admin_api/federation.html#list-of-destinations>`_",
"`Destination Details API <https://element-hq.github.io/synapse/latest/usage/administration/admin_api/federation.html#destination-details-api>`_",
"`Destination rooms <https://element-hq.github.io/synapse/latest/usage/administration/admin_api/federation.html#destination-rooms>`_",
"`Reset connection timeout <https://element-hq.github.io/synapse/latest/usage/administration/admin_api/federation.html#reset-connection-timeout>`_",
1 change: 1 addition & 0 deletions doc/source/features_manipulate_room_membership.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"`Edit Room Membership API <https://element-hq.github.io/synapse/latest/admin_api/room_membership.html#edit-room-membership-api>`_",:option:`synadm room join ROOM_ID_OR_ALIAS`
15 changes: 15 additions & 0 deletions doc/source/features_media.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"`Querying media <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#querying-media>`_","---"
"|indent| `List all media in a room <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#list-all-media-in-a-room>`_",:option:`synadm media list -r`
"|indent| `List all media uploaded by a user <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#delete-media-uploaded-by-a-user>`_",:option:`synadm media list -u` :option:`synadm user media -f`
"`Quarantine media <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#quarantine-media>`_","---"
"|indent| `Quarantining media by ID <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#quarantining-media-by-id>`_",:option:`synadm media quarantine -i`
"|indent| `Remove media from quarantine by ID <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#remove-media-from-quarantine-by-id>`_",:option:`synadm media unquarantine -i`
"|indent| `Quarantining media in a room <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#quarantining-media-in-a-room>`_",:option:`synadm media quarantine -r`
"|indent| `Quarantining all media of a user <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#quarantining-all-media-of-a-user>`_",:option:`synadm media quarantine -u`
"|indent| `Protecting media from being quarantined <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#protecting-media-from-being-quarantined>`_",:option:`synadm media protect MEDIA_ID`
"|indent| `Unprotecting media from being quarantined <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#unprotecting-media-from-being-quarantined>`_",
"`Delete local media <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#delete-local-media>`_","---"
"|indent| `Delete a specific local media <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#delete-a-specific-local-media>`_",:option:`synadm media delete -i`
"|indent| `Delete local media by date or size <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#delete-local-media-by-date-or-size>`_",:option:`synadm media delete -d` :option:`synadm media delete --size`
"|indent| `Delete media uploaded by a user <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#delete-media-uploaded-by-a-user>`_",
"`Purge Remote Media API <https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#purge-remote-media-api>`_",:option:`synadm media purge -d`
5 changes: 5 additions & 0 deletions doc/source/features_miscellaneous.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"The Configurator",:option:`synadm config -u`
"Any Synapse Admin API",:option:`synadm raw ENDPOINT`
"Native Matrix API Helpers","---"
"|indent| Matrix User Login",:option:`synadm matrix login USER_ID`
"|indent| Any Matrix API",:option:`synadm matrix raw ENDPOINT`
2 changes: 2 additions & 0 deletions doc/source/features_purge_history.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"`Purge history <https://element-hq.github.io/synapse/latest/admin_api/purge_history_api.html>`_",:option:`synadm history purge -i`
"`Purge status query <https://element-hq.github.io/synapse/latest/admin_api/purge_history_api.html#purge-status-query>`_",:option:`synadm history purge-status PURGE_ID`
1 change: 1 addition & 0 deletions doc/source/features_register_users.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"`Shared-Secret Registration <https://element-hq.github.io/synapse/latest/admin_api/register_api.html#shared-secret-registration>`_",
6 changes: 6 additions & 0 deletions doc/source/features_registration_tokens.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"`Registration token objects <https://element-hq.github.io/synapse/latest/usage/administration/admin_api/registration_tokens.html#registration-token-objects>`_","---"
"`List all tokens <https://element-hq.github.io/synapse/latest/usage/administration/admin_api/registration_tokens.html#list-all-tokens>`_",:option:`synadm regtok list -v`
"`Get one token <https://element-hq.github.io/synapse/latest/usage/administration/admin_api/registration_tokens.html#get-one-token>`_",:option:`synadm regtok details TOKEN`
"`Create token <https://element-hq.github.io/synapse/latest/usage/administration/admin_api/registration_tokens.html#create-token>`_",:option:`synadm regtok new -n`
"`Update token <https://element-hq.github.io/synapse/latest/usage/administration/admin_api/registration_tokens.html#update-token>`_",:option:`synadm regtok update TOKEN`
"`Delete token <https://element-hq.github.io/synapse/latest/usage/administration/admin_api/registration_tokens.html#delete-token>`_",:option:`synadm regtok delete TOKEN`
21 changes: 21 additions & 0 deletions doc/source/features_rooms.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"`List Room API <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#list-room-api>`_",:option:`synadm room list -f`
"`Room Details API <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#room-details-api>`_",:option:`synadm room details ROOM_ID`
"`Room Members API <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#room-members-api>`_",:option:`synadm room members ROOM_ID`
"`Room State API <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#room-state-api>`_",:option:`synadm room state ROOM_ID`
"`Room Messages API <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#room-messages-api>`_",
"`Room Timestamp to Event API <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#room-timestamp-to-event-api>`_",
"`Block Room API <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#block-room-api>`_","---"
"|indent| `Block or unblock a room <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#block-or-unblock-a-room>`_",:option:`synadm room block -b` :option:`synadm room block -u`
"|indent| `Get block status <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#get-block-status>`_",:option:`synadm room block-status ROOM_ID`
"`Delete Room API <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#delete-room-api>`_","---"
"|indent| `Version 1 (old version) <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#version-1-old-version>`_",:option:`synadm room delete --v1`
"|indent| `Version 2 (new version) <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#version-2-new-version>`_",:option:`synadm room delete ROOM_ID`
"|indent| `Status of deleting rooms <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#status-of-deleting-rooms>`_","---"
"|indent| |indent| `Query by room_id <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#query-by-room_id>`_",:option:`synadm room delete-status -r`
"|indent| |indent| `Query by delete_id <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#query-by-delete_id>`_",:option:`synadm room delete-status -d`
"|indent| `Undoing room deletions <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#undoing-room-deletions>`_",
"`Make Room Admin API <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#make-room-admin-api>`_",:option:`synadm room make-admin -u`
"`Forward Extremities Admin API <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#forward-extremities-admin-api>`_",
"|indent| `Check for forward extremities <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#check-for-forward-extremities>`_",
"|indent| `Deleting forward extremities <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#deleting-forward-extremities>`_",
"`Event Context API <https://element-hq.github.io/synapse/latest/admin_api/rooms.html#event-context-api>`_",
1 change: 1 addition & 0 deletions doc/source/features_server_notices.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"`Server Notices <https://element-hq.github.io/synapse/latest/admin_api/server_notices.html>`_",:option:`synadm notice send TO`
1 change: 1 addition & 0 deletions doc/source/features_server_version.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"`Version API <https://element-hq.github.io/synapse/latest/admin_api/version_api.html>`_",:option:`synadm version`
2 changes: 2 additions & 0 deletions doc/source/features_statistics.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"`Users' media usage statistics <https://element-hq.github.io/synapse/latest/admin_api/statistics.html#users-media-usage-statistics>`_",
"`Get largest rooms by size in database <https://element-hq.github.io/synapse/latest/admin_api/statistics.html#get-largest-rooms-by-size-in-database>`_",
33 changes: 33 additions & 0 deletions doc/source/features_users.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"`Query User Account <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#query-user-account>`_",:option:`synadm user details USER_ID`
"`Create or modify account <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#create-or-modify-account>`_",:option:`synadm user modify USER_ID`
"`List Accounts <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#list-accounts>`_","---"
"|indent| `List Accounts (V2) <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#list-accounts-v2>`_",:option:`synadm user list -f`
"|indent| `List Accounts (V3) <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#list-accounts-v3>`_",
"`Query current sessions for a user <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#query-current-sessions-for-a-user>`_",:option:`synadm user whois USER_ID`
"`Deactivate Account <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#deactivate-account>`_",:option:`synadm user deactivate USER_ID`
"`Reset password <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#reset-password>`_",:option:`synadm user password USER_ID`
"`Get whether a user is a server administrator or not <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#get-whether-a-user-is-a-server-administrator-or-not>`_",
"`Change whether a user is a server administrator or not <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#change-whether-a-user-is-a-server-administrator-or-not>`_",
"`List room memberships of a user <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#list-room-memberships-of-a-user>`_",:option:`synadm user membership USER_ID`
"`Account Data <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#account-data>`_",
"`User media <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#user-media>`_","---"
"|indent| `List media uploaded by a user <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#list-media-uploaded-by-a-user>`_",:option:`synadm user media -f` :option:`synadm media list -u`
"|indent| `Delete media uploaded by a user <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#delete-media-uploaded-by-a-user>`_",
"`Login as a user <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#login-as-a-user>`_",:option:`synadm user login USER_ID`
"`Allow replacing master cross-signing key without... <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#allow-replacing-master-cross-signing-key-without-user-interactive-auth>`_",
"`User devices <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#user-devices>`_","---"
"|indent| `List all devices <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#list-all-devices>`_",:option:`synadm user prune-devices --list-only`
"|indent| `Create a device <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#create-a-device>`_",
"|indent| `Delete multiple devices <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#delete-multiple-devices>`_",:option:`synadm user prune-devices -d` :option:`synadm user prune-devices -s`
"|indent| `Show a device <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#show-a-device>`_",:option:`synadm user prune-devices --list-only` (-i)
"|indent| `Update a device <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#update-a-device>`_",
"|indent| `Delete a device <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#delete-a-device>`_",:option:`synadm user prune-devices -i`
"`List all pushers <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#list-all-pushers>`_",
"`Controlling whether a user is shadow-banned <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#controlling-whether-a-user-is-shadow-banned>`_",:option:`synadm user shadow-ban USER_ID` :option:`synadm user shadow-ban --unban`
"`Override ratelimiting for users <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#override-ratelimiting-for-users>`_","---"
"|indent| `Get status of ratelimit <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#get-status-of-ratelimit>`_",
"|indent| `Set ratelimit <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#set-ratelimit>`_",
"|indent| `Delete ratelimit <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#delete-ratelimit>`_",
"`Check username availability <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#check-username-availability>`_",
"`Find a user based on their ID in an auth provider <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#find-a-user-based-on-their-id-in-an-auth-provider>`_",:option:`synadm user 3pid ADDRESS`
"`Find a user based on their Third Party ID <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#find-a-user-based-on-their-third-party-id-threepid-or-3pid>`_",:option:`synadm user auth-provider EXTERNAL_USER_ID`
2 changes: 1 addition & 1 deletion doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Welcome to synadm's documentation!

.. toctree::
:maxdepth: 2
:caption: Contents:

index_cli_reference
features
examples
index_modules

Expand Down
3 changes: 1 addition & 2 deletions doc/source/index_cli_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ Command Line Reference
======================

.. toctree::
:maxdepth: 1
:caption: Contents:
:maxdepth: 3

synadm.cli.root
synadm.cli.config
Expand Down
4 changes: 2 additions & 2 deletions doc/source/synadm.cli.config.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Config
======
Config Command
==============

.. click:: synadm.cli:config_cmd
:prog: synadm config
Expand Down
6 changes: 3 additions & 3 deletions doc/source/synadm.cli.group.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Group
=====
Group Commands
==============

.. click:: synadm.cli.group:group
:prog: synadm group
:nested: full
:nested: full
6 changes: 3 additions & 3 deletions doc/source/synadm.cli.history.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
History
=======
History Commands
================

.. click:: synadm.cli.history:history
:prog: synadm history
:nested: full
:nested: full
4 changes: 2 additions & 2 deletions doc/source/synadm.cli.matrix.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Matrix
======
Matrix Commands
===============

.. click:: synadm.cli.matrix:matrix
:prog: synadm matrix
Expand Down
Loading
Loading