@@ -23,14 +23,15 @@ repositories into a unified documentation site.
2323
2424## Working with the Documentation System Locally
2525
26- For more substantial changes — like adding new pages, restructuring content, or
27- working on the aggregation system itself — you'll want to set up the
26+ For more substantial changes, ( adding new pages, restructuring content, or
27+ working on the aggregation system itself) you will want to set up the
2828documentation system locally.
2929
3030### Prerequisites
3131
3232- Python 3.x
3333- pnpm (for VitePress)
34+ - virtualenv (optional)
3435- Git
3536
3637### Step 1: Clone the Repository
@@ -49,6 +50,32 @@ pnpm install
4950This installs VitePress and other Node.js dependencies needed to build the
5051documentation site.
5152
53+ :::tip Problems with installing Python Dependencies?
54+
55+ Potentially, your Linux distribution or other operating system might forbid you from installing
56+ python dependencies system wide.
57+
58+ To go around this, it is wise practice to use a [ virtual environment] ( https://www.w3schools.com/python/python_virtualenv.asp ) .
59+
60+ We use [ ` virtualenv ` ] ( https://virtualenv.pypa.io/en/latest/ ) . Install virtualenv via your distributions package manager
61+ or a method appropriate for your operating system.
62+
63+ Then, create the virtual environment and activate it.
64+
65+ ``` bash
66+ virtualenv .venv && source .venv/bin/activate
67+ ```
68+
69+ afterwards, continue working like normal.
70+
71+ In the end, you can deactivate the environment using
72+
73+ ``` bash
74+ deactivate
75+ ```
76+ or closing the Terminal.
77+ :::
78+
5279### Step 3: Aggregate Documentation
5380
5481#### From Remote Repositories (Production)
@@ -62,7 +89,7 @@ make aggregate
6289This fetches documentation from the configured repositories at their locked
6390commit hashes.
6491
65- #### GitHub API token
92+ :::info Add A GitHub API Token To Counter Rate Limiting
6693
6794` make aggregate ` also fetches every release from ` gardenlinux/gardenlinux ` via
6895the GitHub Releases API to generate per-release note pages and to validate
@@ -74,6 +101,11 @@ export GITHUB_TOKEN=$(gh auth token)
74101make aggregate
75102```
76103
104+ ::: tip
105+ You can add the ` export ` statement to you Shell's configuration file to avoid having to re-export it in different sessions.
106+
107+ :::
108+
77109#### From Local Repositories (Development)
78110
79111For local development, use ` repos-config.local.json ` with ` file:// ` URLs:
0 commit comments