Giter VIP home page Giter VIP logo

Comments (6)

seanh avatar seanh commented on September 28, 2024 2

Finished PR to add theme support: #3330

from pelican.

seanh avatar seanh commented on September 28, 2024 1

I've worked on a PR to add theme support and a couple of other things to the GitHub Actions workflow: seanh#1

Seems to work for my site: https://github.com/seanh/seanh.github.io/blob/1a760df43eb3cf9b668e06c77bf29fd60c00b683/.github/workflows/pelican.yml#L16.

I'll tidy it up soon (commit history is a mess) and send it as a PR to the Pelican project

from pelican.

justinmayer avatar justinmayer commented on September 28, 2024

Hey Jacob. I don’t believe any Pelican maintainers have experience with this workflow, which was kindly contributed by @seanh, and thus we are ill-equipped to assist with this question.

@seanh: Any thoughts?

from pelican.

seanh avatar seanh commented on September 28, 2024

Hi @Jacob-Stevens-Haas,

Unfortunately the shared workflow doesn't support themes yet, it's something I overlooked when writing the workflow. I've been meaning to send a PR to add a theme option but haven't got round to it yet.

In the meantime you could copy-paste the workflow that I use to deploy my own site, it does the same thing as the Pelican project's worklfow but supports a theme: https://github.com/seanh/seanh.github.io/blob/main/.github/workflows/pelican.yml

@justinmayer I think what the Pelican project's workflow needs is a theme option added to the inputs section at the top for the Git URL of a theme. Then, if a theme option is given, the workflow will need to clone the theme repo to a directory and pass the appropriate --theme path to the pelican command. Any THEME setting in the user's Pelican config file should be ignored (overridden by the --theme). For the --theme path the workflow should probably pass an absolute path to the directory where it cloned the theme, using a relative path will be unreliable since users can change the location of the settings file with the settings option.

from pelican.

Jacob-Stevens-Haas avatar Jacob-Stevens-Haas commented on September 28, 2024

Ah, thanks! Yeah, I ended up copying the workflow and adding steps to the build job. Pretty similar to what you had done, and I agree the CI theme should override pelicanconf.py/publishconf.py.

from pelican.

justinmayer avatar justinmayer commented on September 28, 2024

Above-mentioned PR has been merged. Thank you, Sean!

from pelican.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.