Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Refactor for Pelican 4 + inline minification #3

Merged
merged 21 commits into from
Feb 19, 2022
Merged

Conversation

ysard
Copy link
Contributor

@ysard ysard commented Feb 18, 2022

Hi, in this PR I purpose some changes and refactoring to make this plugin compatible with Pelican 4 (Python3).
I also added the possibility to minify the css and the JS included in the HTML pages.

In short:

  • Ability to minify inline JS & CSS
  • Refactor for Pelican 4.x
  • Drop Python 2.7 support
  • Fix CSS minification fail on embedded SVG in CSS rules (url() func)

I am open to any proposal, it would be welcome to have an update on pypi following this.
As well as an addition to the new official listing https://github.com/pelican-plugins/ via a PR on https://github.com/getpelican/pelican-plugins

Thanks for reading.

@ysard ysard mentioned this pull request Feb 18, 2022
@dArignac dArignac self-requested a review February 19, 2022 09:03
@dArignac dArignac self-assigned this Feb 19, 2022
Copy link
Owner

@dArignac dArignac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ysard,

thanks a lot for the PR - great enhancement!
I'll merge it as well as your other one (thanks for that as well!).
Afterwards I have to adjust the release approach, as the repo is 8 years old. A release of 0.2.0 will follow soon.

@dArignac dArignac merged commit d904fc9 into dArignac:master Feb 19, 2022
@ysard
Copy link
Contributor Author

ysard commented Feb 19, 2022

Hi, thank you for acceptance and for the support of this old (but always useful!) project!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants