diff --git a/web/content/docs/userguide/basics/introduction/index.md b/web/content/docs/userguide/basics/introduction/index.md index 236603cea6a113cb78a158d747a3055bd948b095..85ec5b8bb3aef78baa6bb38ca6c070a09cf4abee 100644 --- a/web/content/docs/userguide/basics/introduction/index.md +++ b/web/content/docs/userguide/basics/introduction/index.md @@ -53,8 +53,11 @@ A straightforward way of installing OGS is via Python's [`pip`-tool](https://pac python -m venv .venv .\venv\Scripts\Activate.ps1 -# Install ogs' pip package +# Install latest ogs release ({{< ogs-last-release >}}) via pip: pip install ogs + +# OR: Install latest ogs master (weekly) via pip: +pip install --pre --index-url https://gitlab.opengeosys.org/api/v4/projects/120/packages/pypi/simple ogs ``` If you get errors when calling the `Activate.ps1` script you have to run the following command once: @@ -72,9 +75,11 @@ Set-Execution-Policy Unrestricted -Scope CurrentUser python -m venv .venv # or `python3 -m venv .venv` source .venv/bin/activate -# Install ogs' pip package +# Install latest ogs release ({{< ogs-last-release >}}) via pip: pip install ogs +# OR: Install latest ogs master (weekly) via pip: +pip install --pre --index-url https://gitlab.opengeosys.org/api/v4/projects/120/packages/pypi/simple ogs ``` </div> @@ -94,18 +99,6 @@ virtual environment, or add this path to your `PATH`-environment. Moreover, `pip You could also use [`pipx`](https://pypa.github.io/pipx/) for installation into an isolated environment. -<div class="note"> - -### Get current development version with `pip` - -The following command will download the latest development version: - -```bash -pip install --pre --index-url https://gitlab.opengeosys.org/api/v4/projects/120/packages/pypi/simple ogs -``` - -</div> - <div class='win'> <div class="note"> diff --git a/web/layouts/shortcodes/ogs-last-release.html b/web/layouts/shortcodes/ogs-last-release.html new file mode 100644 index 0000000000000000000000000000000000000000..8ff76d3d16b72ef09a8a5d26ce43371ea98436d2 --- /dev/null +++ b/web/layouts/shortcodes/ogs-last-release.html @@ -0,0 +1,4 @@ +{{- $mysection := site.GetPage "/releases/" -}} +{{- range first 1 $mysection.Pages -}} +{{- .Params.tag -}} +{{- end -}}