Commit graph

912 commits

Author SHA1 Message Date
Justin Mayer
e7370945c9 Merge pull request #851 from avaris/better-strftime
refactored utils.strftime
2013-04-17 09:31:19 -07:00
Deniz Turgut
48f7132ba8 refactored utils.strftime 2013-04-16 20:53:27 -04:00
Justin Mayer
de120aefb4 Merge pull request #846 from Rogdham/output_sources_translations
Output sources for translations as well.
2013-04-14 14:43:46 -07:00
Justin Mayer
1c4a83e1ad Merge pull request #844 from Rogdham/pelican-import_invalid_characters
Do not generate invalid filenames. Fixes #814.
2013-04-14 14:43:13 -07:00
Rogdham
ec8e257fde Output sources for translations as well. 2013-04-14 22:19:57 +01:00
Deniz Turgut
a3e8a2d18d __import__ fails for unicode 'fromlist' in Py2.x 2013-04-14 17:03:19 -04:00
Rogdham
b2aabdc02b Do not generate invalid filenames. Fixes #814.
Turn invalid characters into underscores, remove leading dots and enforce
a maximum length. Should be fine on main file systems used by Windows, Mac OS
and Linux.
Thanks to @Avaris for helping to clean my code.
2013-04-14 13:20:16 +01:00
Justin Mayer
87735b5215 Merge pull request #842 from avaris/remove-unittest2
remove unittest2 and fix various warnings in py3
2013-04-13 14:23:38 -07:00
Deniz Turgut
68921fe94d remove warning for FEED_DOMAIN when SITEURL undefined 2013-04-13 17:07:48 -04:00
Deniz Turgut
bc4bd773a0 remove unittest2 and fix various warnings in py3 2013-04-13 16:36:05 -04:00
Rogdham
a4c16e1b53 Warn user in case of missing title. Fixes #440.
When a WP XML file is imported, items with missing title are generated with a
title which is probably not the good one (instead of being dropped), and a
warning is displayed to the user.
2013-04-13 20:44:18 +01:00
Deniz Turgut
c4b3ad58e8 remove plugins, update docs and update dependecies 2013-04-12 23:39:39 -04:00
Justin Mayer
886c8d649c Better defaults for quickstart settings files
Since feed generation is usually unnecessary during development (and can
produce potentially-confusing warnings when SITEURL is not set), running
"make html" will now skip feed generation by default. Feed generation
settings have been added to publishconf.py so feeds will be generated
when the site is published.

Also corrected some URLs in pelicanconf.py.
2013-04-12 08:48:42 -07:00
Justin Mayer
4687ae7f30 Merge pull request #837 from justinmayer/relativeoff
Change RELATIVE_URLS default to False - Fixes #829
2013-04-12 07:09:23 -07:00
unknown
8e254e8cd7 Fixed path_to_url when os.sep is not '/'. 2013-04-12 15:44:53 +08:00
Justin Mayer
0a8678a8ae Change RELATIVE_URLS default to False - Fixes #829 2013-04-11 16:12:55 -07:00
Justin Mayer
679d4aa801 Main CSS file uses tabs, not spaces 2013-04-10 17:14:19 -07:00
Justin Mayer
45dc17f41f Current default theme design is MIT licensed 2013-04-10 16:58:25 -07:00
Justin Mayer
0ac8118c46 Merge pull request #830 from Rogdham/translation_metadata
Add translation metadata support.
2013-04-09 16:28:38 -07:00
Justin Mayer
d0489758ad Minor English grammar correction 2013-04-07 14:43:07 -07:00
Rogdham
eb640b09e6 Add translation metadata support.
Allows user to control which posts are the translations independently of the
DEFAULT_LANG setting.
2013-04-06 18:36:37 +01:00
Deniz Turgut
c2924402ad Fix for issue #428: Use PLUGIN_PATH properly 2013-04-05 02:39:12 -04:00
Deniz Turgut
0548b62441 fix for issue #761: handle unicode correctly in summary for Markdown 2013-04-03 19:38:42 -04:00
Deniz Turgut
9936538d8b unify css class for pygments 2013-04-02 18:39:52 -04:00
David Beitey
e042e11c23 Add new option for controlling whether to display categories on menu or not
Conflicts:
	docs/changelog.rst
	pelican/tests/output/basic/tag/bar.html
	pelican/tests/output/basic/tag/baz.html
	pelican/tests/output/basic/tag/foo.html
	pelican/tests/output/custom/tag/bar.html
	pelican/tests/output/custom/tag/baz.html
	pelican/tests/output/custom/tag/foo.html
