Commit graph

2,131 commits

Author SHA1 Message Date
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
Alistair Magee
dc552bb869 fix test-suite import error 2014-01-10 16:33:02 +00:00
Kyle Fuller
8dfa7c23f3 Use dev_requirements.txt for tox dependencies 2014-01-10 07:34:13 +00:00
Kyle Fuller
d8e50d56da travis: Use dev_requirements.txt for dependencies 2014-01-10 07:33:41 +00:00
Justin Mayer
f6d012adf8 Merge pull request #1220 from saimn/misc
Clarify docs about the DIRECT_TEMPLATES _SAVE_AS and _URL settings.
2014-01-05 14:53:11 -08:00
Simon Conseil
6264cf8916 Clarify docs about the DIRECT_TEMPLATES _SAVE_AS and _URL settings. 2014-01-05 23:37:44 +01:00
Simon Conseil
fb4b894b77 More pep8 fixes and refactor the check for old settings. 2014-01-05 23:34:46 +01:00
Simon Conseil
18e6ec9f02 Simplify a bit pagination code. 2014-01-05 23:34:46 +01:00
Simon Conseil
c90a62ea13 pep8 fixes 2014-01-05 23:34:46 +01:00
Justin Mayer
226672da9f Merge pull request #1219 from iurisilvio/categories_url
Set CATEGORIES_URL and CATEGORIES_SAVE_AS
2014-01-05 13:19:44 -08:00
Iuri de Silvio
fb1cfc35bf Change CATEGORIES_URL and CATEGORIES_SAVE_AS docs to
make it consistent with TAGS_URL and TAGS_SAVE_AS.

Add default values to CATEGORIES_URL and CATEGORIES_SAVE_AS.
2014-01-05 18:34:23 -02:00
Justin Mayer
b25001333d Merge pull request #1214 from hrbonz/article_generator_write_article
Add a signal on article writing
2014-01-05 09:03:09 -08:00
Justin Mayer
f73484a4f4 Merge pull request #1215 from justinmayer/typogrify
Use the actively maintained typogrify-web package
2014-01-03 15:02:43 -08:00
Justin Mayer
127f60c3e9 Update Travis config with new Typogrify package 2014-01-03 14:27:19 -08:00
Justin Mayer
505852c04c Use the actively maintained typogrify-web package
The Typogrify library is no longer actively maintained by the
original author. These changes switch Pelican over to a new fork that
will receive more consistent updates going forward.
2014-01-03 08:51:52 -08:00
Stefan hr Berder
f750f38d60 add a signal on article writing 2014-01-03 05:03:25 +01:00
Tom Yubing Dong
d935af3229 Update settings.rst to match tag cloud code
According to the implementation, the value of `tag.1` should be between 1 and `TAG_CLOUD_STEPS`, inclusive.

See:
https://github.com/getpelican/pelican/blob/master/pelican/generators.py#L457
2013-12-27 15:36:34 +08:00
Tom Yubing Dong
786a209d2b ctrl+c now correctly terminates fab serve
Previously `ctrl+c` a `fab serve` wouldn't necessarily terminate the web server. Even if it does, re-using the command `fab serve` might result in the following error:

```
socket.error: [Errno 48] Address already in use
```

This fix manually creates a `TCPServer` with `allow_reuse_address` set to `True`, which solves this issue.

Tested on OS X 10.9.1.
2013-12-26 22:30:54 +08:00
Justin Mayer
0b3dc9db21 Merge pull request #1190 from w-vi/quickstart-fix1182
Fix for issue #1182
2013-12-23 13:03:49 -08:00
wvi
71103ef2c1 Fix #1182# 2013-12-23 21:32:10 +01:00
Justin Mayer
1e203e955a Merge pull request #879 from joeshaw/post-id
Wordpress import error on empty <wp:post_name>
2013-12-18 18:24:16 -08:00
Justin Mayer
6ab890ddb7 Merge pull request #1186 from mhrivnak/patch-1
Fix a typo in documentation
2013-12-15 20:22:42 -08:00
Michael Hrivnak
1976eac1bf Fixing a typo in documentation 2013-12-15 21:13:03 -05:00
Justin Mayer
3715749cc6 Minor wording changes in develop_server.sh 2013-12-11 21:09:02 -08:00
Kyle Fuller
da690dfc37 Python-Markdown quote's URL's, we need to unquote to use on filesystem
Fixes #1143
Closes #1095
Closes #1149
2013-12-09 18:13:43 +00:00
Rogdham
fd7fc2e202 Simplify usage of utils.copy
Remove confusing parameters, clarify usage in __doc__
2013-12-07 21:11:15 +01:00
Rogdham
7da0506f2d Fix utils.copy for copying files, add unit tests
`copy('', 'a/b.ext0', 'c/d.ext1')` is copying `a/b.ext0` into `c/d.ext1/b.ext0`
(creating folder `c/d.ext1` in the process) instead of `c/d.ext1`.
Bug introduced by e03cf3f517.
2013-12-07 20:58:19 +01:00
Justin Mayer
e10fe42928 Merge pull request #1181 from jculpon/ghpages-config
Support publishing to personal GitHub Pages sites in quickstart
2013-12-06 18:18:27 -08:00
Jamie Culpon
c495502c8f Support publishing to personal pages sites in quickstart
Previously pelican-quickstart would assume that the site it created for GitHub
Pages should be published to the gh-pages branch. This is correct for project
pages, but not correct for personal pages. Personal pages, which live in a
user's special username.github.io repository, are instead deployed to the
master branch. This means that if you did pelican-quickstart and tried to
publish your new personal site with make github you'd see nothing (or whatever
old pages site you had floating around in master).

ghp-import already supports publishing to different branches, so publishing
to the correct branch is just a matter of correct configuration and updating
the Makefile to pass the branch along to ghp-import. pelican-quickstart now
asks if the user wants to publish to GitHub Pages, and if so, asks if this
is a personal page and chooses the correct branch appropriately. I preferred
this approach to prompting for an arbitrary branch because I felt that
choosing the branch would feel more intimidating to someone using
pelican-quickstart for the first time.

This essentially ports changes I made to my personal pages site at
jculpon@82cae477a9e8712b90654f6432464369ebcc7ae5
2013-12-06 17:39:51 -08:00
Justin Mayer
257f9ce1ed Merge pull request #1177 from tcg/tcg/pep8-in-conf
Update spacing in pelicanconf.py.in
2013-12-05 20:10:55 -08:00