From 5d445a70d3565808ae95b0027cd167479fab8237 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 22 Feb 2025 16:10:44 +0100 Subject: [PATCH] docs: Fix outdated links --- docs/conf.py | 11 +++++++---- docs/ecosystem.rst | 2 +- docs/explanations/db_authz.rst | 2 +- docs/index.rst | 2 +- docs/integrations/greenplum.rst | 2 +- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 7b72d401d..01e4dcc81 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -292,12 +292,15 @@ def setup(app): app.add_css_file("css/custom.css") -# taken from https://github.com/sphinx-doc/sphinx/blob/82dad44e5bd3776ecb6fd8ded656bc8151d0e63d/sphinx/util/requests.py#L42 -user_agent = "Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0" +user_agent = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0" linkcheck_ignore = [ - r"https://www.patreon.com/postgrest", - r"https://blog.frankel.ch/poor-man-api", + # Odd SSL error + r"https://www.dripdepot.com", + # New GitHub UI delays comment load, so anchor fails + r"https://github.com/.*#issuecomment", + # Random 500 Internal Server Error + r"https://jwt.io", ] # sphinx-tabs configuration diff --git a/docs/ecosystem.rst b/docs/ecosystem.rst index f3a11a5da..4f3a184f1 100644 --- a/docs/ecosystem.rst +++ b/docs/ecosystem.rst @@ -90,7 +90,7 @@ Client-Side Libraries * `postgrest-go `_ - Go * `postgrest-js `_ - TypeScript/JavaScript * `postgrest-kt `_ - Kotlin -* `postgrest-py `_ - Python +* `postgrest-py `_ - Python * `postgrest-rs `_ - Rust * `postgrest-swift `_ - Swift * `redux-postgrest `_ - TypeScript/JS, client integrated with (React) Redux. diff --git a/docs/explanations/db_authz.rst b/docs/explanations/db_authz.rst index 259faf4b5..e907fd925 100644 --- a/docs/explanations/db_authz.rst +++ b/docs/explanations/db_authz.rst @@ -15,7 +15,7 @@ Roles for Each Web User PostgREST can accommodate either viewpoint. If you treat a role as a single user then the :ref:`jwt_impersonation` does most of what you need. When an authenticated user makes a request PostgREST will switch into the database role for that user, which in addition to restricting queries, is available to SQL through the :code:`current_user` variable. -You can use row-level security to flexibly restrict visibility and access for the current user. Here is an `example `_ from Tomas Vondra, a chat table storing messages sent between users. Users can insert rows into it to send messages to other users, and query it to see messages sent to them by other users. +You can use row-level security to flexibly restrict visibility and access for the current user. Here is an `example `_ from Tomas Vondra, a chat table storing messages sent between users. Users can insert rows into it to send messages to other users, and query it to see messages sent to them by other users. .. code-block:: postgres diff --git a/docs/index.rst b/docs/index.rst index b574507c0..6d0a952ea 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -39,7 +39,7 @@ Sponsors :target: https://www.cybertec-postgresql.com/en/?utm_source=postgrest.org&utm_medium=referral&utm_campaign=postgrest .. image:: ../static/gnuhost.png - :target: https://gnuhost.eu/?utm_source=sponsor&utm_campaign=postgrest + :target: https://euronodes.com/?utm_source=sponsor&utm_campaign=postgrest .. container:: img-dark diff --git a/docs/integrations/greenplum.rst b/docs/integrations/greenplum.rst index c8f02242e..d8d636671 100644 --- a/docs/integrations/greenplum.rst +++ b/docs/integrations/greenplum.rst @@ -1,6 +1,6 @@ Greenplum ######### -`Greenplum `_ has been reported to work by adding ``LOGIN`` to the :ref:`anonymous and user roles `. +`Greenplum `_ has been reported to work by adding ``LOGIN`` to the :ref:`anonymous and user roles `. For more details, see https://github.com/PostgREST/postgrest/issues/2021.