2013-04-01 22:08:13 +10:00
Justin Mayer
f35206660b Merge pull request #811 from cdunklau/clean_up_tests
Nitpicking - tempdir naming, also backslashes are bad
2013-03-30 10:17:09 -07:00
Irfan Ahmad
58faf9462e Implement Posterous import - fixes #608 2013-03-29 09:10:27 -07:00
James King
999980c07c Added WordPress content decoding to importer 2013-03-28 07:16:01 -07:00
Justin Mayer
433ab37eb8 Merge pull request #807 from saimn/fix_webassets_tests
Fix webassets tests when running on a system with a different locale.
2013-03-28 06:39:44 -07:00
Deniz Turgut
ba200c30af Fix for issue #392 2013-03-27 18:17:11 -04:00
Deniz Turgut
8710982d2a fixed related_posts plugin 2013-03-26 23:17:59 -04:00
Colin Dunklau
edbac49f2b Nitpicking - tempdir naming, also backslashes are bad
Tempdirs should have useful prefixes to aid in collecting information
    about failed tests.
Implicit concatenation is better than backslash line continuation.
2013-03-26 11:51:33 -05:00
Simon Conseil
fad824ef5a Fix webassets tests when running on a system with a different locale. 2013-03-26 09:38:38 +01:00
Deniz Turgut
e6f3126ba6 Fix for issue #219: tags should list only main articles, not translations 2013-03-26 01:28:42 -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
Irfan Ahmad
385a18563c Fixes #630 2013-03-23 20:16:31 -07:00
Alexis Métaireau
cb5f66ffe0 Check all lists are not strings. 2013-03-23 19:56:45 -07:00
Dave King
bd54cb1b88 Prevent people from setting STATIC_PATHS to a str
Previously you could accidentally set for example site/css and pelican would iterate through the string and attempt to copy '/' into your output.
2013-03-23 19:56:14 -07:00
Chenguang Wang
5e4622b229 make pelican-quickstart and the Makefile it generates support py3k. 2013-03-23 19:37:02 -07:00
Alexis Metaireau
5dbb8c3041 Merge pull request #775 from lexual/s3_support_for_quickstart
Added S3 support for pelican quickstart.
2013-03-23 19:16:39 -07:00
Alexis Metaireau
1b2e59756e Merge pull request #784 from idyedov/master
fix for #783
2013-03-23 19:15:05 -07:00
Alexis Metaireau
932407f153 Merge pull request #780 from georgevreilly/master
Updated social icons
2013-03-22 00:40:03 -07:00
Alexis Metaireau
c1272bc69d Merge pull request #781 from fe-lix-/master
Getting an explicit error message on server creation
2013-03-22 00:38:20 -07:00
Alexis Metaireau
ff571967cf Merge pull request #790 from davidjb/raise-exceptions
Raise exceptions from the autoreload loop if debug is enabled
2013-03-22 00:34:10 -07:00
Alexis Metaireau
5894624e2e Merge pull request #792 from cdelston/master
Fix simple template article permalink in article page.
2013-03-22 00:32:44 -07:00
W. Trevor King
29cdb37af3 generators: Use the static format to read Static metadata
This cuts down on the remaining difference between static files and
articles/pages.  The main difference is that path-based metadata is
now parsed for static content.
2013-03-21 14:17:50 -04:00
W. Trevor King
f147d9ec4a readers: Add 'static' to the base Reader's extensions
Instead of just being a base class, we can use it to parse static
files.  It won't actually do any parsing, but we will get path
metadata extraction from read_file, and this will make the
StaticGenerator implementation simpler.
2013-03-21 13:03:54 -04:00
W. Trevor King
ae4fc5a25e utils: Add path_to_url() and generalize get_relative_path()
The old get_relative_path() implementation assumed os.sep == '/',
which doesn't hold on MS Windows.  The new implementation uses
split_all() for a more general component count.

I added path_to_url(), because the:

  '/'.join(split_all(path))

idiom was showing up in a number of cases, and it's easier to
understand what's going on when that reads:

  path_to_url(path)

This will fix a number of places where I think paths and URLs were
conflated, and should improve MS Windows support.
2013-03-21 12:44:44 -04:00
W. Trevor King
b59da89e80 Convert '.' and '..' to the less magical os.curdir and os.pardir
While I'm cleaning up path manipulation, I might as well make things
more semantic.
2013-03-21 12:44:44 -04:00
W. Trevor King
a5c1fdac58 settings: Use splitext to remove extensions, not rpartition 2013-03-21 12:44:44 -04:00