Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from getpelican:master #32

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e23400f
Adds optional linking of sidebar images.
dmark Nov 6, 2021
5aabea7
remove missing Nuja theme
avaris Apr 30, 2023
2c54ecc
add preview site build script and github actions workflow
avaris Apr 30, 2023
fa82822
CI: Sync built preview site to pelicanthemes.com
justinmayer Jul 23, 2023
d87372a
Merge pull request #748 from avaris/preview-site
justinmayer Jul 23, 2023
7a1b9bf
Remove migrated or dead sites
ployt0 Aug 6, 2023
8367ab4
Merge pull request #753 from ployt0/master-1
justinmayer Aug 7, 2023
28ea46f
add 'Haerwu' theme
hrw Aug 14, 2023
ea6b6ef
Merge pull request #758 from hrw/master
justinmayer Aug 16, 2023
ae0af43
Add Piccolo as submodule (#737)
iamjameswalters Aug 18, 2023
b54f515
add screenshot of graymill
rilysh Aug 19, 2023
8e2d9a3
Add screenshot of graymill theme (#759)
justinmayer Aug 19, 2023
fdf5995
Bumped jquery version to 3.7.1
dhjensen Sep 4, 2023
0ef81d4
Merge pull request #762 from dhjensen/jquery
justinmayer Sep 4, 2023
9e04d32
add workarounds to generate previews for some more themes
avaris Oct 29, 2023
d01c114
Merge pull request #716 from dmark/adds-links-to-sidebar-images
justinmayer Nov 12, 2023
8909649
Merge pull request #766 from avaris/fix-broken-theme-previews
justinmayer Dec 12, 2023
76fafa1
add mastodon icon for graymill theme
martybarlow-itstack Mar 2, 2024
697739a
Merge pull request #774 from martinbarlow/mastdon
justinmayer Mar 2, 2024
3b15583
Add foot note in the graymill theme
May 5, 2024
ecb1f9c
Merge pull request #775 from jdamu/master
justinmayer May 5, 2024
8649bd3
Gum: Add support for injecting markup to footer via overriding extra_…
slinkp May 8, 2024
14813b2
Merge pull request #776 from slinkp/slinkp/add-extra-footer-template
justinmayer May 9, 2024
cb986aa
Remove archived Casper2Pelican theme
justinmayer Jul 7, 2024
74fb998
Document how to generate theme previews locally
justinmayer Jul 28, 2024
ef37632
Add 404 Page when theme not found (#777)
mr4tt Jul 30, 2024
b8a8478
Remove archived Casper2Pelican theme, round 2
justinmayer Jul 30, 2024
be9cd37
Link to bare pelicanthemes.com domain on 404 page
justinmayer Jul 30, 2024
a46e5a7
Add Supersimple theme as submodule (#520)
hlrossato Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/build-preview-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Build pelican-themes preview site

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
- name: Checkout pelican
uses: actions/checkout@v3
with:
repository: getpelican/pelican
path: _pelican
fetch-depth: 1
- name: Setup python-3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Cache Playwright browsers
uses: actions/cache@v3
with:
path: ~/.cache/ms-playwright/
key: ${{ runner.os }}-browsers
- name: Install pelican, plugins and shot-scraper
run: pip install pelican[markdown] pelican-webassets cssmin shot-scraper
- name: Setup shot-scraper
run: shot-scraper install
- name: Generate output
run: python build-theme-previews.py

# Rsync to server hosting pelicanthemes.com
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: unnecessary
- name: Adding known hosts
run: ssh-keyscan -p 22 -H pelicanthemes.com >> ~/.ssh/known_hosts
- name: Deploy with rsync
run: rsync -avz ./_output/ [email protected]:~/roles/caddy/sites/pelicanthemes.com/

# Deploy to Github Pages
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: '_output'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ Thumbs.db
*~
.swp
.*.swp

# Preview artifacts #
#####################
_pelican
_output
15 changes: 9 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@
[submodule "alchemy"]
path = alchemy
url = https://github.com/nairobilug/pelican-alchemy.git
[submodule "Nuja"]
path = Nuja
url = https://github.com/allenskd/Nuja.git
[submodule "pjport"]
path = pjport
url = https://github.com/xm3ron/pjport.git
Expand All @@ -155,9 +152,6 @@
[submodule "Flex"]
path = Flex
url = https://github.com/alexandrevicenzi/Flex.git
[submodule "Casper2Pelican"]
path = Casper2Pelican
url = https://github.com/abr4xas/Casper2Pelican.git
[submodule "octopress"]
path = octopress
url = https://github.com/MrSenko/pelican-octopress-theme
Expand Down Expand Up @@ -224,6 +218,9 @@
[submodule "jojo"]
path = jojo
url = https://github.com/dokelung/jojo.git
[submodule "supersimple"]
path = supersimple
url = https://github.com/hlrossato/supersimple.git
[submodule "resume"]
path = resume
url = https://github.com/suheb/resume.git
Expand Down Expand Up @@ -261,3 +258,9 @@
[submodule "blue-penguin-dark"]
path = blue-penguin-dark
url = https://github.com/tcarwash/blue-penguin-dark.git
[submodule "pelican-haerwu-theme"]
path = pelican-haerwu-theme
url = https://github.com/hrw/pelican-haerwu-theme.git
[submodule "Piccolo"]
path = piccolo
url = https://github.com/iamjameswalters/piccolo.git
1 change: 0 additions & 1 deletion Casper2Pelican
Submodule Casper2Pelican deleted from 2e17c1
1 change: 0 additions & 1 deletion Nuja
Submodule Nuja deleted from a58fd6
16 changes: 16 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,19 @@ that any edits you make are made to the copy stored in
``~/pelican-themes/theme-name``. Any changes made to
files stored in your site's ``output`` directory will be deleted the next
time you generate your site.

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:

.. code-block:: sh

python -m pip install pelican[markdown] shot-scraper
mkdir _pelican
cp -r ~/projects/pelican/samples _pelican/
python build-theme-previews.py
Loading