My embedded Linux developer's blog built with Pelican, an static site generator written in Python. The content of this blog is written in reStructuredText.
Use commands below to install required Python modules to build static pages and to push them on github:
# To pull submodules' sources
git submodule sync
git submodule update --init
cd pelican-themes && git submodule update --init --recursive -- blue-penguin && cd -
cd pelican-plugins && git submodule update --init --recursive -- assets sitemap && cd -
# To create a Python3 virtual environment
python3 -m venv venv
. venv/bin/activate
# To install required Python modules
pip install -r requirements.txt
# To view generated files before to push them, once the simple built-in web
# service has been started, the site can be preview at:
# http://http://localhost:8000/
pelican [-D] content -o output -s pelicanconf.py
pelican -l content -o output -s pelicanconf.py -p 8000
# To generate static pages should be published
pelican [-D] content -o output -s publishconf.py
# To publish pages to gh-pages
ghp-import -n output -m "[skip ci] Update pages"
git push origin gh-pages
# To quit the Python3 virtual environment
deactivate
Use the following command to validate the circleci pipeline:
podman run --rm --security-opt seccomp=unconfined --security-opt label=disable -v $(pwd):/data circleci/circleci-cli:alpine config validate /data/.circleci/config.yml --token $TOKEN