lucasvanhaaren / pelican-data-files Goto Github PK
View Code? Open in Web Editor NEWPelican plugin that allows to load data from files like Jekyll
License: MIT License
Pelican plugin that allows to load data from files like Jekyll
License: MIT License
Bootstrap CI-CD with features:
Hey there,
title says it all, maybe I overlooked something, but right now Pelican does not pick up changes in data files.
Before I can do something about this, I need a pointer to Pelican's internals / plugin API where to change that ๐บ
Cheers,
S1SYPHOS
Some features are broken in tasks.py
because of the wrong path :
PKG_NAME = "data-files"
must become PKG_NAME = "data_files"
And the fact that version tagging is not automated, block twine tasks while uploading new version of package :
Check if THEME
is filled in pelicanconf.py
.
If true, THEME value become the default for fetch param.
It avoids mentioning the theme when there is a great chance that it is the one we want.
TOML (Tom's Obvious Minimal Language) is a "config file format for humans". It is readable, unambiguous, and has a standardised format. It is also "designed to map unambiguously to a hash table". As such, it is a good choice for creating configuration or data files. Python 3.11 will release a TOML parser in the standard library.
Hey there,
for my next project I'm thinking about using your plugin - going through its code, I noticed line 75 in generators.py
: TODO check for duplicates (eg: profile.json and profile.yaml)
. I want to contribute to your plugin, and this seems an easy target ๐ In case of a duplicate, would you .. 1. log error and exit or 2. prefer one over the other - and if so, preferring by modified time seems reasonable, no?
What do you think?
Cheers
S1SYPHOS
It would be convenient to also support sub-directories similar to jekyl (https://jekyllrb.com/docs/datafiles/#subfolders).
For example: Files in the content/data/subdir/
directory would be accessible via the DATA_SUBDIR_
prefix variable in Jinja templates.
Add YAML file support for pelican-data-files.
Use pyyaml implementation.
Add some contribution help (CONTRIBUTING.md
, developer docs, ...) in order to follow open-source best practices and allow for new comers to be onboard the project smoothly and ease contributing.
Followed all instructions that you have laid out. I am using Pelican 4.7.1 and the error persists. I even created a fresh virtual environment just in case with the same result.
Provide samples for both themes and standalone websites usages.
โน๏ธ For now, orbelican was like a sample but I think it's better to have sample in the same repo to update both at time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.