Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Compile and render Synapse's docs into a browsable, mobile-friendly and searchable website #10086

Merged
merged 26 commits into from
Jun 3, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e453c3b
Setup; add book.toml
anoadragon453 May 10, 2021
f8f770a
Add book/ directory to .gitignore
anoadragon453 May 14, 2021
035d696
Add a favicon
anoadragon453 May 26, 2021
706f64a
Add github actions workflow to deploy docs to gh-pages
anoadragon453 May 11, 2021
99e7ffe
Organise existing documentation into a tree structure.
anoadragon453 May 26, 2021
069712e
Add some section pages
anoadragon453 May 26, 2021
db46987
Add a table of contents plugin
anoadragon453 May 26, 2021
3f9f35d
Remove chapter navigation buttons on desktop
anoadragon453 May 26, 2021
3712044
Update docs/README.md with information on the site and how to build it
anoadragon453 May 26, 2021
fe65330
Update oft-linked to admin_api directory with info about the new site
anoadragon453 May 26, 2021
b4bf418
Refine the sidebar: switch to headers without labels
anoadragon453 May 26, 2021
c6e5eaf
Changelog
anoadragon453 May 27, 2021
8d774a4
Apply suggestions from code review
anoadragon453 May 28, 2021
e9ba348
Apply suggestions from code review
anoadragon453 May 28, 2021
14cb114
Remove comments in workflow, latest -> develop
anoadragon453 May 28, 2021
b6adbd7
Split out homeserver and logging sample config files
anoadragon453 May 28, 2021
2568e5b
Move structured logging up next to the logging configuration chapter
anoadragon453 Jun 1, 2021
9157b8e
Don't link to register_new_matrix_user
anoadragon453 Jun 1, 2021
92c514f
Update docs/usage/configuration/README.md
anoadragon453 Jun 1, 2021
7cb4fd9
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/mdbook
anoadragon453 Jun 3, 2021
170fed8
Switch admin_api SUMMARY entries to their markdown versions; fix link…
anoadragon453 Jun 3, 2021
2b39299
Feature Documentation -> Internal Documentation
anoadragon453 Jun 3, 2021
071a6ef
Add Media Storage Providers draft chapter
anoadragon453 Jun 3, 2021
90520ae
Update mdbooks to 0.4.9; re-enable edit button
anoadragon453 Jun 3, 2021
f896a1b
Drop 'Writing a Module' chapter draft until new module API exists
anoadragon453 Jun 3, 2021
6991e88
Fix links to documentation
anoadragon453 Jun 3, 2021
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
14 changes: 7 additions & 7 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Summary

- [Introduction](welcome_and_overview.md)
- [Setup]()
- [Setup](setup/README.md)
- [Installation](setup/installation.md)
- [Using Postgres](postgres.md)
- [Configuring a Reverse Proxy](reverse_proxy.md)
- [Configuring a Turn Server](turn-howto.md)
- [Delegation](delegate.md)
- [Upgrading](upgrading/README.md)
- [Upgrading from pre-Synapse 1.0](MSC1711_certificates_FAQ.md)
- [Usage]()
- [Usage](usage/README.md)
- [Federation](federate.md)
- [Configuration]()
- [Configuration](usage/configuration/README.md)
- [Sample Configuration Files](usage/configuration/sample_config.md)
- [User Authentication]()
- [User Authentication](usage/configuration/user_authentication/README.md)
- [Single-Sign On]()
- [OpenID Connect](openid.md)
- [SAML]()
Expand Down Expand Up @@ -56,7 +56,7 @@
- [Monitoring](metrics-howto.md)
- [Structured Logging](structured_logging.md)
anoadragon453 marked this conversation as resolved.
Show resolved Hide resolved
- [Scripts]()
- [Development]()
- [Development](development/README.md)
- [Contributing Guide](development/contributing_guide.md)
- [Code Style](code_style.md)
- [Git Usage](dev/git.md)
Expand All @@ -66,7 +66,7 @@
- [Log Contexts](log_contexts.md)
- [Replication](replication.md)
- [TCP Replication](tcp_replication.md)
- [Feature Documentation]()
- [Feature Documentation](development/feature_documentation/README.md)
- [Single Sign-On]()
- [SAML](dev/saml.md)
- [CAS](dev/cas.md)
Expand All @@ -75,5 +75,5 @@
- [Media Repository](media_repository.md)
- [Room and User Statistics](room_and_user_statistics.md)
- [Scripts]()
- [Other]()
- [Other](other/README.md)
- [Dependency Deprecation Policy](deprecation_policy.md)
7 changes: 7 additions & 0 deletions docs/development/contributing_guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!--
Include the contents of CONTRIBUTING.md from the project root (where Github likes it
anoadragon453 marked this conversation as resolved.
Show resolved Hide resolved
to be)
-->
# Contributing

{{#include ../../CONTRIBUTING.md}}
12 changes: 12 additions & 0 deletions docs/development/feature_documentation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Feature Documentation
anoadragon453 marked this conversation as resolved.
Show resolved Hide resolved

This section covers implementation documentation for various features of Synapse.

If a developer is planning to make a change to a feature of Synapse, it can be useful for
general documentation of how that feature is implemented to be available. This saves the
developer time in place of needing to understand how the feature works by reading the
code.

Documentation that would be more useful for the perspective of a sysadmin, rather than
a developer who's intended to change to code, should instead be placed in
[Usage](../../usage/).
7 changes: 7 additions & 0 deletions docs/setup/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!--
Include the contents of INSTALL.md from the project root without moving it, which may
break links around the internet. Additionally, note that SUMMARY.md is unable to
directly link to content outside of the docs/ directory. So we use this file as a
redirection.
-->
{{#include ../../INSTALL.md}}
7 changes: 7 additions & 0 deletions docs/upgrading/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!--
Include the contents of UPGRADE.rst from the project root without moving it, which may
break links around the internet. Additionally, note that SUMMARY.md is unable to
directly link to content outside of the docs/ directory. So we use this file as a
redirection.
-->
{{#include ../../UPGRADE.rst}}
7 changes: 7 additions & 0 deletions docs/usage/administration/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Administration

This section contains information on managing your Synapse homeserver. This includes:

* Managing users, rooms and media via the Admin API.
* Setting up metrics and monitoring to give you insight into your homeserver's health.
* Configuring structured logging.
4 changes: 4 additions & 0 deletions docs/usage/configuration/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Configuration

This section contains information on tweaking Synapse via the various options in the configuration file. A configuration
file should have been generated when you [installed Synapse](../setup/installation.html).
anoadragon453 marked this conversation as resolved.
Show resolved Hide resolved
28 changes: 28 additions & 0 deletions docs/usage/configuration/sample_config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Sample Configuration Files

## Homeserver Config

Below is a sample homeserver configuration file. The homeserver configuration file
can be tweaked to change the behaviour of your homeserver. A restart of the server is
generally required to apply any changes made to this file.

Note that the contents below are *not* intended to be copied and used as the basis for
a real homeserver.yaml. Instead, if you are starting from scratch, please generate
a fresh config using Synapse by following the instructions in
[Installation](../../setup/installation.md).

A sample logging config file is provided in [the next section](#logging-config).


```yaml
{{#include ../../sample_config.yaml}}
```

## Logging Config

Below is a sample logging configuration file. This file controls how your homeserver
will output logs.

```yaml
{{#include ../../sample_log_config.yaml}}
```
anoadragon453 marked this conversation as resolved.
Show resolved Hide resolved
15 changes: 15 additions & 0 deletions docs/usage/configuration/user_authentication/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# User Authentication

Synapse supports multiple methods of authenticating users, either out-of-the-box or through custom pluggable
authentication modules.

Included in Synapse is support for authenticating users via:

* A username and password.
* An email address and password.
* Single Sign-On through the SAML, Open ID Connect or CAS protocols.
* JSON Web Tokens.
* An administrator's shared secret.

Synapse can additionally be extended to support custom authentication schemes through optional "password auth provider"
modules.