1
0
Fork 0
forked from github/pelican
Commit graph

45 commits

Author SHA1 Message Date
Justin Mayer
d43b786b30 Modernize code base to Python 3+ syntax
Replaces syntax that was relevant in earlier Python versions but that
now has modernized equivalents.
2020-04-27 09:45:31 +02:00
Deniz Turgut
46e1ec4f99 Fix legacy plugin loading 2020-04-17 21:15:25 +03:00
Deniz Turgut
ed1eca160e Remove py2-isms and avoid sys.path hacks 2019-12-01 18:33:11 +03:00
Deniz Turgut
a2053c34c3 Namespace plugin implementation
* Creates pelican.plugins
* Moves plugin related code under pelican.plugins
  * pelican.plugins.signals is now the location for signals, pelican.signals is kept
    for backwards compatibility
  * pelican.plugins._utils contains necessary bits for plugin discovery and loading.
    Logic from Pelican class is moved here. Pelican class now just asks for plugins
    and registers them
* Contains tests for old and new plugin loading
2019-12-01 17:55:19 +03:00
Deniz Turgut
c4b3ad58e8 remove plugins, update docs and update dependecies 2013-04-12 23:39:39 -04:00
Deniz Turgut
8710982d2a fixed related_posts plugin 2013-03-26 23:17:59 -04:00
Justin Mayer
3dcfe1846c Remove multi_part plugin
As part of our continuing effort to move plugins their own repository,
this plugin was moved to the pelican-plugins repository.
2013-03-25 10:03:41 -07:00
Ivan Dyedov
a3206dbe9e fix for #783 - AttributeError: 'NoneType' object has no attribute 'find' when using summary plugin with static files 2013-03-17 23:09:49 -04:00
Eric
11bdb437d2 added unique filtering and config limit param
I hacked some code from other modules and some quick googling, first time with py so this may need to be cleaned up.

The functionality is to have a config var in pythonconfig.py and to remove the duplicates `sorted(set())`
2013-03-03 22:18:59 -08:00
Eric
ccef2a6f13 Settings file is pelicanconf.py now. 2013-03-03 22:18:59 -08:00
yegle
60ae7aa667 Fix: hashlib.md5 funcition only accepts bytes as input 2013-03-03 21:49:42 -08:00
Bruno Binet
03f87057c2 update summary plugin so that tests are fixed (hopefully) 2013-03-01 12:59:26 +01:00
Bruno Binet
d68d2debf9 remove hardcoded values for SUMMARY_BEGIN_MARKER and SUMMARY_END_MARKER 2013-03-01 00:06:52 +01:00
Bruno Binet
ed907b4094 PageClass arg is useless in content_object_init 2013-03-01 00:06:05 +01:00
dave mankoff
3f4406dd6b support inline summary specification
update documentation

change summary cutoff to a plugin

remove backup file

fix 3.2 tests

update summary plugin initialization and documentation

update documentation

fix documentation formatting
2013-02-12 22:35:02 -05:00
Bruno Binet
ffdf8babbf Merge pull request #651 from traeblain/webasset-config
Update webassets plugin to allow user to pass configuration settings to webassets
2013-01-21 14:32:12 -08:00
Alexis Métaireau
149ca493e0 Annotate py3k code when needed. 2013-01-11 18:55:04 +01:00
Dirk Makowski
71995d5e1b Port pelican to python 3.
Stays compatible with 2.x series, thanks to an unified codebase.
2013-01-11 03:20:09 +01:00
Trae Blain
a71465217b Update webassets plugin to allow user to pass configuration settings to Webassets through their settings file. Also removed language about DEBUG not compiling CSS since as of at least webassets 0.8 this is no longer an issue. 2013-01-02 16:26:39 -06:00
Bruno Binet
c749671778 Reimplemented the gzip compression as a plugin.
Extending the Writer wasn't the complete answer because the static
generator also copies some files. Instead, I implemented the work as a
plugin that attaches to the finalized event.
2012-11-29 15:00:44 +01:00
Simon
f413a8da79 Change webassets configuration for relative urls.
Set the ASSET_URL to be relative to the 'theme/' url, which requires to use
{{ SITEURL }}/{{ ASSET_URL }} in the template and make it works with both
relative and absolute urls.
2012-11-20 23:42:52 +01:00
Simon
00d1ea6157 Use the new generator_init signal for the assets plugin.
This allows to have the assets_environment in all generators.
2012-11-20 23:42:41 +01:00
Simon
4cfb0cd24e Move Webassets in a plugin 2012-11-07 00:17:50 +01:00
Alexis Metaireau
25e9cccbdf Merge pull request #544 from Lothiraldan/plugins
Add a multi_part plugin
2012-10-20 14:27:56 -07:00
FELD Boris
178d63b154 Add a multi_part plugin
It list all parts of a blog post, helping to create a navigation menu between all the parts
2012-10-13 19:21:20 +02:00
Alexis Métaireau
17dc36aad6 merge upstream 2012-10-12 23:22:55 +02:00
Justin Mayer
c659695c5d Add a list of plugins to the docs. Closes #493. 2012-10-12 23:01:50 +02:00
m-r-r
0073c64e21 Sitemap plugin & get_generators signal
This is a combination of 13 commits:

