https://github.com/tprrt/blog
My embedded Linux developer's blog
https://github.com/tprrt/blog
blog pelican python static-site
Last synced: 10 months ago
JSON representation
My embedded Linux developer's blog
- Host: GitHub
- URL: https://github.com/tprrt/blog
- Owner: tprrt
- License: gpl-3.0
- Created: 2020-04-28T13:06:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-06-11T13:00:02.000Z (about 1 year ago)
- Last Synced: 2025-08-01T18:04:49.386Z (11 months ago)
- Topics: blog, pelican, python, static-site
- Language: Python
- Homepage: https://tprrt.tupi.fr
- Size: 3.17 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
.. image:: https://circleci.com/gh/tprrt/blog.svg?style=svg
:alt: Circle badge
:target: https://app.circleci.com/pipelines/github/tprrt/blog
.. image:: https://sonarcloud.io/api/project_badges/measure?project=tprrt_blog&metric=alert_status
:alt: Quality Gate Status
:target: https://sonarcloud.io/dashboard?id=tprrt_blog
==============
My static blog
==============
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:
.. code-block:: bash
# 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:
.. code-block:: bash
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
.. _circleci: https://circleci.com