Commit graph

2,162 commits

Author SHA1 Message Date
Rogdham
1fb04bfc21 Limit and filter logs
Drop duplicates logs.
Allow for logs to be grouped, enforcing a maximum number of logs per group.
Add the LOG_FILTER setting to ask from the configuration file to ignore some
logs (of level up to warning).
2014-06-28 16:18:44 -07:00
Helmut Grohne
cb4b2e7dfa change the inhibition value of *_SAVE_AS to ''
Previously, the documentation claimed the value of None for this purpose
even though False was used for certain defaults. The values False and
None cause warnings to be emitted from URLWrapper._from_settings though,
so the new way of inhibiting page generation is to set a *_SAVE_AS value
to the empty string.
2014-06-28 16:18:44 -07:00
Justin Mayer
da5849d1a0 Fix docs last_stable version and copyright date 2014-06-28 16:18:44 -07:00
th3aftermath
715b9eae68 Fix indentation error in the settings doc
This was accidentally caused by me in #1248
As a result the Basic Settings table was not being updated.
2014-06-28 16:18:43 -07:00
Jean Lauliac
3779306de5 Apply typogrify on article summary as well 2014-06-28 16:18:43 -07:00
th3aftermath
7baeb6f70b Fix Issue #1165 allows extensions to be set by certain settings
PAGINATION_PATTERNS was hard coded so that all files had a ".html" extension. This fixes that and add a test to
ensure that the pagination code is not changing the filename incorrectly.
2014-06-28 16:18:43 -07:00
th3aftermath
6533f803b7 Add the setting SLUGIFY_ATTRIBUTE 2014-06-28 16:18:43 -07:00
Justin Mayer
49a0559912 Minor improvements to Settings docs 2014-06-28 16:18:43 -07:00
Stefan hr Berder
fde856ec45 add lang support for drafts (#826 & #1107)
Fix #826
Fix #1107
2014-06-28 16:18:43 -07:00
Stefan hr Berder
656e85a2dd change date metadata parsing to dateutil.parser 2014-06-28 16:18:43 -07:00
Ben Bridts
a8c772289a Split multiple authors on ',' 2014-06-28 16:18:43 -07:00
Mario Lang
c3a8d80f42 Run tag name through escape filter to avoid invalid HTML
If a tag contains characters like <> or &, we currently generate invalid HTML.
This is easily fixed by sending the tag through the jinja escape filter.

(This bug is not theoretical, I hit it when using C++ template names for tags,
 like "boost::variant<>".)
2014-06-28 16:18:43 -07:00
Mario Lang
d4c3b616a9 Some browsers like Lynx render adjacent links without implicit spaces.
Put an extra space at the end of each link to a tag so that Lynx doesnt render
the tags as a single word.
2014-06-28 16:18:43 -07:00
Mario Lang
66441e0efb Fix stray </ol> and </section> if only one article is displayed.
We already check if loop.length > 1 before outputting <section> and <ol>
tags, but we neglected to do the same check when outputting the corresponding
end tags.

Also, since I had to read the code when I touched it, simplified a conditional:
if (a) if (a and (b or not b and c))
can be simplified to
if (a) if (b or c)

Note the "b or not b", it was just too ugly to not fix.
2014-06-28 16:18:43 -07:00
Mario Lang
43f8c2c246 HTML error in notmyidea: <li> not allowed in <section>.
<li> tags need to be inside of <ul> or <ol>.
Thanks to the w3c_validate plugin for finding this.
2014-06-28 16:18:43 -07:00
Justin Mayer
47ec2bc4a4 Add squashing to CONTRIBUTING docs. Fix URLs. 2014-06-28 16:18:43 -07:00
Rob Kennedy
cba5a888ac Allow socket address reuse; fixed #1264
The socket may remain in the TIME_WAIT state for some time after the
server shuts down, which prevents another instance of the server from
listening on the same port. This change allows the server to reuse the
address even when it's still waiting.
2014-06-28 16:18:43 -07:00
Anatoly Bubenkov
92a4229bb7 multiple authors implemented 2014-06-28 16:18:43 -07:00
Utku Demir
1f382c6790 Fix issue #1258
Correctly handle DEFAULT_DATE = None .
2014-06-28 16:18:42 -07:00
Justin Mayer
5bc3a7d0d8 Revert to newly-revived Typogrify project
Since the Typogrify project will be actively maintained going forward,
there is no need for the fork.
2014-06-28 16:18:42 -07:00
Colin Dunklau
597f1d95a6 Use absolute size for github mark 2014-06-28 16:18:42 -07:00
Colin Dunklau
88ffff2c15 32px Github logo and CSS shinker 2014-06-28 16:18:42 -07:00
Colin Dunklau
958c6c06bc Updated tests 2014-06-28 16:18:42 -07:00
Colin Dunklau
fae5648ce6 Updated github mark for notmyidea
The smallest mark GitHub provides in the bundle is 32x32. Since they
explicitly say don't resize the mark, I asked them to provide a 16x16
so we could use it. I received the 16x16 in this commit from GitHub
support.

However, they suggested we use the 32x32 and use CSS rules to adjust
the size:

"...we use the 32px for both and employ css background and background-
size rules to handle retina displays. I recommend that technique,
since retina users will see a mess of pixels for icons that small."

This sounds like reasonable advice. Should we consider migrating the
notmyidea social icons to 32x32, with appropriate CSS to adjust the
sizes?
2014-06-28 16:18:42 -07:00
Justin Mayer
c0ba93da9e Revert test-failing change from #1114 2014-06-28 16:18:42 -07:00
Mathieu Leplatre
5928603720 Fail and exit on restructuredtext syntax error 2014-06-28 16:18:42 -07:00
Jacob Lyles
6662949d22 allows pelican-themes symlink command to use relative paths not beginning with a dot 2014-02-09 00:39:29 -08:00
Justin Mayer
c60e0d03fb Merge pull request #1114 from brannerchinese/master
xml => lxml for bs4, in pelican-import.wp2fields()
2014-02-08 15:38:06 -08:00
Justin Mayer
e58cab0250 Merge pull request #1178 from robulouski/devserver_fix
Fix issue in devserver introduced in v3.3
2014-02-08 15:36:14 -08:00
Justin Mayer
a9d1fdae3d PY and PELICAN env variable overrides for Make
This allows the user to set PY and/or PELICAN environment variable
overrides, which will be respected by the Makefile and devserver.sh.
If, for example, the default Python on your system were Python 3 and
you wanted to run Make with Python 2, using bash you could run
`PY=python2 make`. Refs #915.
2014-02-08 14:32:58 -08:00
Justin Mayer
9b36437d97 Merge pull request #1246 from fenekku/period-to-archive-context
Add period to period_archives context. Refs #1044.
2014-02-08 12:19:36 -08:00
Justin Mayer
05f392c6bc Merge pull request #1249 from smartass101/split_articles_generate_context
Add article_generator_pretaxonomy signal
2014-02-08 12:13:23 -08:00
Justin Mayer
45e1aa112f Clarify docs re: settings file 2014-02-07 17:05:15 -08:00
Ondrej Grover
22762f2c16 add signal article_generator_pretaxonomy
invoked before categories and tags lists are created
useful when e.g. modifying the list of articles to be generated
so that removed articles are not leaked in categories or tags
2014-02-07 08:34:27 +01:00
Justin Mayer
dcadf33988 Merge pull request #1183 from Rogdham/pelican-fixcopy
Fix `utils.copy` for copying files
2014-02-05 08:19:34 -08:00
Justin Mayer
89de903925 Merge pull request #1200 from tomtung/patch-1
`ctrl+c` correctly terminates&reenables `fab serve`
2014-02-05 08:11:20 -08:00
Justin Mayer
9dd8e3954c Merge pull request #1202 from tomtung/patch-2
Update settings.rst to match tag cloud code
2014-02-05 07:43:51 -08:00
fenekku
f6e27617f8 Add period to period_archives context. Refs #1044.
* Adds period tuple of (year, month, day) matching the time
  period of the current archive. Note that this is done
  to the archive context if period_archives.html doesn't exist.
* Adds tests to verify this.
* Adds documentation in themes.rst about period in period_archives.html.
2014-02-03 20:26:38 -05:00
Justin Mayer
24866b77c7 Merge pull request #1234 from alistairmagee/wp-custom-posts-and-attachment-download
WordPress custom posts and attachment download
2014-02-03 10:08:17 -08:00
Alistair Magee
ea3e160db1 Extra functionality for pelican-import for wordpress imports 2014-02-03 17:36:41 +00:00
Justin Mayer
d91750090b Merge pull request #1244 from alistairmagee/article-writer-signal
add the new signal to the docs
2014-01-26 15:06:12 -08:00
Alistair Magee
45bc018672 add the new signal to the docs 2014-01-25 20:44:15 +00:00
Justin Mayer
f232958daf Merge pull request #1242 from alistairmagee/article-writer-signal
Add signal upon writing pages and feeds
2014-01-24 13:01:00 -08:00
Alistair Magee
752e862b80 Needed a signal for my subcategory plugin 2014-01-24 06:31:26 +00:00
Justin Mayer
23e7ac3659 Merge pull request #1094 from mua/master
Watch static folders in Autoreload mode
2014-01-22 07:54:12 -08:00
M. Utku Altinkaya
cda21c5481 Update __init__.py
Watch static folders using utils.folder_watcher
2014-01-22 01:55:46 +02:00
Justin Mayer
e60b5602ec Merge pull request #1228 from getpelican/testing
Clean up unit testing dependencies
2014-01-21 10:35:39 -08:00
Justin Mayer
960291c2f2 Merge pull request #1227 from alistairmagee/test_absolute_import
Fix test-suite import error
2014-01-19 12:08:16 -08:00
Justin Mayer
7a15045fbc Merge pull request #1232 from hlapp/fix-sitelink
Append slash to href of link to site home
2014-01-13 09:46:56 -08:00
Hilmar Lapp
5eb9fa6d16 Append slash to href of link to site home
This is necessary to make the link to the site home work locally, because then SITEURL may be set to an empty string (in fact the Pelican default configuration sets it to an empty string in pelicanconf.py).
2014-01-13 12:37:15 -05:00