Use markdown-grid-tables for multiline table

pycodestyle enforces 120-character line lengtn limit.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
Eng Zer Jun 2026-02-12 00:25:29 +08:00
parent cc974da87e
commit c0959609ef
No known key found for this signature in database
GPG Key ID: DAEBBD2E34C111E6
4 changed files with 39 additions and 12 deletions

View File

@ -1364,12 +1364,24 @@ variable. If it is not defined, the default is ``"127.0.0.1,::1"``.
} }
``` ```
+---------------------+----------------------------+-----------------------------+-------------------------+
| forwarded-allow-ips | Secure Request Headers | Result | Explanation | | forwarded-allow-ips | Secure Request Headers | Result | Explanation |
| ------------------- | -------------------------------------------------- | ------------------------------- | ----------------------------------------------------------------------------- | +=====================+============================+=============================+=========================+
| `"127.0.0.1"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "http"` | IP address was not allowed | | `"127.0.0.1"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "http"` | IP address was not |
| `"*"` | `<none>` | `wsgi.url_scheme = "http"` | IP address allowed, but no secure headers provided | | | | | allowed |
| `"*"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "https"` | IP address allowed, one request header matched | +---------------------+----------------------------+-----------------------------+-------------------------+
| `"134.213.44.18"` | `X-Forwarded-Ssl: on`<br>`X-Forwarded-Proto: http` | `InvalidSchemeHeaders()` raised | IP address allowed, but the two secure headers disagreed on if HTTPS was used | | | | | IP address allowed, but |
| `"*"` | `<none>` | `wsgi.url_scheme = "http"` | no secure headers |
| | | | provided |
+---------------------+----------------------------+-----------------------------+-------------------------+
| `"*"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "https"` | IP address allowed, one |
| | | | request header matched |
+---------------------+----------------------------+-----------------------------+-------------------------+
| | | | IP address allowed, but |
| `"134.213.44.18"` | `X-Forwarded-Ssl: on` | `InvalidSchemeHeaders()` | the two secure headers |
| | `X-Forwarded-Proto: http` | raised | disagreed on if HTTPS |
| | | | was used |
+---------------------+----------------------------+-----------------------------+-------------------------+
### `pythonpath` ### `pythonpath`

View File

@ -1354,12 +1354,24 @@ class ForwardedAllowIPS(Setting):
} }
``` ```
+---------------------+----------------------------+-----------------------------+-------------------------+
| forwarded-allow-ips | Secure Request Headers | Result | Explanation | | forwarded-allow-ips | Secure Request Headers | Result | Explanation |
| ------------------- | -------------------------------------------------- | ------------------------------- | ----------------------------------------------------------------------------- | +=====================+============================+=============================+=========================+
| `"127.0.0.1"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "http"` | IP address was not allowed | | `"127.0.0.1"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "http"` | IP address was not |
| `"*"` | `<none>` | `wsgi.url_scheme = "http"` | IP address allowed, but no secure headers provided | | | | | allowed |
| `"*"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "https"` | IP address allowed, one request header matched | +---------------------+----------------------------+-----------------------------+-------------------------+
| `"134.213.44.18"` | `X-Forwarded-Ssl: on`<br>`X-Forwarded-Proto: http` | `InvalidSchemeHeaders()` raised | IP address allowed, but the two secure headers disagreed on if HTTPS was used | | | | | IP address allowed, but |
| `"*"` | `<none>` | `wsgi.url_scheme = "http"` | no secure headers |
| | | | provided |
+---------------------+----------------------------+-----------------------------+-------------------------+
| `"*"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "https"` | IP address allowed, one |
| | | | request header matched |
+---------------------+----------------------------+-----------------------------+-------------------------+
| | | | IP address allowed, but |
| `"134.213.44.18"` | `X-Forwarded-Ssl: on` | `InvalidSchemeHeaders()` | the two secure headers |
| | `X-Forwarded-Proto: http` | raised | disagreed on if HTTPS |
| | | | was used |
+---------------------+----------------------------+-----------------------------+-------------------------+
""" """

View File

@ -105,6 +105,8 @@ markdown_extensions:
- footnotes - footnotes
- md_in_html - md_in_html
- tables - tables
- markdown_grid_tables:
hard_linebreaks: false
- toc: - toc:
permalink: true permalink: true
- pymdownx.details - pymdownx.details

View File

@ -8,5 +8,6 @@ setuptools>=68.0
mkdocs>=1.6 mkdocs>=1.6
mkdocs-material>=9.5 mkdocs-material>=9.5
mkdocs-gen-files>=0.5 mkdocs-gen-files>=0.5
markdown-grid-tables>=0.6
mkdocs-macros-plugin>=1.0 mkdocs-macros-plugin>=1.0
pymdown-extensions>=10.0 pymdown-extensions>=10.0