1. New signal for registering custom generators
2. New plugin: pelican.plugins.sitemap
3. pelican.plugins.sitemap: more settings
4. pelican.plugins.sitemap: translations are indexed
5. pelican.plugins.sitemap: added documentation
6. pelican.plugins.sitemap: added XML DTD & W3C dates
7. pelican.plugins.sitemap: removed a <changefreq> bug
8. the `get_generators` can now return a tuple
9. pelican.plugins.sitemap: cleaned the code
10. pelican.plugin.sitemap: settings changes
11. sitemap plugin: improved configuration & documentation
12. sitemap plugin: :set spell
13. sitemap plugin: removed useless whitespaces
2012-10-12 23:01:50 +02:00
Brian St. Pierre
3606debb15 Fix #537: sitemap.xml contains pages that don't exist 2012-10-07 20:31:20 -04:00
Justin Mayer
161f60e569 Add a list of plugins to the docs. Closes #493. 2012-09-11 06:50:33 -07:00
m-r-r
229b0e4dcc Sitemap plugin & get_generators signal
This is a combination of 13 commits:

1. New signal for registering custom generators
2. New plugin: pelican.plugins.sitemap
3. pelican.plugins.sitemap: more settings
4. pelican.plugins.sitemap: translations are indexed
5. pelican.plugins.sitemap: added documentation
6. pelican.plugins.sitemap: added XML DTD & W3C dates
7. pelican.plugins.sitemap: removed a <changefreq> bug
8. the `get_generators` can now return a tuple
9. pelican.plugins.sitemap: cleaned the code
10. pelican.plugin.sitemap: settings changes
11. sitemap plugin: improved configuration & documentation
12. sitemap plugin: :set spell
13. sitemap plugin: removed useless whitespaces
2012-09-02 18:17:22 +02:00
Alexis Metaireau
1e7c939953 pep8-ify 2012-07-12 15:29:08 +02:00
Samrat Man Singh
9ef8df9a19 Remove else: return 2012-07-11 14:53:45 +05:45
Samrat Man Singh
2b933faaf2 Add usage and intallation instructions 2012-07-11 08:52:00 +05:45
Samrat Man Singh
d2a28350ff don't reverse ranked_posts 2012-07-11 01:34:01 +05:45
Samrat Man Singh
d9b5ee10de moved related_posts to plugin 2012-07-11 01:16:19 +05:45
Bruno Binet
50d4901f86 fix whitespace 2012-03-21 00:11:25 +01:00
Bruno Binet
db3d588f64 fix typos and whitespace 2012-03-21 00:10:19 +01:00
Skami18
c522ce7fbc New plugin that provides an ..html:: directive for reStructuredText 2011-10-30 14:16:51 +01:00
Marco Milanesi
83d59d6b93 revised github activity to adapt it to new github atom feed changes 2011-10-18 22:21:43 +02:00
Marco Milanesi
48d7df72f1 refactored code and introduced a new signal in ArticlesGenerator __init__ 2011-09-07 17:08:28 +02:00
Marco Milanesi
575905ac53 some commentary
copyright infos

some instructions on how to use the plugin
2011-09-06 19:14:21 +02:00
Marco Milanesi
c6c0ee76c2 implemented github activity plugin 2011-09-06 18:54:41 +02:00
Alexis Metaireau
28c0644eb6 Plugins doc + minor design changes. 2011-06-18 01:03:53 +02:00
Alexis Metaireau
c5a63c953a Remove the dependency to pkgutil for the plugins 2011-06-17 23:37:08 +02:00