Pelican Generating Theme Previews

```выхлоп в ~/pelican-themes/_output/

Generating Theme Previews

Generating theme previews happens automatically via a GitHub Actions workflow, after which those previews are published to https://pelicanthemes.com. If you want to generate previews locally on your workstation, clone the Pelican repository (for example, to ~/projects/pelican/), clone this repository somewhere, change to the root directory of that clone, and follow these steps: python -m pip install pelican[markdown] shot-scraper mkdir _pelican cp -r ~/projects/pelican/samples _pelican/ python build-theme-previews.py

To generate Pelican theme previews locally, here is the step-by-step guide based on the repository instructions:

  1. Clone the Pelican repository to a location on your machine, for example:
git clone https://github.com/getpelican/pelican ~/projects/pelican/
  1. Clone the pelican-themes repository somewhere on your machine and change into its root directory:
git clone --recursive https://github.com/getpelican/pelican-themes ~/pelican-themes
cd ~/pelican-themes
  1. Install required Python packages:
python -m pip install pelican[markdown] shot-scraper
  1. Create a directory named _pelican inside your pelican-themes directory:
mkdir _pelican
  1. Copy the sample Pelican content from your cloned Pelican repo into this new directory:
cp -r ~/projects/pelican/samples _pelican/
  1. Run the theme preview generator script:
python build-theme-previews.py

This process will generate previews of the themes locally using the sample content, which is useful for inspecting or developing themes before pushing changes. The previews are also automatically generated via GitHub Actions and published at https://pelicanthemes.com, but the above steps allow offline, local preview generation.

Let me know if you want help setting this up on Debian or some troubleshooting guidance! 1


  1. https://github.com/getpelican/pelican-themes 

links

social