diff --git a/.github/workflows/sitegen.yml b/.github/workflows/sitegen.yml index b761591..5e68cb6 100644 --- a/.github/workflows/sitegen.yml +++ b/.github/workflows/sitegen.yml @@ -23,14 +23,14 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.11' - name: Install dependencies run: python3 -m pip install -r ./requirements.txt @@ -39,11 +39,11 @@ jobs: run: pelican content - name: Setup Pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v3 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 with: path: 'output' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2 diff --git a/pelicanconf.py b/pelicanconf.py index 1a1b8c5..9da8be4 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -2,13 +2,25 @@ # -*- coding: utf-8 -*- # import datetime +import pelican.themes.webosbrew +from pelican.plugins import webassets +from webassets.cache import MemoryCache + AUTHOR = 'webosbrew.org' SITENAME = 'webOS Homebrew Project' SITEURL = '' SOURCEURL = 'https://github.com/webosbrew/webosbrew.github.io/blob/main/content' THEME = 'webosbrew' -WEBASSETS_SOURCE_PATHS = ['static'] +THEME_STATIC_PATHS = [pelican.themes.webosbrew.static_dir()] +WEBASSETS_SOURCE_PATHS = [pelican.themes.webosbrew.scss_dir()] + +PLUGINS = [webassets] + +WEBASSETS_CONFIG = [ + ("CACHE", MemoryCache(1024)), + ("PYSCSS_LOAD_PATHS", [pelican.themes.webosbrew.scss_dir()]), +] PATH = 'content' diff --git a/requirements.txt b/requirements.txt index 21f7c8e..2baeabc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,10 @@ -pelican~=4.7 -pelican-webassets~=2.0.0 -markdown~=3.3.6 +pelican~=4.8 +pelican-webassets~=2.0 +markdown~=3.5.1 ghp-import~=2.0 webassets~=2.0 -pyscss~=1.3.7 cssmin~=0.2.0 livereload~=2.6.3 -invoke~=1.6.0 +invoke~=2.2.0 +git+https://github.com/Kronuz/pyScss.git@73559d047706ccd4593cf6aa092de71f35164723#egg=pyscss git+https://github.com/webosbrew/pelican-theme-webosbrew.git@v1.0.10#egg=pelican-theme-webosbrew