Commit graph

1,805 commits

Author SHA1 Message Date
Justin Mayer
4cdd515f5b Merge pull request #819 from avaris/test-warning
Fixes issue #392
2013-03-28 06:27:05 -07:00
Deniz Turgut
ba200c30af Fix for issue #392 2013-03-27 18:17:11 -04:00
Justin Mayer
024ecb301e Merge pull request #813 from avaris/fix_related_posts
fixed related_posts plugin
2013-03-27 09:28:56 -07: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
Justin Mayer
54ffdf8ae5 Merge pull request #809 from cdunklau/clean_up_images
Nuked spurious ./tests directory
2013-03-26 09:39:45 -07:00
Justin Mayer
9d25710300 Merge pull request #810 from avaris/translations_in_tags
Fix for issue #219: tags should list only main articles, not translations
2013-03-26 09:35:30 -07: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
Colin Dunklau
58f77012dd Nuked spurious ./tests directory
Only images, someone added a bit too much to the index
2013-03-26 00:13:30 -05:00
Will Dowling
de69739774 Fixing help text 2013-03-26 02:42:11 +00:00
Will Dowling
0d43017704 Adding information to argparse help 2013-03-26 10:37:37 +08: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
Will Dowling
608e398386 Removing utils.file_exists and replacing with os.path.isfile 2013-03-25 10:45:43 +00:00
Will Dowling
b06fbd78cc Load a default-named configuration file if present 2013-03-25 10:39:22 +00: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
Justin Mayer
4bdb8a5d34 Merge pull request #799 from saimn/webassets_py3k
Install webassets & cssmin only for Python 2.
2013-03-23 08:18:12 -07:00
Simon
b69046f98d Install webassets & cssmin only for Python 2.
webassets is not py3 compatible yet. This will avoid a failed install of
webassets for each py3 Travis build.
2013-03-23 16:07:43 +01: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
Justin Mayer
167128b1f2 Merge pull request #794 from wking/static-reader
Use the static format to read Static metadata
2013-03-21 11:26:22 -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
Justin Mayer
90822de962 Merge pull request #768 from wking/path-handling-cleanup
Cleanup path handling (os.path.join and more)
2013-03-21 09:58:12 -07: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
W. Trevor King
e5e455e0e5 Replace os.sep.join with the more robust os.path.join
From the Python docs for os.sep [1]:

  Note that knowing this is not sufficient to be able to parse or
  concatenate pathnames - use os.path.split() and os.path.join()...

Where I touched a line, I also changed double quoted string literals
to single quotes, since they are used more often in the source:

  wking@mjolnir ~/src/pelican $ git grep "'" pelican/*.py | wc -l
  683
  wking@mjolnir ~/src/pelican $ git grep '"' pelican/*.py | wc -l
  181

[1]: http://docs.python.org/3/library/os.html#os.sep
2013-03-21 11:38:14 -04:00
Justin Mayer
4e5454912f Merge pull request #791 from wraithan/add_some_help
Add help directly to publishconf.py
2013-03-21 05:09:02 -07:00
Chris Elston
173e17d992 Simple theme article permalink missing SITEURL
This change modifies the simple template so that the SITEURL
prefix is added to the article permalink found within the article
page itself.
2013-03-21 11:28:06 +00:00
Wraithan (Chris McDonald)
5fcb18ea60 Add help directly to publishconf.py 2013-03-21 03:33:32 -07:00
David Beitey
1ff16f248b Raise exceptions from the autoreload loop if debug is enabled 2013-03-21 15:52:42 +10:00
Justin Mayer
c7f06b9af6 Merge pull request #786 from noirbizarre/more-documentation
Add missing documentation for JINJA_FILTERS and SITESUBTITLE
2013-03-20 13:29:13 -07:00
Axel Haustant
e235cadda4 Fix typos 2013-03-20 21:21:47 +01:00
Justin Mayer
439b783a72 Merge pull request #785 from wraithan/docs_for_ignore_files
documentation for IGNORE_FILES
2013-03-20 09:07:58 -07:00
Justin Mayer
043b9a52d6 Merge pull request #779 from johnmastro/add-period-archives
Add period archives
2013-03-20 08:09:39 -07:00
Axel Haustant
7fb51e94bb Fix typos 2013-03-20 16:08:54 +01:00
Axel Haustant
c36fce8b6a Added missing SITESUBTITLE documentation 2013-03-19 14:58:35 +01:00
Axel Haustant
c6b943bfe9 Added missing JINJA_FILTERS documentation 2013-03-19 14:58:35 +01:00
Félix Delval
66aae01493 Adding a message for gracefully shutting down dev server 2013-03-19 12:15:58 +01:00
Wraithan (Chris McDonald)
e73f7e9f84 documentation for IGNORE_FILES 2013-03-18 17:51:17 -07:00
Justin Mayer
9eda0f79bd External resources should be scheme-independent
By using "//" instead of "http://" when referring to external resources
such as fonts (e.g., from within CSS files), warnings about "insecure"
content can be avoided.
2013-03-18 17:36:35 -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