Skip to content

Commit 6adf4bd

Browse files
authored
Add nightly binaries link to docs (#3529)
* add conditional set of links * add conditional set of links
1 parent 785cc5d commit 6adf4bd

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/get-started/installation.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ sidebar_position: 2
55

66
import Tabs from '@theme/Tabs';
77
import TabItem from '@theme/TabItem';
8+
import { useDocsVersion } from '@docusaurus/theme-common/internal';
9+
10+
export const RenderIf = ({children, condition}) => (
11+
<>
12+
{condition && children}
13+
</>
14+
);
815

916
Quickwit compiles to a single binary and we provide different methods to install it:
1017

@@ -21,6 +28,21 @@ Support of aarch64 is currently experimental.
2128

2229
## Download
2330

31+
<RenderIf condition={useDocsVersion().version == 'current'}>
32+
33+
Version: nightly -
34+
License: [AGPL V3](https://github.com/quickwit-oss/quickwit/blob/main/LICENSE.md) -
35+
Downloads `.tar.gz`:
36+
- [Linux ARM64](https://github.com/quickwit-oss/quickwit/releases/download/nightly/quickwit-nightly-aarch64-unknown-linux-gnu.tar.gz)
37+
- [Linux x86_64](https://github.com/quickwit-oss/quickwit/releases/download/nightly/quickwit-nightly-x86_64-unknown-linux-gnu.tar.gz)
38+
- [macOS aarch64](https://github.com/quickwit-oss/quickwit/releases/download/nightly/quickwit-nightly-aarch64-apple-darwin.tar.gz)
39+
- [macOS x86_64](https://github.com/quickwit-oss/quickwit/releases/download/nightly/quickwit-nightly-x86_64-apple-darwin.tar.gz)
40+
41+
</RenderIf>
42+
43+
<!-- Bellow is the set of links to edit when a new version is released -->
44+
<RenderIf condition={useDocsVersion().version != 'current'}>
45+
2446
version: 0.6.0 - [Release notes](https://github.com/quickwit-oss/quickwit/releases/tag/v0.6.0) - [Changelog](https://github.com/quickwit-oss/quickwit/blob/main/CHANGELOG.md)
2547
License: [AGPL V3](https://github.com/quickwit-oss/quickwit/blob/main/LICENSE.md)
2648
Downloads `.tar.gz`:
@@ -29,6 +51,7 @@ Downloads `.tar.gz`:
2951
- [macOS aarch64](https://github.com/quickwit-oss/quickwit/releases/download/v0.6.0/quickwit-v0.6.0-aarch64-apple-darwin.tar.gz)
3052
- [macOS x86_64](https://github.com/quickwit-oss/quickwit/releases/download/v0.6.0/quickwit-v0.6.0-x86_64-apple-darwin.tar.gz)
3153

54+
</RenderIf>
3255

3356
Check out the available builds in greater detail on [GitHub](https://github.com/quickwit-oss/quickwit/releases)
3457

0 commit comments

Comments
 (0)