Commit graph

1,842 commits

Author SHA1 Message Date
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
Félix Delval
7fa0d3063d Creating a more explicit error message at server creation 2013-03-16 19:29:10 +01:00
George V. Reilly
d4b41bd11d Multiple Social icons
aboutme, bitbucket, google-groups, hackernews, reddit,
slideshare, speakerdeck, vimeo, youtube

Also, fix spacing below a line-block.

Try this in resT::

	| First line
	| Second line
	| Third line

	New paragraph.

	Another paragraph.

Notice how the line-block runs into the first paragraph without the new CSS.
2013-03-15 19:02:44 -07:00
John Mastro
f92c800216 Add a period archives feature and brief docs.
Allows users to have per-year, per-month, and per-day archives of posts
automatically generated. The feature is disabled by default; to enable
it a user must supply format strings for a period's respective
`_SAVE_AS` setting.
2013-03-15 17:22:42 -07:00
lexual
62ab60d0b1 Added S3 support for pelican quickstart. 2013-03-15 15:04:33 +11:00
Alexis Metaireau
c3e9d0e96e Merge pull request #771 from wking/urlwrapper-repr
contents: Add URLWrapper.__repr__
2013-03-14 10:55:45 -07:00
W. Trevor King
9a62b5ec62 contents: Add URLWrapper.__repr__
This makes it easier to troubleshoot collections of URLWrappers,
because printing the collection will give you something you can
actually read ;).
2013-03-12 20:41:56 -04:00
W. Trevor King
bfa8851af0 Add the PATH_METADATA setting
Sometimes the base filename doesn't have everything you need.

Remember that os.sep is platform dependent, so using it in a regular
expression for this setting may not be portable (boo MS Windows!).
2013-03-12 15:16:25 -07:00
W. Trevor King
c46ca5d5d1 readers: Split parse_path_metadata from read_file
For easier re-use.  I also extract the path metadata first, so
metadata explicitly listed in the file contents will take precedence
over metadata parsed from the filename.
2013-03-12 15:16:25 -07:00
Alexis Métaireau
12c43b7d4d Make METADATA_PROCESSORS and EXTENSIONS public. 2013-03-12 12:19:53 -07:00
Alexis Métaireau
fc45d8d791 update the docs regarding all_articles 2013-03-11 23:11:21 -07:00
Alexis Métaireau
14d548fc44 Introduce all_articles where articles is shadowed. 2013-03-11 23:07:54 -07:00
William Light
e045515b91 add "output_file" Jinja context variable
"output_file" contains the name of the HTML file that pelican is
currently rendering.
2013-03-10 23:53:41 -07:00
Alexis Métaireau
37f6190c69 URLWrapper moved! 2013-03-10 23:42:08 -07:00