aboutsummaryrefslogtreecommitdiffstats
path: root/docs/builder.sh
blob: dc2937677d7b86c4c6828e990f8073871ac76b24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash

# Ensure Poetry is accessible in the current session
export PATH=“/opt/render/project/poetry/bin:$PATH# Check for Poetry, and install it if not found
if ! command -v poetry &> /dev/null; then
    echo “Poetry not found. Installing Poetry...”
    curl -sSL https://install.python-poetry.org | python3 -
    # Add Poetry to PATH for the current session
    export PATH=$HOME/.local/bin:$PATHelse
    echo “Poetry found: $(poetry --version)fi

# Check that Poetry was successfully installed and is working
poetry --version

if [ $? -ne 0 ]; then
    echo “Poetry installation failed.”
    exit 1
fi

# Install dependencies using Poetry
echo “Running poetry install...”

poetry install --with docs

# Run the build process for mkdocs
echo “Running build process with Yarn...”

poetry run mkdocs build