diff --git a/v1.92/.nojekyll b/v1.92/.nojekyll deleted file mode 100644 index f17311098f..0000000000 --- a/v1.92/.nojekyll +++ /dev/null @@ -1 +0,0 @@ -This file makes sure that Github Pages doesn't process mdBook's output. diff --git a/v1.92/.sample_config_header.yaml b/v1.92/.sample_config_header.yaml deleted file mode 100644 index 2355337e6d..0000000000 --- a/v1.92/.sample_config_header.yaml +++ /dev/null @@ -1,12 +0,0 @@ -# This file is maintained as an up-to-date snapshot of the default -# homeserver.yaml configuration generated by Synapse. You can find a -# complete accounting of possible configuration options at -# https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html -# -# It is *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 -# https://matrix-org.github.io/synapse/latest/setup/installation.html. -# -################################################################################ - diff --git a/v1.92/404.html b/v1.92/404.html index 399c3a5829..47f095f585 100644 --- a/v1.92/404.html +++ b/v1.92/404.html @@ -29,6 +29,7 @@ + @@ -104,6 +105,18 @@ +
+ +

Synapse

@@ -173,5 +186,7 @@ + + - \ No newline at end of file + diff --git a/v1.92/CAPTCHA_SETUP.html b/v1.92/CAPTCHA_SETUP.html index a0050f43fb..7a64dca7d9 100644 --- a/v1.92/CAPTCHA_SETUP.html +++ b/v1.92/CAPTCHA_SETUP.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -220,5 +233,7 @@ listeners section of the homeserver.yaml configuration file.

+ + - \ No newline at end of file + diff --git a/v1.92/admin_api/account_validity.html b/v1.92/admin_api/account_validity.html index f6552ca2df..3fc150366c 100644 --- a/v1.92/admin_api/account_validity.html +++ b/v1.92/admin_api/account_validity.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -215,5 +228,7 @@ milliseconds since epoch:

+ + - \ No newline at end of file + diff --git a/v1.92/admin_api/event_reports.html b/v1.92/admin_api/event_reports.html index aabec67f60..a98f9a6a56 100644 --- a/v1.92/admin_api/event_reports.html +++ b/v1.92/admin_api/event_reports.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -348,5 +361,7 @@ will be an empty JSON object.

+ + - \ No newline at end of file + diff --git a/v1.92/admin_api/experimental_features.html b/v1.92/admin_api/experimental_features.html index 88b3e9aa0e..ee2455e13f 100644 --- a/v1.92/admin_api/experimental_features.html +++ b/v1.92/admin_api/experimental_features.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -226,5 +239,7 @@ user like so:

+ + - \ No newline at end of file + diff --git a/v1.92/admin_api/media_admin_api.html b/v1.92/admin_api/media_admin_api.html index 89249d8c2c..662f6ffa61 100644 --- a/v1.92/admin_api/media_admin_api.html +++ b/v1.92/admin_api/media_admin_api.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -403,5 +416,7 @@ from the originating server.

+ + - \ No newline at end of file + diff --git a/v1.92/admin_api/purge_history_api.html b/v1.92/admin_api/purge_history_api.html index 9b5e258b90..6efd749e95 100644 --- a/v1.92/admin_api/purge_history_api.html +++ b/v1.92/admin_api/purge_history_api.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -234,5 +247,7 @@ a purge id:

+ + - \ No newline at end of file + diff --git a/v1.92/admin_api/register_api.html b/v1.92/admin_api/register_api.html index b3e4cbe917..f8c6353745 100644 --- a/v1.92/admin_api/register_api.html +++ b/v1.92/admin_api/register_api.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -260,5 +273,7 @@ def generate_mac(nonce, user, password, admin=False, user_type=None): + + - \ No newline at end of file + diff --git a/v1.92/admin_api/room_membership.html b/v1.92/admin_api/room_membership.html index b5b3e76b61..1fe50a2359 100644 --- a/v1.92/admin_api/room_membership.html +++ b/v1.92/admin_api/room_membership.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -211,5 +224,7 @@ for a server admin: see Admin API + + - \ No newline at end of file + diff --git a/v1.92/admin_api/rooms.html b/v1.92/admin_api/rooms.html index fe246b4041..2bdc5aa877 100644 --- a/v1.92/admin_api/rooms.html +++ b/v1.92/admin_api/rooms.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -1138,5 +1151,7 @@ that were deleted.

+ + - \ No newline at end of file + diff --git a/v1.92/admin_api/server_notices.html b/v1.92/admin_api/server_notices.html index fdb9641d8c..77d3b652e3 100644 --- a/v1.92/admin_api/server_notices.html +++ b/v1.92/admin_api/server_notices.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -216,5 +229,7 @@ can be used. See
the server notices documentati + + - \ No newline at end of file + diff --git a/v1.92/admin_api/statistics.html b/v1.92/admin_api/statistics.html index 323a1165e1..eaaa306018 100644 --- a/v1.92/admin_api/statistics.html +++ b/v1.92/admin_api/statistics.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -295,5 +308,7 @@ in the database. + + - \ No newline at end of file + diff --git a/v1.92/admin_api/user_admin_api.html b/v1.92/admin_api/user_admin_api.html index bdec41080b..609805b26f 100644 --- a/v1.92/admin_api/user_admin_api.html +++ b/v1.92/admin_api/user_admin_api.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -1297,5 +1310,7 @@ for more information.

+ + - \ No newline at end of file + diff --git a/v1.92/admin_api/version_api.html b/v1.92/admin_api/version_api.html index 00a04cf442..f8afc912ae 100644 --- a/v1.92/admin_api/version_api.html +++ b/v1.92/admin_api/version_api.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -199,5 +212,7 @@ contains Synapse version information).

+ + - \ No newline at end of file + diff --git a/v1.92/application_services.html b/v1.92/application_services.html index 3d7dd407d8..5989b5bd60 100644 --- a/v1.92/application_services.html +++ b/v1.92/application_services.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -212,5 +225,7 @@ namespaces: + + - \ No newline at end of file + diff --git a/v1.92/auth_chain_difference_algorithm.html b/v1.92/auth_chain_difference_algorithm.html index d7d451fcfd..28ba0767c9 100644 --- a/v1.92/auth_chain_difference_algorithm.html +++ b/v1.92/auth_chain_difference_algorithm.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -306,5 +319,7 @@ level). + + - \ No newline at end of file + diff --git a/v1.92/code_style.html b/v1.92/code_style.html index 02d716dbf6..98f4687a98 100644 --- a/v1.92/code_style.html +++ b/v1.92/code_style.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -304,5 +317,7 @@ is left as an exercise for the reader!

