| doc | ||
| .gitignore | ||
| pylive.py | ||
| README.md | ||
| requirements.txt | ||
pylive
Static HTML page generator written in Python
(Yes, I want to rewrite it in Rust when I have more spare time left. ;-))
Basic principles are:
- Blog-focused: Allow for writing new posts easily in Markdown format
- Create pure static HTML pages that can be put everywhere
- Allow users to fully personalize their website by using simple templates
- Support for static files (that are not newly rendered every time)
Dislaimer: I wrote this generator to create a site that fits my needs. It might not fit your needs but you are free to use this generator as a basis and add your modifications.
Installation
python3 -m venv venv
source venv/bin/activate
[ -f requirements.txt ] && pip install -r requirements.txt
Update packages
[!NOTE]
Updating installed pip packages to new versions can break your
installation when dependencies cannot be met. As long as you do not modify your
requirements.txt file you can simply set up a new virtual environment with the
old versions as described above in the Installation section.
To update existing pip packages to their newest version you can use the
following commands. Make sure that you have activated the virtual environment
(i.e. source the activate file in the venv directory). Then you can update
the installed packages.
pip install --upgrade pip
for p in $(cat requirements.txt | cut -d "=" -f 1); do pip install --upgrade $p; done
When everything works make sure that you update your requirements file:
pip freeze >requirements.txt