Use tabs to show different installation methods

This commit is contained in:
Laurence Isla
2021-11-08 12:27:22 -05:00
committed by GitHub
parent 7cc3d319bc
commit 8b74e14c4f
2 changed files with 34 additions and 17 deletions
+28 -10
View File
@@ -6,33 +6,51 @@ Installation
The release page has `pre-compiled binaries for Mac OS X, Windows, Linux and FreeBSD <https://github.com/PostgREST/postgrest/releases/latest>`_ . The release page has `pre-compiled binaries for Mac OS X, Windows, Linux and FreeBSD <https://github.com/PostgREST/postgrest/releases/latest>`_ .
The Linux binary is a static executable that can be run on any Linux distribution. The Linux binary is a static executable that can be run on any Linux distribution.
If you use **macOS Homebrew**, then you can install PostgREST from the `official repo <https://formulae.brew.sh/formula/postgrest>`_. You can also use your OS package manager.
.. code:: bash .. tabs::
.. group-tab:: Mac OSX
You can install PostgREST from the `Homebrew official repo <https://formulae.brew.sh/formula/postgrest>`_.
.. code:: bash
brew install postgrest brew install postgrest
If you use **FreeBSD**, then you can install PostgREST from the `official ports <https://www.freshports.org/www/hs-postgrest>`_. .. group-tab:: FreeBSD
.. code:: bash You can install PostgREST from the `official ports <https://www.freshports.org/www/hs-postgrest>`_.
.. code:: bash
pkg install hs-postgrest pkg install hs-postgrest
If you use **Arch Linux**, then you can install PostgREST from the `community repo <https://archlinux.org/packages/community/x86_64/postgrest>`_. .. group-tab:: Linux
.. code:: bash .. tabs::
.. tab:: Arch Linux
You can install PostgREST from the `community repo <https://archlinux.org/packages/community/x86_64/postgrest>`_.
.. code:: bash
pacman -S postgrest pacman -S postgrest
If you use **Nix**, then you can install PostgREST from nixpkgs. .. tab:: Nix
.. code:: bash You can install PostgREST from nixpkgs.
.. code:: bash
nix-env -i haskellPackages.postgrest nix-env -i haskellPackages.postgrest
If you use Windows, you can install PostgREST using `Chocolatey <https://community.chocolatey.org/packages/postgrest>`_ or `Scoop <https://scoop.sh>`_. .. group-tab:: Windows
.. code:: bash You can install PostgREST using `Chocolatey <https://community.chocolatey.org/packages/postgrest>`_ or `Scoop <https://scoop.sh>`_.
.. code:: bash
choco install postgrest choco install postgrest
scoop install postgrest scoop install postgrest
-1
View File
@@ -75,7 +75,6 @@ logins
lon lon
lt lt
lte lte
macOS
middleware middleware
misprediction misprediction
Mithril Mithril