-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation - Intro and Installation (#202)
* documentation for tirith installation * corrected the grammartical mistakes Closes #170
- Loading branch information
Showing
13 changed files
with
214 additions
and
123 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
documentation/docs/tirith-installation/developer-mode-installation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
id: developer-mode-installation | ||
title: Installation for Developers (Using Docker and Dev Containers in VS Code) | ||
sidebar_label: Developer Mode Setup | ||
description: This documentation overviews you about the introduction of the Tirith software installation on your respective operating system. | ||
keywords: | ||
- Tirith | ||
- StackGuardian | ||
# url: https://www.tirith.com/support/docs/getting-started-with-tirith | ||
site_name: Tirith | ||
slug: developer-mode-installation/ | ||
--- | ||
|
||
<script type="application/ld+json" | ||
dangerouslySetInnerHTML={{ __html: JSON.stringify({ | ||
"@context": "https://schema.org", | ||
"@type": "BreadcrumbList", | ||
"itemListElement": [{ | ||
"@type": "ListItem", | ||
"position": 1, | ||
"name": "Home", | ||
"item": "https://www.lambdatest.com" | ||
},{ | ||
"@type": "ListItem", | ||
"position": 2, | ||
"name": "Support", | ||
"item": "https://www.lambdatest.com/support/docs/" | ||
},{ | ||
"@type": "ListItem", | ||
"position": 3, | ||
"name": "Installation", | ||
"item": "https://www.lambdatest.com/support/docs/developer-mode-installation/" | ||
}] | ||
}) | ||
}}></script> | ||
For developers who want to contribute to Tirith, setting up a [Dev Container in Visual Studio Code (VS Code)](https://code.visualstudio.com/docs/devcontainers/create-dev-container#_create-a-devcontainerjson-file) offers a robust development environment. This approach ensures that all dependencies and configurations are consistent across different setups. | ||
|
||
## Prerequisite | ||
- Make sure your machine has [Python](https://www.python.org/downloads/) and [pip](https://pip.pypa.io/en/stable/installation/) installed. | ||
- Install [Git](https://git-scm.com/downloads) on your machine. | ||
- Basic knowledge on [Docker](https://docs.docker.com/engine/install/) is required. | ||
|
||
## Steps to Install Tirith | ||
|
||
### Step 1: Clone the Repository | ||
Clone the Tirith repository from GitHub to get the latest code: | ||
|
||
```bash | ||
git clone https://github.com/StackGuardian/tirith.git | ||
cd tirith | ||
``` | ||
|
||
### Step 2: Set Up Docker | ||
Ensure [Docker](https://docs.docker.com/engine/install/) is installed and running on your machine. You can manage Docker using Docker Desktop or the command-line interface (CLI). Docker allows you to run Tirith within isolated containers, preventing any dependency conflicts with your local system. | ||
|
||
### Step 3: Open the Project in VS Code | ||
- Launch Visual Studio Code and open the cloned repository folder. | ||
- Open the Command Palette by pressing `Ctrl+Shift+P` (or `Cmd+Shift+P` on macOS). | ||
- Search for **Dev Containers: Rebuild and Reopen in Container** and select this option. | ||
- VS Code will use the `devcontainer.json` configuration file within the project to build a containerized environment for Tirith. This configuration file contains settings for the development environment, such as necessary extensions and dependencies. Building the container may take a few minutes. | ||
- Once the container is running, you’ll have a fully configured development environment within Docker, optimized for Tirith development. |
85 changes: 85 additions & 0 deletions
85
documentation/docs/tirith-installation/manual-installation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
--- | ||
id: manual-installation | ||
title: Manual Installation (Using a Python Virtual Environment) | ||
sidebar_label: Manual Setup | ||
description: This documentation overviews you about the introduction of the Tirith software installation on your respective operating system. | ||
keywords: | ||
- Tirith | ||
- StackGuardian | ||
# url: https://www.tirith.com/support/docs/getting-started-with-tirith | ||
site_name: Tirith | ||
slug: manual-installation/ | ||
--- | ||
|
||
<script type="application/ld+json" | ||
dangerouslySetInnerHTML={{ __html: JSON.stringify({ | ||
"@context": "https://schema.org", | ||
"@type": "BreadcrumbList", | ||
"itemListElement": [{ | ||
"@type": "ListItem", | ||
"position": 1, | ||
"name": "Home", | ||
"item": "https://www.lambdatest.com" | ||
},{ | ||
"@type": "ListItem", | ||
"position": 2, | ||
"name": "Support", | ||
"item": "https://www.lambdatest.com/support/docs/" | ||
},{ | ||
"@type": "ListItem", | ||
"position": 3, | ||
"name": "Installation", | ||
"item": "https://www.lambdatest.com/support/docs/manual-installation/" | ||
}] | ||
}) | ||
}}></script> | ||
If you prefer a manual setup, especially if you want to modify Tirith’s codebase directly, follow these steps to install Tirith in a virtual Python environment. | ||
|
||
## Prerequisite | ||
- Make sure your machine has [Python](https://www.python.org/downloads/) and [pip](https://pip.pypa.io/en/stable/installation/) installed. | ||
- Install [Git](https://git-scm.com/downloads) on your machine. | ||
|
||
## Steps to Install Tirith | ||
|
||
### Step 1: Clone the Repository | ||
Clone the Tirith repository from GitHub to get the latest code: | ||
|
||
```bash | ||
git clone https://github.com/StackGuardian/tirith.git | ||
cd tirith | ||
``` | ||
|
||
### Step 2: Set Up a Python Virtual Environment | ||
Setting up a virtual environment isolates Tirith’s dependencies, preventing potential conflicts with other projects on your machine. | ||
|
||
Create a Virtual Environment: | ||
|
||
```bash | ||
virtualenv .venv | ||
``` | ||
|
||
Activate the Virtual Environment: | ||
|
||
```bash | ||
source .venv/bin/activate | ||
``` | ||
|
||
This command activates the virtual environment, ensuring all packages you install are contained within this environment. | ||
|
||
### Step 3: Install Tirith | ||
With the virtual environment activated, install Tirith: | ||
|
||
```bash | ||
pip install -e . | ||
``` | ||
The -e flag installs Tirith in `editable` mode, allowing you to make modifications to the codebase without needing to reinstall the package. | ||
|
||
### Step 4: Verify Installation | ||
To confirm Tirith is installed and running properly, check its version: | ||
|
||
```bash | ||
tirith --version | ||
``` | ||
You should see a version number output, verifying that Tirith is set up correctly. | ||
<br /> | ||
<img loading="lazy" src={require('../../assets/installation/tirith-version.png').default} alt="tirith-version" className="doc_img"/> |
58 changes: 58 additions & 0 deletions
58
documentation/docs/tirith-installation/quick-intallation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
id: quick-installation | ||
title: Quick Installation for Users | ||
sidebar_label: Quick Setup | ||
description: This documentation overviews you about the introduction of the Tirith software installation on your respective operating system. | ||
keywords: | ||
- Tirith | ||
- StackGuardian | ||
# url: https://www.tirith.com/support/docs/getting-started-with-tirith | ||
site_name: Tirith | ||
slug: quick-installation/ | ||
--- | ||
|
||
<script type="application/ld+json" | ||
dangerouslySetInnerHTML={{ __html: JSON.stringify({ | ||
"@context": "https://schema.org", | ||
"@type": "BreadcrumbList", | ||
"itemListElement": [{ | ||
"@type": "ListItem", | ||
"position": 1, | ||
"name": "Home", | ||
"item": "https://www.lambdatest.com" | ||
},{ | ||
"@type": "ListItem", | ||
"position": 2, | ||
"name": "Support", | ||
"item": "https://www.lambdatest.com/support/docs/" | ||
},{ | ||
"@type": "ListItem", | ||
"position": 3, | ||
"name": "Installation", | ||
"item": "https://www.lambdatest.com/support/docs/quick-installation/" | ||
}] | ||
}) | ||
}}></script> | ||
If you simply want to install and start using Tirith, this option provides a fast installation process with minimal setup. Perfect for end users and non-developers who only need basic functionality. | ||
|
||
## Prerequisite | ||
- Make sure your machine has [Python](https://www.python.org/downloads/) and [pip](https://pip.pypa.io/en/stable/installation/) installed. | ||
- Install [Git](https://git-scm.com/downloads) on your machine. | ||
|
||
## Steps to Install Tirith | ||
|
||
### Step 1: Install using the `pip` command | ||
Run the following command in your terminal to download Tirith directly from the GitHub repository and install it on your local system. This command ensures that you have the latest version. | ||
|
||
```bash | ||
pip install git+https://github.com/StackGuardian/tirith.git | ||
``` | ||
|
||
|
||
### Step 2: Verify Installation | ||
Once installed, verify that Tirith is working by checking its version. You should see a version number (e.g., 1.0.0-beta.12) indicating successful installation. | ||
```bash | ||
tirith --version | ||
``` | ||
<br /> | ||
<img loading="lazy" src={require('../../assets/installation/tirith-version.png').default} alt="tirith-version" className="doc_img"/> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters