Skip to content

Commit a4736a9

Browse files
committed
Added new docs
1 parent f94b713 commit a4736a9

16 files changed

Lines changed: 154 additions & 51 deletions

File tree

config/_default/menus/menus.en.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[[docs]]
2-
name = "Prologue"
2+
name = "Quick Start"
33
weight = 10
4-
identifier = "prologue"
5-
url = "/docs/prologue/"
4+
identifier = "Quick Start"
5+
url = "/docs/quick-start/"
66

77
[[docs]]
88
name = "Help"
@@ -32,20 +32,20 @@
3232
name = "Get Started"
3333
weight = 10
3434
identifier = "get-started"
35-
url = "/docs/prologue/introduction/"
35+
url = "/docs/quick-start/introduction/"
3636

3737
[[main]]
38-
name = "Quick Start"
38+
name = "Install"
3939
weight = 20
40-
identifier = "quick-start"
41-
url = "/docs/prologue/quick-start/"
40+
identifier = "install"
41+
url = "/docs/quick-start/install/"
4242
parent = "get-started"
4343

4444
[[main]]
45-
name = "Install"
45+
name = "Introduction"
4646
weight = 30
47-
identifier = "install"
48-
url = "/docs/prologue/install/"
47+
identifier = "introduction"
48+
url = "/docs/quick-start/introduction"
4949
parent = "get-started"
5050

5151
[[main]]

content/docs/development/_index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: "Development"
3+
description: "Documentation covering the development of Rift"
4+
lead: ""
5+
date: 2020-10-06T08:49:15+00:00
6+
lastmod: 2020-10-06T08:49:15+00:00
7+
draft: false
8+
images: []
9+
weight: 300
10+
---

content/docs/development/setup.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
title: "Setup"
3+
description: "Setting up Rift's development environment."
4+
lead: "Setting up Rift's development environment."
5+
draft: false
6+
images: []
7+
menu:
8+
docs:
9+
parent: "development"
10+
weight: 310
11+
toc: true
12+
---
13+
14+
## Requirements
15+
16+
- CMake
17+
18+
On Linux:
19+
- LLVM 14 or higher
20+
21+
## Cloning Rift
22+
23+
First of all, you will need to clone the project from [{{<projectRepo>}}]({{<projectRepo>}}).
24+
25+
There are many ways to do this, but from the terminal you can for example run:
26+
27+
`git clone {{<projectRepo>}}`
28+
29+
### Initialize submodules
30+
It is essential we also initialize all submodules (Rift's dependencies).
31+
32+
To do so, run the following command on the project's root folder:
33+
34+
`git submodule update --init --recursive`
35+
36+
### Build Rift's LLVM
37+
38+
Rift uses a custom build process for LLVM which comes packed conveniently with the project, but requires manual setup.
39+
40+
This build can be easily triggered running the script `Programs/SetupLLVM.bat` (or `Programs/SetupLLVM.sh` on MacOS/Linux).
41+
42+
Sit and get comfortable, this might take a while.
43+
44+
Optionally, you could use a pre-built LLVM installation instead on MacOS or Linux. Not on Windows however, since its installation of LLVM does not contain certain elements that are required for us to build Rift.
45+
46+
## Configure & Build
47+
48+
Any CMake workflow you might like should work fine if you followed the previous steps.
49+
50+
If you for example were to use commands, you could first run `cmake -S . -B Build` to configure the project, and then `cmake --build Build` to build it.

content/docs/help/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: "Help"
3-
description: "Help Doks."
3+
description: "Help about Rift"
44
lead: ""
55
date: 2020-10-06T08:49:15+00:00
66
lastmod: 2020-10-06T08:49:15+00:00
77
draft: false
88
images: []
9-
weight: 600
9+
weight: 200
1010
---

content/docs/help/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ images: []
99
menu:
1010
docs:
1111
parent: "help"
12-
weight: 630
12+
weight: 230
1313
toc: true
1414
---

content/docs/help/how-to-update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ images: []
99
menu:
1010
docs:
1111
parent: "help"
12-
weight: 610
12+
weight: 210
1313
toc: true
1414
---

content/docs/help/troubleshooting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ date: 2020-11-12T15:22:20+01:00
66
lastmod: 2020-11-12T15:22:20+01:00
77
draft: false
88
images: []
9-
menu:
9+
menu:
1010
docs:
1111
parent: "help"
12-
weight: 620
12+
weight: 220
1313
toc: true
1414
---

content/docs/prologue/install.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

content/docs/prologue/quick-start.md

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title : "Prologue"
3-
description: "Prologue Doks."
2+
title : "Quick Start"
3+
description: ""
44
lead: ""
55
date: 2020-10-06T08:48:45+00:00
66
lastmod: 2020-10-06T08:48:45+00:00

0 commit comments

Comments
 (0)