Fix build warnings to satisfy postgrest-docs-build
This commit is contained in:
committed by
Wolfgang Walther
parent
634a0c70b7
commit
881170b9ff
@@ -214,8 +214,10 @@ Our code requires a database role in the JWT. To add it you need to save the dat
|
|||||||
|
|
||||||
function (user, context, callback) {
|
function (user, context, callback) {
|
||||||
|
|
||||||
// Follow the documentations at http://postgrest.org/en/v7.0.0/configuration.html#role-claim-key
|
// Follow the documentations at
|
||||||
// to set a custom role claim on PostgREST and use it as custom claim attribute in this rule
|
// http://postgrest.org/en/latest/configuration.html#role-claim-key
|
||||||
|
// to set a custom role claim on PostgREST
|
||||||
|
// and use it as custom claim attribute in this rule
|
||||||
const myRoleClaim = 'https://myapp.com/role';
|
const myRoleClaim = 'https://myapp.com/role';
|
||||||
|
|
||||||
user.app_metadata = user.app_metadata || {};
|
user.app_metadata = user.app_metadata || {};
|
||||||
|
|||||||
@@ -288,4 +288,4 @@ texinfo_documents = [
|
|||||||
# -- Custom setup ---------------------------------------------------------
|
# -- Custom setup ---------------------------------------------------------
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
app.add_stylesheet('css/custom.css')
|
app.add_css_file('css/custom.css')
|
||||||
|
|||||||
+2
-2
@@ -18,7 +18,7 @@ If you use **FreeBSD**, then you can install PostgREST from the `official ports
|
|||||||
|
|
||||||
pkg install hs-postgrest
|
pkg install hs-postgrest
|
||||||
|
|
||||||
If you use **Arch Linux**, then you can install PostgREST from the `official repo <https://www.archlinux.org/packages/community/x86_64/postgrest>`_.
|
If you use **Arch Linux**, then you can install PostgREST from the `community repo <https://www.archlinux.org/packages/community/x86_64/postgrest>`_.
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ If you use Windows, you can install PostgREST using `Chocolatey <https://chocola
|
|||||||
When a pre-built binary does not exist for your system you can :ref:`build the project from source <build_source>`.
|
When a pre-built binary does not exist for your system you can :ref:`build the project from source <build_source>`.
|
||||||
|
|
||||||
Running
|
Running
|
||||||
~~~~~~~
|
-------
|
||||||
|
|
||||||
If you downloaded PostgREST from the release page, first extract the compressed file to obtain the executable.
|
If you downloaded PostgREST from the release page, first extract the compressed file to obtain the executable.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user