Add configurable theme repo URL for SSH/HTTPS flexibility

- Default to SSH for local development
- Use HTTPS in GitLab CI via THEME_REPO_URL env var
- Maintain compatibility for both environments
This commit is contained in:
Russell Ballestrini 2025-10-10 14:13:19 -04:00
parent ca7d3e2162
commit e90db7eb3f
2 changed files with 4 additions and 1 deletions

View file

@ -6,6 +6,7 @@ build:
stage: build
tags: ["build"]
script:
- export THEME_REPO_URL='https://github.com/russellballestrini/pelican-svbhack.git'
- make venv
- export THEME='pelican-themes/pelican-svbhack'
- export SITEURL='https://russell.ballestrini.net'

View file

@ -18,11 +18,13 @@ help:
@echo ' make devserver serve and regenerate together '
@echo ' '
THEME_REPO_URL ?= git@github.com:russellballestrini/pelican-svbhack.git
venv:
python3 -m venv venv
venv/bin/pip install -r requirements.txt
mkdir -p pelican-themes
cd pelican-themes && git clone git@github.com:russellballestrini/pelican-svbhack.git
cd pelican-themes && git clone $(THEME_REPO_URL)
venv/bin/pelican-themes -i pelican-themes/pelican-svbhack/
resume: