-
Notifications
You must be signed in to change notification settings - Fork 92
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
Python theme packaging #97
base: master
Are you sure you want to change the base?
Conversation
Fetch from upstream
fetch from upstream again
fetch from upstream 2019
Codecov Report
@@ Coverage Diff @@
## master #97 +/- ##
=======================================
Coverage 97.52% 97.52%
=======================================
Files 21 21
Lines 4205 4205
Branches 40 40
=======================================
Hits 4101 4101
Misses 104 104 Continue to review full report at Codecov.
|
'minchin.pelican.plugins.image_process>=1.0.1, !=1.1.2', | ||
'minchin.pelican.jinja_filters', | ||
# requires asset plugin, bundle? -- https://github.com/getpelican/pelican-plugins/tree/master/assets | ||
], | ||
extras_require={ | ||
':python_version < "3.4"': ['pathlib2'], | ||
'dev': ['minchin.releaser', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The minchin
package is your personal stuff, I suppose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol, no that's mine :)
This seems to be copied from my seafoam Pelican theme. You'll want to change it a little more to be specific to your project requirements. Also, you may want to check out the project's # seafoam/__init__.py
from pathlib import Path
def get_path():
"""
Shortcut for users whose theme is not next to their pelicanconf.py.
Returns:
str: filepath to folder containing theme
"""
# Theme directory is defined as our parent directory
return str(Path(__file__).resolve().parent) This way, in your # pelicanconf.py for your generated site
import seafoam
THEME = seafoam.get_path() |
This MR should make the pelican theme accessible via pypi.org , where many python packages are hosted already
closes #82