software-gardening / almanack

An open-source handbook of applied guidance and tools for sustainable software development and maintenance.
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Provide PR "live-previews" of rendered content for review #26

Open d33bs opened 2 months ago

d33bs commented 2 months ago

Working on enabling this through the Netlify GitHub integration.

Some notes:

Netlify does not support any version beyond Python 3.8 directly. Instead, one must use updated versions of Python through Brew installations. See more here: https://docs.netlify.com/configure-builds/available-software-at-build-time/

d33bs commented 1 month ago

This is now functional as of #29 with Netflify-based settings.

Relies on a build command:

brew install python@3.11 && /home/linuxbrew/.linuxbrew/opt/python@3.11/libexec/bin/pip install poetry && poetry env use 3.11 && poetry install && poetry run poe build-book

And publish directory:

src/almanac/_build/html

I'd like to explore storing the source code for this somehow within the repository before closing this issue.

d33bs commented 1 month ago

Experiencing errors with Python location through Netlify: 3:05:01 PM: bash: /home/linuxbrew/.linuxbrew/opt/python@3.11/libexec/bin/pip: /home/linuxbrew/.linuxbrew/opt/python@3.11/bin/python3.11: bad interpreter: No such file or directory

From here.