+ + - \ No newline at end of file + diff --git a/v1.92/consent_tracking.html b/v1.92/consent_tracking.html index 34cfff1162..20086b12eb 100644 --- a/v1.92/consent_tracking.html +++ b/v1.92/consent_tracking.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -346,5 +359,7 @@ URI that clients use to connect to the server. (It is used to construct + + - \ No newline at end of file + diff --git a/v1.92/delegate.html b/v1.92/delegate.html index fa99c564b2..f572162152 100644 --- a/v1.92/delegate.html +++ b/v1.92/delegate.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -265,5 +278,7 @@ reverse proxy.

+ + - \ No newline at end of file + diff --git a/v1.92/deprecation_policy.html b/v1.92/deprecation_policy.html index 95742bacae..2a9ff48ead 100644 --- a/v1.92/deprecation_policy.html +++ b/v1.92/deprecation_policy.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -223,5 +236,7 @@ and is consistent with the .deb packages released by Matrix.org.

+ + - \ No newline at end of file + diff --git a/v1.92/development/cas.html b/v1.92/development/cas.html index ae35250574..f3579198d2 100644 --- a/v1.92/development/cas.html +++ b/v1.92/development/cas.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -247,5 +260,7 @@ and that the CAS server is on port 8000, both on localhost.

+ + - \ No newline at end of file + diff --git a/v1.92/development/contributing_guide.html b/v1.92/development/contributing_guide.html index b328bba158..e85995d1cf 100644 --- a/v1.92/development/contributing_guide.html +++ b/v1.92/development/contributing_guide.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -638,5 +651,7 @@ do!

+ + - \ No newline at end of file + diff --git a/v1.92/development/database_schema.html b/v1.92/development/database_schema.html index 3ba3b06439..063591deb7 100644 --- a/v1.92/development/database_schema.html +++ b/v1.92/development/database_schema.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -334,5 +347,7 @@ will never happen (SHA256 has a massive big key space).

+ + - \ No newline at end of file + diff --git a/v1.92/development/demo.html b/v1.92/development/demo.html index 2d4754ff33..cefec557bd 100644 --- a/v1.92/development/demo.html +++ b/v1.92/development/demo.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -220,5 +233,7 @@ name.

+ + - \ No newline at end of file + diff --git a/v1.92/development/dependencies.html b/v1.92/development/dependencies.html index f44f2db144..db87f74b82 100644 --- a/v1.92/development/dependencies.html +++ b/v1.92/development/dependencies.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -402,5 +415,7 @@ letting Poetry do the right thing.

+ + - \ No newline at end of file + diff --git a/v1.92/development/experimental_features.html b/v1.92/development/experimental_features.html index 98974dd4cd..64bbeea6d9 100644 --- a/v1.92/development/experimental_features.html +++ b/v1.92/development/experimental_features.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -218,5 +231,7 @@ configuration key (see the synapse.config.experimental file) and ei + + - \ No newline at end of file + diff --git a/v1.92/development/git.html b/v1.92/development/git.html index a6a9a322e6..4da15fac89 100644 --- a/v1.92/development/git.html +++ b/v1.92/development/git.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -306,5 +319,7 @@ the history of Synapse), we've had two releases in flight at once. Obviously, + + - \ No newline at end of file + diff --git a/v1.92/development/internal_documentation/index.html b/v1.92/development/internal_documentation/index.html index 10f4a067e1..feec47193a 100644 --- a/v1.92/development/internal_documentation/index.html +++ b/v1.92/development/internal_documentation/index.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -194,5 +207,7 @@ under the Usage section of the documentation.

+ + - \ No newline at end of file + diff --git a/v1.92/development/releases.html b/v1.92/development/releases.html index 4e96f192c1..ff7fc7ef17 100644 --- a/v1.92/development/releases.html +++ b/v1.92/development/releases.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -215,5 +228,7 @@ found in the
security category of + + - \ No newline at end of file + diff --git a/v1.92/development/reviews.html b/v1.92/development/reviews.html index ee932ce705..6028a647c0 100644 --- a/v1.92/development/reviews.html +++ b/v1.92/development/reviews.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -218,5 +231,7 @@ with the rationale on why you're putting it back in the queue.

+ + - \ No newline at end of file + diff --git a/v1.92/development/room-dag-concepts.html b/v1.92/development/room-dag-concepts.html index eaa06b291c..2e68370acf 100644 --- a/v1.92/development/room-dag-concepts.html +++ b/v1.92/development/room-dag-concepts.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -274,5 +287,7 @@ notes from @Azrenbeth, https://pastebin.com/seUGVGeT

+ + - \ No newline at end of file + diff --git a/v1.92/development/saml.html b/v1.92/development/saml.html index 3a2e8ac490..207122b62f 100644 --- a/v1.92/development/saml.html +++ b/v1.92/development/saml.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -223,5 +236,7 @@ samling page and clear the site data. In Chrome, this will be a button on the Ap + + - \ No newline at end of file + diff --git a/v1.92/development/synapse_architecture/cancellation.html b/v1.92/development/synapse_architecture/cancellation.html index 8f7d25bb88..4183a211e9 100644 --- a/v1.92/development/synapse_architecture/cancellation.html +++ b/v1.92/development/synapse_architecture/cancellation.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -532,5 +545,7 @@ with LoggingContext("request-1"): + + - \ No newline at end of file + diff --git a/v1.92/development/synapse_architecture/faster_joins.html b/v1.92/development/synapse_architecture/faster_joins.html index d60c159d11..d4d0c55289 100644 --- a/v1.92/development/synapse_architecture/faster_joins.html +++ b/v1.92/development/synapse_architecture/faster_joins.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -526,5 +539,7 @@ work?

+ + - \ No newline at end of file + diff --git a/v1.92/development/synapse_architecture/streams.html b/v1.92/development/synapse_architecture/streams.html index a76d3e8020..5d3ee955af 100644 --- a/v1.92/development/synapse_architecture/streams.html +++ b/v1.92/development/synapse_architecture/streams.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
+ +

Synapse

@@ -312,5 +325,7 @@ nowadays it's done via Redis's Pubsub.

+ + - \ No newline at end of file + diff --git a/v1.92/docs/website_files/version-picker.css b/v1.92/docs/website_files/version-picker.css new file mode 100644 index 0000000000..28e5d5219a --- /dev/null +++ b/v1.92/docs/website_files/version-picker.css @@ -0,0 +1,78 @@ +.version-picker { + display: flex; + align-items: center; +} + +.version-picker .dropdown { + width: 130px; + max-height: 29px; + margin-left: 10px; + display: inline-block; + border-radius: 4px; + border: 1px solid var(--theme-popup-border); + position: relative; + font-size: 13px; + color: var(--fg); + height: 100%; + text-align: left; +} +.version-picker .dropdown .select { + cursor: pointer; + display: block; + padding: 5px 2px 5px 15px; +} +.version-picker .dropdown .select > i { + font-size: 10px; + color: var(--fg); + cursor: pointer; + float: right; + line-height: 20px !important; +} +.version-picker .dropdown:hover { + border: 1px solid var(--theme-popup-border); +} +.version-picker .dropdown:active { + background-color: var(--theme-popup-bg); +} +.version-picker .dropdown.active:hover, +.version-picker .dropdown.active { + border: 1px solid var(--theme-popup-border); + border-radius: 2px 2px 0 0; + background-color: var(--theme-popup-bg); +} +.version-picker .dropdown.active .select > i { + transform: rotate(-180deg); +} +.version-picker .dropdown .dropdown-menu { + position: absolute; + background-color: var(--theme-popup-bg); + width: 100%; + left: -1px; + right: 1px; + margin-top: 1px; + border: 1px solid var(--theme-popup-border); + border-radius: 0 0 4px 4px; + overflow: hidden; + display: none; + max-height: 300px; + overflow-y: auto; + z-index: 9; +} +.version-picker .dropdown .dropdown-menu li { + font-size: 12px; + padding: 6px 20px; + cursor: pointer; +} +.version-picker .dropdown .dropdown-menu { + padding: 0; + list-style: none; +} +.version-picker .dropdown .dropdown-menu li:hover { + background-color: var(--theme-hover); +} +.version-picker .dropdown .dropdown-menu li.active::before { + display: inline-block; + content: "✓"; + margin-inline-start: -14px; + width: 14px; +} \ No newline at end of file diff --git a/v1.92/docs/website_files/version-picker.js b/v1.92/docs/website_files/version-picker.js new file mode 100644 index 0000000000..bb35a7d896 --- /dev/null +++ b/v1.92/docs/website_files/version-picker.js @@ -0,0 +1,127 @@ + +const dropdown = document.querySelector('.version-picker .dropdown'); +const dropdownMenu = dropdown.querySelector('.dropdown-menu'); + +fetchVersions(dropdown, dropdownMenu).then(() => { + initializeVersionDropdown(dropdown, dropdownMenu); +}); + +/** + * Initialize the dropdown functionality for version selection. + * + * @param {Element} dropdown - The dropdown element. + * @param {Element} dropdownMenu - The dropdown menu element. + */ +function initializeVersionDropdown(dropdown, dropdownMenu) { + // Toggle the dropdown menu on click + dropdown.addEventListener('click', function () { + this.setAttribute('tabindex', 1); + this.classList.toggle('active'); + dropdownMenu.style.display = (dropdownMenu.style.display === 'block') ? 'none' : 'block'; + }); + + // Remove the 'active' class and hide the dropdown menu on focusout + dropdown.addEventListener('focusout', function () { + this.classList.remove('active'); + dropdownMenu.style.display = 'none'; + }); + + // Handle item selection within the dropdown menu + const dropdownMenuItems = dropdownMenu.querySelectorAll('li'); + dropdownMenuItems.forEach(function (item) { + item.addEventListener('click', function () { + dropdownMenuItems.forEach(function (item) { + item.classList.remove('active'); + }); + this.classList.add('active'); + dropdown.querySelector('span').textContent = this.textContent; + dropdown.querySelector('input').value = this.getAttribute('id'); + + window.location.href = changeVersion(window.location.href, this.textContent); + }); + }); +}; + +/** + * This function fetches the available versions from a GitHub repository + * and inserts them into the version picker. + * + * @param {Element} dropdown - The dropdown element. + * @param {Element} dropdownMenu - The dropdown menu element. + * @returns {Promise>} A promise that resolves with an array of available versions. + */ +function fetchVersions(dropdown, dropdownMenu) { + return new Promise((resolve, reject) => { + window.addEventListener("load", () => { + + fetch("https://api.github.com/repos/matrix-org/synapse/git/trees/gh-pages", { + cache: "force-cache", + }).then(res => + res.json() + ).then(resObject => { + const excluded = ['dev-docs', 'v1.91.0', 'v1.80.0', 'v1.69.0']; + const tree = resObject.tree.filter(item => item.type === "tree" && !excluded.includes(item.path)); + const versions = tree.map(item => item.path).sort(sortVersions); + + // Create a list of
  • items for versions + versions.forEach((version) => { + const li = document.createElement("li"); + li.textContent = version; + li.id = version; + + if (window.SYNAPSE_VERSION === version) { + li.classList.add('active'); + dropdown.querySelector('span').textContent = version; + dropdown.querySelector('input').value = version; + } + + dropdownMenu.appendChild(li); + }); + + resolve(versions); + + }).catch(ex => { + console.error("Failed to fetch version data", ex); + reject(ex); + }) + }); + }); +} + +/** + * Custom sorting function to sort an array of version strings. + * + * @param {string} a - The first version string to compare. + * @param {string} b - The second version string to compare. + * @returns {number} - A negative number if a should come before b, a positive number if b should come before a, or 0 if they are equal. + */ +function sortVersions(a, b) { + // Put 'develop' and 'latest' at the top + if (a === 'develop' || a === 'latest') return -1; + if (b === 'develop' || b === 'latest') return 1; + + const versionA = (a.match(/v\d+(\.\d+)+/) || [])[0]; + const versionB = (b.match(/v\d+(\.\d+)+/) || [])[0]; + + return versionB.localeCompare(versionA); +} + +/** + * Change the version in a URL path. + * + * @param {string} url - The original URL to be modified. + * @param {string} newVersion - The new version to replace the existing version in the URL. + * @returns {string} The updated URL with the new version. + */ +function changeVersion(url, newVersion) { + const parsedURL = new URL(url); + const pathSegments = parsedURL.pathname.split('/'); + + // Modify the version + pathSegments[2] = newVersion; + + // Reconstruct the URL + parsedURL.pathname = pathSegments.join('/'); + + return parsedURL.href; +} \ No newline at end of file diff --git a/v1.92/docs/website_files/version.js b/v1.92/docs/website_files/version.js new file mode 100644 index 0000000000..77a8e60f62 --- /dev/null +++ b/v1.92/docs/website_files/version.js @@ -0,0 +1 @@ +window.SYNAPSE_VERSION = 'v1.92'; diff --git a/v1.92/federate.html b/v1.92/federate.html index d49f9a2993..b2da348cee 100644 --- a/v1.92/federate.html +++ b/v1.92/federate.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -238,5 +251,7 @@ useful just for development purposes. See + + - \ No newline at end of file + diff --git a/v1.92/index.html b/v1.92/index.html index 3afa750990..3bbf0f2f60 100644 --- a/v1.92/index.html +++ b/v1.92/index.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -264,5 +277,7 @@ Policy
    . Thank you!

    + + - \ No newline at end of file + diff --git a/v1.92/jwt.html b/v1.92/jwt.html index 4e922b3892..36e9b8bece 100644 --- a/v1.92/jwt.html +++ b/v1.92/jwt.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -281,5 +294,7 @@ print(result.decode("ascii")) + + - \ No newline at end of file + diff --git a/v1.92/log_contexts.html b/v1.92/log_contexts.html index 928a92eca2..62dd384ad2 100644 --- a/v1.92/log_contexts.html +++ b/v1.92/log_contexts.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -481,5 +494,7 @@ lead to leaked logcontexts which are incredibly hard to track down.

    + + - \ No newline at end of file + diff --git a/v1.92/manhole.html b/v1.92/manhole.html index 60bc9432b6..e9312c8bc8 100644 --- a/v1.92/manhole.html +++ b/v1.92/manhole.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -254,5 +267,7 @@ parts of the process.

    + + - \ No newline at end of file + diff --git a/v1.92/media_repository.html b/v1.92/media_repository.html index d0e87c9069..9ae9ba0148 100644 --- a/v1.92/media_repository.html +++ b/v1.92/media_repository.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -245,5 +258,7 @@ url_cache_thumbnails/yyyy-mm-dd/aaaaaaaaaaaaaaaa/128-96-image-jpeg-scale + + - \ No newline at end of file + diff --git a/v1.92/message_retention_policies.html b/v1.92/message_retention_policies.html index 57f1b48a9a..524b19cbec 100644 --- a/v1.92/message_retention_policies.html +++ b/v1.92/message_retention_policies.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -342,5 +355,7 @@ operating system, the server admin needs to run VACUUM FULL; (or + + - \ No newline at end of file + diff --git a/v1.92/metrics-howto.html b/v1.92/metrics-howto.html index c43ce93d88..4bb26a3151 100644 --- a/v1.92/metrics-howto.html +++ b/v1.92/metrics-howto.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -458,5 +471,7 @@ renamed.

    + + - \ No newline at end of file + diff --git a/v1.92/modules/account_data_callbacks.html b/v1.92/modules/account_data_callbacks.html index c50b180e92..7351247b26 100644 --- a/v1.92/modules/account_data_callbacks.html +++ b/v1.92/modules/account_data_callbacks.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -276,5 +289,7 @@ class CustomAccountDataModule: + + - \ No newline at end of file + diff --git a/v1.92/modules/account_validity_callbacks.html b/v1.92/modules/account_validity_callbacks.html index 543e8d6634..29a451f0e3 100644 --- a/v1.92/modules/account_validity_callbacks.html +++ b/v1.92/modules/account_validity_callbacks.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -214,5 +227,7 @@ represented by their Matrix user ID.

    + + - \ No newline at end of file + diff --git a/v1.92/modules/background_update_controller_callbacks.html b/v1.92/modules/background_update_controller_callbacks.html index 4b30f6bc9c..deac413fc2 100644 --- a/v1.92/modules/background_update_controller_callbacks.html +++ b/v1.92/modules/background_update_controller_callbacks.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -232,5 +245,7 @@ ensure that progress is always made.

    + + - \ No newline at end of file + diff --git a/v1.92/modules/index.html b/v1.92/modules/index.html index af253fedf7..abe9bebbcd 100644 --- a/v1.92/modules/index.html +++ b/v1.92/modules/index.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -227,5 +240,7 @@ another part of Synapse's configuration file.

    + + - \ No newline at end of file + diff --git a/v1.92/modules/password_auth_provider_callbacks.html b/v1.92/modules/password_auth_provider_callbacks.html index bf3acec439..0d57452afa 100644 --- a/v1.92/modules/password_auth_provider_callbacks.html +++ b/v1.92/modules/password_auth_provider_callbacks.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -424,5 +437,7 @@ class MyAuthProvider: + + - \ No newline at end of file + diff --git a/v1.92/modules/porting_legacy_module.html b/v1.92/modules/porting_legacy_module.html index d803d76acc..9912743fd2 100644 --- a/v1.92/modules/porting_legacy_module.html +++ b/v1.92/modules/porting_legacy_module.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -202,5 +215,7 @@ for more info).

    + + - \ No newline at end of file + diff --git a/v1.92/modules/presence_router_callbacks.html b/v1.92/modules/presence_router_callbacks.html index c8d26631a1..90afff98ad 100644 --- a/v1.92/modules/presence_router_callbacks.html +++ b/v1.92/modules/presence_router_callbacks.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -267,5 +280,7 @@ class CustomPresenceRouter: + + - \ No newline at end of file + diff --git a/v1.92/modules/spam_checker_callbacks.html b/v1.92/modules/spam_checker_callbacks.html index d35145ad4d..053337730e 100644 --- a/v1.92/modules/spam_checker_callbacks.html +++ b/v1.92/modules/spam_checker_callbacks.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -564,5 +577,7 @@ class ListSpamChecker: + + - \ No newline at end of file + diff --git a/v1.92/modules/third_party_rules_callbacks.html b/v1.92/modules/third_party_rules_callbacks.html index bb89d8aa87..e7e546530b 100644 --- a/v1.92/modules/third_party_rules_callbacks.html +++ b/v1.92/modules/third_party_rules_callbacks.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -433,5 +446,7 @@ class EventCensorer: + + - \ No newline at end of file + diff --git a/v1.92/modules/writing_a_module.html b/v1.92/modules/writing_a_module.html index 8a64cb764f..6b0b4fc9e3 100644 --- a/v1.92/modules/writing_a_module.html +++ b/v1.92/modules/writing_a_module.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -294,5 +307,7 @@ class MyModule: + + - \ No newline at end of file + diff --git a/v1.92/openid.html b/v1.92/openid.html index f22812e707..121b667658 100644 --- a/v1.92/openid.html +++ b/v1.92/openid.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -815,5 +828,7 @@ are randomly generated data.
  • + + - \ No newline at end of file + diff --git a/v1.92/opentracing.html b/v1.92/opentracing.html index d7a8a401f1..e2eac40beb 100644 --- a/v1.92/opentracing.html +++ b/v1.92/opentracing.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -259,5 +272,7 @@ logged to OpenTracing's logs. + + - \ No newline at end of file + diff --git a/v1.92/other/running_synapse_on_single_board_computers.html b/v1.92/other/running_synapse_on_single_board_computers.html index 26f7e9af90..efa8b6a9d5 100644 --- a/v1.92/other/running_synapse_on_single_board_computers.html +++ b/v1.92/other/running_synapse_on_single_board_computers.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -235,5 +248,7 @@ admin@homeserver:~$ sudo --user postgres psql matrix-synapse --command 'select c + + - \ No newline at end of file + diff --git a/v1.92/password_auth_providers.html b/v1.92/password_auth_providers.html index 33eed556f9..415c606c3d 100644 --- a/v1.92/password_auth_providers.html +++ b/v1.92/password_auth_providers.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -299,5 +312,7 @@ wait for the Awaitable to complete, but the result is ignored.

    + + - \ No newline at end of file + diff --git a/v1.92/postgres.html b/v1.92/postgres.html index f3e98fda6e..b0a0128398 100644 --- a/v1.92/postgres.html +++ b/v1.92/postgres.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -394,5 +407,7 @@ successfully.

    + + - \ No newline at end of file + diff --git a/v1.92/print.html b/v1.92/print.html index a767926a34..0075235cf8 100644 --- a/v1.92/print.html +++ b/v1.92/print.html @@ -29,6 +29,7 @@ + @@ -104,6 +105,18 @@ +
    + +

    Synapse

    @@ -19166,10 +19179,12 @@ admin@homeserver:~$ sudo --user postgres psql matrix-synapse --command 'select c + + - \ No newline at end of file + diff --git a/v1.92/replication.html b/v1.92/replication.html index a271ecaa45..7f431b3bb9 100644 --- a/v1.92/replication.html +++ b/v1.92/replication.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -213,5 +226,7 @@ the classes interact, can be found in + + - \ No newline at end of file + diff --git a/v1.92/reverse_proxy.html b/v1.92/reverse_proxy.html index 17b47663f1..ede9ba2fe0 100644 --- a/v1.92/reverse_proxy.html +++ b/v1.92/reverse_proxy.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -407,5 +420,7 @@ we do not recommend exposing them to the public internet without good reason.

    + + - \ No newline at end of file + diff --git a/v1.92/room_and_user_statistics.html b/v1.92/room_and_user_statistics.html index e619eb967c..263d530da0 100644 --- a/v1.92/room_and_user_statistics.html +++ b/v1.92/room_and_user_statistics.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -200,5 +213,7 @@ statistics for a room. Each subject can only have one entry.

    + + - \ No newline at end of file + diff --git a/v1.92/server_notices.html b/v1.92/server_notices.html index debde906f1..a089feb8cc 100644 --- a/v1.92/server_notices.html +++ b/v1.92/server_notices.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -229,5 +242,7 @@ displayname and avatar of the Server Notices user.

    + + - \ No newline at end of file + diff --git a/v1.92/setup/forward_proxy.html b/v1.92/setup/forward_proxy.html index c6e20f5d89..e347fa5590 100644 --- a/v1.92/setup/forward_proxy.html +++ b/v1.92/setup/forward_proxy.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -260,5 +273,7 @@ your homserver.ya + + - \ No newline at end of file + diff --git a/v1.92/setup/installation.html b/v1.92/setup/installation.html index 09b07ccdd4..2bfa45fb42 100644 --- a/v1.92/setup/installation.html +++ b/v1.92/setup/installation.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -610,5 +623,7 @@ failing, e.g.:

    + + - \ No newline at end of file + diff --git a/v1.92/setup/turn/coturn.html b/v1.92/setup/turn/coturn.html index eac46d0d5a..f2def1d7ad 100644 --- a/v1.92/setup/turn/coturn.html +++ b/v1.92/setup/turn/coturn.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -347,5 +360,7 @@ IPv6 address that is mapped by NAT to the external IPv6 address.

    + + - \ No newline at end of file + diff --git a/v1.92/setup/turn/eturnal.html b/v1.92/setup/turn/eturnal.html index d1f930dfc7..0a13ccb0c2 100644 --- a/v1.92/setup/turn/eturnal.html +++ b/v1.92/setup/turn/eturnal.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -320,5 +333,7 @@ to query how many active sessions exist, to change logging behaviour and so on.< + + - \ No newline at end of file + diff --git a/v1.92/sso_mapping_providers.html b/v1.92/sso_mapping_providers.html index a52a774c1f..6ddac66d28 100644 --- a/v1.92/sso_mapping_providers.html +++ b/v1.92/sso_mapping_providers.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -442,5 +455,7 @@ specified in the config. It is located at + + - \ No newline at end of file + diff --git a/v1.92/structured_logging.html b/v1.92/structured_logging.html index 90b0dad33f..3579fab01a 100644 --- a/v1.92/structured_logging.html +++ b/v1.92/structured_logging.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -254,5 +267,7 @@ remote endpoint at 10.1.2.3:9999.

    + + - \ No newline at end of file + diff --git a/v1.92/synctl_workers.html b/v1.92/synctl_workers.html index 42c57be855..ca8c658809 100644 --- a/v1.92/synctl_workers.html +++ b/v1.92/synctl_workers.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -208,5 +221,7 @@ notifications.

    + + - \ No newline at end of file + diff --git a/v1.92/systemd-with-workers/index.html b/v1.92/systemd-with-workers/index.html index 23af0f81fa..d8379482e0 100644 --- a/v1.92/systemd-with-workers/index.html +++ b/v1.92/systemd-with-workers/index.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -275,5 +288,7 @@ the changes being applied at a glance.

    + + - \ No newline at end of file + diff --git a/v1.92/tcp_replication.html b/v1.92/tcp_replication.html index e3ca69c0b8..4c45da2420 100644 --- a/v1.92/tcp_replication.html +++ b/v1.92/tcp_replication.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -381,5 +394,7 @@ state + + - \ No newline at end of file + diff --git a/v1.92/templates.html b/v1.92/templates.html index 7a9c36c9f2..715f850753 100644 --- a/v1.92/templates.html +++ b/v1.92/templates.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -467,5 +480,7 @@ When rendering, this template is given two variables: + + - \ No newline at end of file + diff --git a/v1.92/turn-howto.html b/v1.92/turn-howto.html index 122ac0eeab..4dadcd39a5 100644 --- a/v1.92/turn-howto.html +++ b/v1.92/turn-howto.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -342,5 +355,7 @@ entry in the results.

    + + - \ No newline at end of file + diff --git a/v1.92/upgrade.html b/v1.92/upgrade.html index bcb3fb605f..4db7dda58c 100644 --- a/v1.92/upgrade.html +++ b/v1.92/upgrade.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -2118,5 +2131,7 @@ in the local HS will automatically rejoin the room.

    + + - \ No newline at end of file + diff --git a/v1.92/usage/administration/admin_api/background_updates.html b/v1.92/usage/administration/admin_api/background_updates.html index 7b7b5dc646..f058edff0c 100644 --- a/v1.92/usage/administration/admin_api/background_updates.html +++ b/v1.92/usage/administration/admin_api/background_updates.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -255,5 +268,7 @@ background updates which won't be cancelled once started.

    + + - \ No newline at end of file + diff --git a/v1.92/usage/administration/admin_api/federation.html b/v1.92/usage/administration/admin_api/federation.html index 5eaa154eac..4f24a82764 100644 --- a/v1.92/usage/administration/admin_api/federation.html +++ b/v1.92/usage/administration/admin_api/federation.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -357,5 +370,7 @@ even if the API already returns the http status 200.

    + + - \ No newline at end of file + diff --git a/v1.92/usage/administration/admin_api/index.html b/v1.92/usage/administration/admin_api/index.html index 9fddd06fda..3a64f298b9 100644 --- a/v1.92/usage/administration/admin_api/index.html +++ b/v1.92/usage/administration/admin_api/index.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -217,5 +230,7 @@ information from the Admin API.

    + + - \ No newline at end of file + diff --git a/v1.92/usage/administration/admin_api/registration_tokens.html b/v1.92/usage/administration/admin_api/registration_tokens.html index 74e5be1e20..db21add0c9 100644 --- a/v1.92/usage/administration/admin_api/registration_tokens.html +++ b/v1.92/usage/administration/admin_api/registration_tokens.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -424,5 +437,7 @@ the
    Ma + + - \ No newline at end of file + diff --git a/v1.92/usage/administration/admin_faq.html b/v1.92/usage/administration/admin_faq.html index 0cdca99700..b98f56aa6d 100644 --- a/v1.92/usage/administration/admin_faq.html +++ b/v1.92/usage/administration/admin_faq.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -394,5 +407,7 @@ you see this failure mode so we can help debug it, however.

    + + - \ No newline at end of file + diff --git a/v1.92/usage/administration/database_maintenance_tools.html b/v1.92/usage/administration/database_maintenance_tools.html index b613b01a4c..c90153a5b6 100644 --- a/v1.92/usage/administration/database_maintenance_tools.html +++ b/v1.92/usage/administration/database_maintenance_tools.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -197,5 +210,7 @@ + + - \ No newline at end of file + diff --git a/v1.92/usage/administration/index.html b/v1.92/usage/administration/index.html index 5e9d90d7c0..9cca72b2ac 100644 --- a/v1.92/usage/administration/index.html +++ b/v1.92/usage/administration/index.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -192,5 +205,7 @@ + + - \ No newline at end of file + diff --git a/v1.92/usage/administration/monitoring/reporting_homeserver_usage_statistics.html b/v1.92/usage/administration/monitoring/reporting_homeserver_usage_statistics.html index de414dcf85..53b90d5117 100644 --- a/v1.92/usage/administration/monitoring/reporting_homeserver_usage_statistics.html +++ b/v1.92/usage/administration/monitoring/reporting_homeserver_usage_statistics.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -254,5 +267,7 @@ consider using one of the following known implementations:

    + + - \ No newline at end of file + diff --git a/v1.92/usage/administration/monthly_active_users.html b/v1.92/usage/administration/monthly_active_users.html index b491490d72..69aa6ee9b8 100644 --- a/v1.92/usage/administration/monthly_active_users.html +++ b/v1.92/usage/administration/monthly_active_users.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -249,5 +262,7 @@ registered accounts on the homeserver.

    + + - \ No newline at end of file + diff --git a/v1.92/usage/administration/request_log.html b/v1.92/usage/administration/request_log.html index 91ff155bcd..defc77a09a 100644 --- a/v1.92/usage/administration/request_log.html +++ b/v1.92/usage/administration/request_log.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -220,5 +233,7 @@ small processing times.

    + + - \ No newline at end of file + diff --git a/v1.92/usage/administration/state_groups.html b/v1.92/usage/administration/state_groups.html index 3c0b912629..7d04566c6a 100644 --- a/v1.92/usage/administration/state_groups.html +++ b/v1.92/usage/administration/state_groups.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -198,5 +211,7 @@ + + - \ No newline at end of file + diff --git a/v1.92/usage/administration/understanding_synapse_through_grafana_graphs.html b/v1.92/usage/administration/understanding_synapse_through_grafana_graphs.html index f1b92356c0..0291f37fd3 100644 --- a/v1.92/usage/administration/understanding_synapse_through_grafana_graphs.html +++ b/v1.92/usage/administration/understanding_synapse_through_grafana_graphs.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -235,5 +248,7 @@ to make use of multiple CPU cores / multiple machines for your homeserver.

    + + - \ No newline at end of file + diff --git a/v1.92/usage/administration/useful_sql_for_admins.html b/v1.92/usage/administration/useful_sql_for_admins.html index 2453388d11..5cc0995d2b 100644 --- a/v1.92/usage/administration/useful_sql_for_admins.html +++ b/v1.92/usage/administration/useful_sql_for_admins.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -355,5 +368,7 @@ WHERE room_stats_state.room_id = event_json.room_id" | psql -d synapse -h l + + - \ No newline at end of file + diff --git a/v1.92/usage/configuration/config_documentation.html b/v1.92/usage/configuration/config_documentation.html index 414593c55e..f4bfea5f2c 100644 --- a/v1.92/usage/configuration/config_documentation.html +++ b/v1.92/usage/configuration/config_documentation.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -3906,5 +3919,7 @@ Set a size to change the default. + + - \ No newline at end of file + diff --git a/v1.92/usage/configuration/homeserver_sample_config.html b/v1.92/usage/configuration/homeserver_sample_config.html index 7b8b1463fa..3a3c7a0d06 100644 --- a/v1.92/usage/configuration/homeserver_sample_config.html +++ b/v1.92/usage/configuration/homeserver_sample_config.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -239,5 +252,7 @@ trusted_key_servers: + + - \ No newline at end of file + diff --git a/v1.92/usage/configuration/index.html b/v1.92/usage/configuration/index.html index 0e5cd87ec9..a3707fcbec 100644 --- a/v1.92/usage/configuration/index.html +++ b/v1.92/usage/configuration/index.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -188,5 +201,7 @@ file should have been generated when you
    + + - \ No newline at end of file + diff --git a/v1.92/usage/configuration/logging_sample_config.html b/v1.92/usage/configuration/logging_sample_config.html index 8b3b64e81a..174fb6b19c 100644 --- a/v1.92/usage/configuration/logging_sample_config.html +++ b/v1.92/usage/configuration/logging_sample_config.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -270,5 +283,7 @@ disable_existing_loggers: false + + - \ No newline at end of file + diff --git a/v1.92/usage/configuration/user_authentication/index.html b/v1.92/usage/configuration/user_authentication/index.html index f80a11de6c..9019590606 100644 --- a/v1.92/usage/configuration/user_authentication/index.html +++ b/v1.92/usage/configuration/user_authentication/index.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -198,5 +211,7 @@ modules.

    + + - \ No newline at end of file + diff --git a/v1.92/usage/configuration/user_authentication/refresh_tokens.html b/v1.92/usage/configuration/user_authentication/refresh_tokens.html index 21be35e3fa..8763b3f0f2 100644 --- a/v1.92/usage/configuration/user_authentication/refresh_tokens.html +++ b/v1.92/usage/configuration/user_authentication/refresh_tokens.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -307,5 +320,7 @@ above requirements will still hold.

    + + - \ No newline at end of file + diff --git a/v1.92/usage/configuration/user_authentication/single_sign_on/cas.html b/v1.92/usage/configuration/user_authentication/single_sign_on/cas.html index c00079d9c0..0ab84c70e2 100644 --- a/v1.92/usage/configuration/user_authentication/single_sign_on/cas.html +++ b/v1.92/usage/configuration/user_authentication/single_sign_on/cas.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -191,5 +204,7 @@ sections of the configuration manual for more details.

    + + - \ No newline at end of file + diff --git a/v1.92/usage/configuration/user_authentication/single_sign_on/index.html b/v1.92/usage/configuration/user_authentication/single_sign_on/index.html index 784d41afa8..39bd2db433 100644 --- a/v1.92/usage/configuration/user_authentication/single_sign_on/index.html +++ b/v1.92/usage/configuration/user_authentication/single_sign_on/index.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -189,5 +202,7 @@ auth provider modules.

    + + - \ No newline at end of file + diff --git a/v1.92/usage/configuration/user_authentication/single_sign_on/saml.html b/v1.92/usage/configuration/user_authentication/single_sign_on/saml.html index d06ee75f5f..c2ad7a53ce 100644 --- a/v1.92/usage/configuration/user_authentication/single_sign_on/saml.html +++ b/v1.92/usage/configuration/user_authentication/single_sign_on/saml.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -191,5 +204,7 @@ file
    for more details.

    + + - \ No newline at end of file + diff --git a/v1.92/user_directory.html b/v1.92/user_directory.html index e14e54a644..5eb445eb57 100644 --- a/v1.92/user_directory.html +++ b/v1.92/user_directory.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -240,5 +253,7 @@ different, but this isn't enforced by a constraint.

    + + - \ No newline at end of file + diff --git a/v1.92/website_files/theme/index.hbs b/v1.92/website_files/theme/index.hbs index 3b7a5b6163..b169323a43 100644 --- a/v1.92/website_files/theme/index.hbs +++ b/v1.92/website_files/theme/index.hbs @@ -131,6 +131,18 @@ {{/if}} +
    + +

    {{ book_title }}

    @@ -309,4 +321,4 @@ {{/if}} - \ No newline at end of file + diff --git a/v1.92/website_files/version-picker.css b/v1.92/website_files/version-picker.css new file mode 100644 index 0000000000..28e5d5219a --- /dev/null +++ b/v1.92/website_files/version-picker.css @@ -0,0 +1,78 @@ +.version-picker { + display: flex; + align-items: center; +} + +.version-picker .dropdown { + width: 130px; + max-height: 29px; + margin-left: 10px; + display: inline-block; + border-radius: 4px; + border: 1px solid var(--theme-popup-border); + position: relative; + font-size: 13px; + color: var(--fg); + height: 100%; + text-align: left; +} +.version-picker .dropdown .select { + cursor: pointer; + display: block; + padding: 5px 2px 5px 15px; +} +.version-picker .dropdown .select > i { + font-size: 10px; + color: var(--fg); + cursor: pointer; + float: right; + line-height: 20px !important; +} +.version-picker .dropdown:hover { + border: 1px solid var(--theme-popup-border); +} +.version-picker .dropdown:active { + background-color: var(--theme-popup-bg); +} +.version-picker .dropdown.active:hover, +.version-picker .dropdown.active { + border: 1px solid var(--theme-popup-border); + border-radius: 2px 2px 0 0; + background-color: var(--theme-popup-bg); +} +.version-picker .dropdown.active .select > i { + transform: rotate(-180deg); +} +.version-picker .dropdown .dropdown-menu { + position: absolute; + background-color: var(--theme-popup-bg); + width: 100%; + left: -1px; + right: 1px; + margin-top: 1px; + border: 1px solid var(--theme-popup-border); + border-radius: 0 0 4px 4px; + overflow: hidden; + display: none; + max-height: 300px; + overflow-y: auto; + z-index: 9; +} +.version-picker .dropdown .dropdown-menu li { + font-size: 12px; + padding: 6px 20px; + cursor: pointer; +} +.version-picker .dropdown .dropdown-menu { + padding: 0; + list-style: none; +} +.version-picker .dropdown .dropdown-menu li:hover { + background-color: var(--theme-hover); +} +.version-picker .dropdown .dropdown-menu li.active::before { + display: inline-block; + content: "✓"; + margin-inline-start: -14px; + width: 14px; +} \ No newline at end of file diff --git a/v1.92/website_files/version-picker.js b/v1.92/website_files/version-picker.js new file mode 100644 index 0000000000..bb35a7d896 --- /dev/null +++ b/v1.92/website_files/version-picker.js @@ -0,0 +1,127 @@ + +const dropdown = document.querySelector('.version-picker .dropdown'); +const dropdownMenu = dropdown.querySelector('.dropdown-menu'); + +fetchVersions(dropdown, dropdownMenu).then(() => { + initializeVersionDropdown(dropdown, dropdownMenu); +}); + +/** + * Initialize the dropdown functionality for version selection. + * + * @param {Element} dropdown - The dropdown element. + * @param {Element} dropdownMenu - The dropdown menu element. + */ +function initializeVersionDropdown(dropdown, dropdownMenu) { + // Toggle the dropdown menu on click + dropdown.addEventListener('click', function () { + this.setAttribute('tabindex', 1); + this.classList.toggle('active'); + dropdownMenu.style.display = (dropdownMenu.style.display === 'block') ? 'none' : 'block'; + }); + + // Remove the 'active' class and hide the dropdown menu on focusout + dropdown.addEventListener('focusout', function () { + this.classList.remove('active'); + dropdownMenu.style.display = 'none'; + }); + + // Handle item selection within the dropdown menu + const dropdownMenuItems = dropdownMenu.querySelectorAll('li'); + dropdownMenuItems.forEach(function (item) { + item.addEventListener('click', function () { + dropdownMenuItems.forEach(function (item) { + item.classList.remove('active'); + }); + this.classList.add('active'); + dropdown.querySelector('span').textContent = this.textContent; + dropdown.querySelector('input').value = this.getAttribute('id'); + + window.location.href = changeVersion(window.location.href, this.textContent); + }); + }); +}; + +/** + * This function fetches the available versions from a GitHub repository + * and inserts them into the version picker. + * + * @param {Element} dropdown - The dropdown element. + * @param {Element} dropdownMenu - The dropdown menu element. + * @returns {Promise>} A promise that resolves with an array of available versions. + */ +function fetchVersions(dropdown, dropdownMenu) { + return new Promise((resolve, reject) => { + window.addEventListener("load", () => { + + fetch("https://api.github.com/repos/matrix-org/synapse/git/trees/gh-pages", { + cache: "force-cache", + }).then(res => + res.json() + ).then(resObject => { + const excluded = ['dev-docs', 'v1.91.0', 'v1.80.0', 'v1.69.0']; + const tree = resObject.tree.filter(item => item.type === "tree" && !excluded.includes(item.path)); + const versions = tree.map(item => item.path).sort(sortVersions); + + // Create a list of
  • items for versions + versions.forEach((version) => { + const li = document.createElement("li"); + li.textContent = version; + li.id = version; + + if (window.SYNAPSE_VERSION === version) { + li.classList.add('active'); + dropdown.querySelector('span').textContent = version; + dropdown.querySelector('input').value = version; + } + + dropdownMenu.appendChild(li); + }); + + resolve(versions); + + }).catch(ex => { + console.error("Failed to fetch version data", ex); + reject(ex); + }) + }); + }); +} + +/** + * Custom sorting function to sort an array of version strings. + * + * @param {string} a - The first version string to compare. + * @param {string} b - The second version string to compare. + * @returns {number} - A negative number if a should come before b, a positive number if b should come before a, or 0 if they are equal. + */ +function sortVersions(a, b) { + // Put 'develop' and 'latest' at the top + if (a === 'develop' || a === 'latest') return -1; + if (b === 'develop' || b === 'latest') return 1; + + const versionA = (a.match(/v\d+(\.\d+)+/) || [])[0]; + const versionB = (b.match(/v\d+(\.\d+)+/) || [])[0]; + + return versionB.localeCompare(versionA); +} + +/** + * Change the version in a URL path. + * + * @param {string} url - The original URL to be modified. + * @param {string} newVersion - The new version to replace the existing version in the URL. + * @returns {string} The updated URL with the new version. + */ +function changeVersion(url, newVersion) { + const parsedURL = new URL(url); + const pathSegments = parsedURL.pathname.split('/'); + + // Modify the version + pathSegments[2] = newVersion; + + // Reconstruct the URL + parsedURL.pathname = pathSegments.join('/'); + + return parsedURL.href; +} \ No newline at end of file diff --git a/v1.92/website_files/version.js b/v1.92/website_files/version.js new file mode 100644 index 0000000000..77a8e60f62 --- /dev/null +++ b/v1.92/website_files/version.js @@ -0,0 +1 @@ +window.SYNAPSE_VERSION = 'v1.92'; diff --git a/v1.92/welcome_and_overview.html b/v1.92/welcome_and_overview.html index 3afa750990..3bbf0f2f60 100644 --- a/v1.92/welcome_and_overview.html +++ b/v1.92/welcome_and_overview.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -264,5 +277,7 @@ Policy. Thank you!

    + + - \ No newline at end of file + diff --git a/v1.92/workers.html b/v1.92/workers.html index 1cb77cc8d2..0333efaf0f 100644 --- a/v1.92/workers.html +++ b/v1.92/workers.html @@ -28,6 +28,7 @@ + @@ -103,6 +104,18 @@ +
    + +

    Synapse

    @@ -914,5 +927,7 @@ in systemd service files, but not required for synctl).

    + + - \ No newline at end of file +