Commit graph

521 commits

Author SHA1 Message Date
Justin Mayer
1cebd345aa Merge pull request #970 from russkel/themestaticdir
added THEME_STATIC_DIR setting
2013-08-01 08:42:13 -07:00
Alexis Metaireau
65a716ec02 Merge pull request #989 from getpelican/plugins-recipes
Start a section about plugin recipes in the docs
2013-08-01 05:48:53 -07:00
Alexis Métaireau
4fa9184b01 Start a section about plugin recipes in the docs 2013-08-01 14:47:56 +02:00
Russ Webber
89034f8b3f added THEME_STATIC_DIR setting
The theme static output directory path is now customisable via settings.
i.e. you can now use 'assets' instead of 'theme'.
2013-08-01 11:02:38 +08:00
Kyle Fuller
51dc02f298 Add documentation for WITH_FUTURE_DATES
Closes #952
2013-07-31 23:08:42 +01:00
Philipp Klose
0e0775b74a Fix file endings for examples
reStructured should use reStructured for linked documents. Markdown should use Markdown for linked documents.
2013-07-31 22:43:02 +02:00
Justin Mayer
30192b2318 Add fabfile generation to pelican-quickstart
This commit adds optional fabfile.py generation during the
pelican-quickstart process. Reasons include:

* "make" is cumbersome to install on Windows
* Fabric runs in any Python environment
* fabfile is just Python and thus more flexible and extensible

This is an initial implementation and does not currently provide as many
upload options as its Makefile counterpart.

Refs #584.
2013-07-29 11:03:14 -07:00
Justin Mayer
d4b64a3c8e Merge pull request #873 from xlz/tumblr-import
Support importing Tumblr
2013-07-18 09:17:26 -07:00
Justin Mayer
9b0cfd9884 Merge pull request #883 from ben2367/author-filter
Add filter-author option to importer
2013-07-16 08:22:26 -07:00
Justin Mayer
f43742c3f0 Add missing SITEURL variable to tag cloud docs 2013-07-15 14:25:39 -07:00
Chris Howie
4ca5d908ff Update tag cloud documentation for SLUG_SUBSTITUTIONS 2013-07-15 16:48:08 -04:00
Benjamin Port
cb650c1c99 Add filter-author option to importer
Allow to import post from only one author when importing data
2013-07-13 16:15:45 +02:00
Lingzhu Xiang
00a1cbb6b8 Support importing Tumblr
Try to integrate Tumblr's various post types without using
additonal templates.
2013-07-07 19:05:21 +08:00
Andy Pearce
39518e15ef Allow text substitutions when generating slugs
The `slugify()` function used by Pelican is in general very good at
coming up with something both readable and URL-safe. However, there are
a few specific cases where it causes conflicts. One that I've run into
is using the strings `C++` and `C` as tags, both of which transform to
the slug `c`. This commit adds an optional `SLUG_SUBSTITUTIONS` setting
which is a list of 2-tuples of substitutions to be carried out
case-insensitively just prior to stripping out non-alphanumeric
characters. This allows cases like `C++` to be transformed to `CPP` or
similar. This can also improve the readability of slugs.
2013-07-04 12:17:21 +01:00
Justin Mayer
ddb6d89be3 Document how to stop generation of certain pages
The documentation doesn't make it very clear how to prevent certain
pages from being generated, such as the Authors, Tags, and Categories
collection pages. This change makes it slightly more obvious how to
prevent these pages from being generated. Fixes #940.
2013-06-28 19:59:00 -07:00
Danilo Bargen
931d571606 More explicit settings docs concerning list templates
I think the author list and tag list are so common that they should be
listed explicitly in the settings.
2013-06-28 00:55:22 +02:00
Justin Mayer
5d000ca290 Add more missing -s flags to tips doc page 2013-06-26 06:39:09 -07:00
Justin Mayer
7d37cfa748 Missing -s flag added to command on tips doc page 2013-06-25 19:17:40 -07:00
Justin Mayer
6f36b0a246 Keep certain files when cleaning output; fix #574
If DELETE_OUTPUT_DIRECTORY is set to True, all files and directories are
deleted from the output directory. There are, however, several reasons
one might want to retain certain files/directories and avoid their
deletion from the output directory. One such use case is version control
system data: a versioned output directory can facilitate deployment via
Heroku and/or allow the user to easily revert to a prior version of the
site without having to rely on regeneration via Pelican.

This change introduces the OUTPUT_RETENTION setting, a tuple of
filenames that will be preserved when the clean_output_dir function in
pelican.utils is run. Setting OUTPUT_RETENTION = (".hg", ".git") would,
for example, prevent the relevant VCS data from being deleted when the
output directory is cleaned.
2013-06-25 19:03:32 -07:00
Kyle Machulis
39dd4a0255 Changed meta tag "contents" attribute to "content", to conform to HTML spec. Fixes #918 2013-06-16 10:56:50 -07:00
Justin Mayer
dfb29b5388 Update changelog 2013-06-15 12:24:48 -07:00
Justin Mayer
5d9b3d7777 Merge pull request #795 from wking/read-file
Generate context objects in read_file()
2013-06-15 11:54:32 -07:00
W. Trevor King
ce0a9b697e Document path metadata extraction 2013-06-12 17:37:22 -04:00
W. Trevor King
8797f0ebef docs/plugins.rst: Document signal name changes 2013-06-12 17:37:21 -04:00
W. Trevor King
d43dc1b9d6 Add the EXTRA_PATH_METADATA setting
Useful for altering static output paths when you don't want to encode
extra metadata in the static file's source path.
2013-06-12 15:02:31 -04:00
W. Trevor King
1ca0e06a27 Remove the FILES_TO_COPY setting
We no longer instantiate the Static object in the StaticGenerator, so
we can't set the save_as argument anymore.  If you want to adjust the
output path, use the upcoming EXTRA_PATH_METADATA setting.
2013-06-12 15:02:31 -04:00
W. Trevor King
7be16dd524 generators: Update PagesGenerator to use new read_file
Also standardize signal names.  If `article_generator_*` is singular,
`page_generator_*` should be as well.  Fix it from the older
`pages_generator_*`.
2013-06-12 15:02:31 -04:00
W. Trevor King
228fc82fc9 utils: Add some ISO 8601 forms to get_date()
Support the forms listed by the W3C [1].  I also removed the
'%Y-%d-%m' form, which can be confused with the '%Y-%m-%d' ISO form.
The new ISO forms can use 'Z' to designate UTC or '[+-]HHMM' to
specify offsets from UTC.  Other time zone designators are not
supported.

The '%z' directive has only been supported since Python 3.2 [2], so if
you're running Pelican on Python 2.7, you're stuck with 'Z' for UTC.
Conveniently, we get ValueErrors for both invalid directives and
data/format missmatches, so we don't need special handling for the 2.7
case inside get_date().

[1]: http://www.w3.org/TR/NOTE-datetime
[2]: http://bugs.python.org/issue6641
2013-06-11 22:53:21 -04:00
Justin Mayer
1fcf4a6550 Add documentation for ARCHIVES_SAVE_AS setting
While this setting has existed for some time, there does not seem to
have been any documentation for it until now.
2013-06-10 19:42:53 -07:00
Thanos Lefteris
ba3e14dd1d Docs: Add six, markupsafe to install dependencies 2013-06-03 18:23:07 +03:00
Simon Conseil
7057d3742b Drop python 3.2 support and move to python 3.3.
Jinja 2.7 (released 2013-05-20) supports only Python3 >=3.3 so it is time to
drop Python 3.2 and move to 3.3
2013-06-02 16:23:36 +02:00
Justin Mayer
8c47ab21ec Merge pull request #881 from ben2367/patch-1
Update importer documentation
2013-05-14 11:36:14 -07:00
Alexis Metaireau
55382dd184 Merge pull request #858 from jmurty/feature/import_wp_pages
Import wordpress pages to pages/ subdir with --dir-page option
2013-05-13 00:18:01 -07:00
ben2367
fa1550ceaa Update importer documentation
Dependencies were not the good one, wordpress importer needs BeautifulSoup4 and lxml
2013-05-09 04:07:17 +02:00
Justin Mayer
e9ca508e8e Add more detail to Pygments FAQ entry. Fixes #821 2013-05-06 07:28:25 -07:00
Justin Mayer
43f4d0df7a Add reST example to arbitrary metadata FAQ entry 2013-05-06 06:51:54 -07:00
Justin Mayer
34f05d4ba6 Add warning to docs re: DELETE_OUTPUT_DIRECTORY 2013-05-02 17:18:19 -07:00
Justin Mayer
0397274fed Prepare for next version 2013-04-24 13:21:28 -07:00
Justin Mayer
ba84658503 Add 3.2 release date to changelog 2013-04-24 09:39:36 -07:00
Justin Mayer
4fa2c30d3f Add new changelog items and link to Tutorials wiki 2013-04-23 11:17:45 -07:00
Justin Mayer
30c2490f88 Merge pull request #862 from avaris/emacs-autoreload
ignore emacs lock files and exception handling for watchers
2013-04-22 20:04:24 -07:00
Deniz Turgut
be8837963a ignore emacs lock files and exception handling for watchers 2013-04-22 20:50:11 -04:00
Deniz Turgut
2790446906 adds a 'strftime' jinja fiter that uses LOCALE 2013-04-21 18:00:12 -04:00
Justin Mayer
70a72545ce Add content_object_init to list of signals 2013-04-20 09:08:46 -07:00
James Murty
8c7ea8df98 Import wordpress pages to pages/ subdir with --dir-page option
When importing from Wordpress, the --dir-page directive (disabled by
default) automatically adds files to the pages/ when they are recognised
as pages, as opposed to posts.
2013-04-19 23:06:59 +01:00
Emily Strickland
08f27e0134 Accept mdown file extension for Markdown files.
This extension is sometimes used for Markdown files and is the default
for a few editors, such as Sublime Text.
2013-04-17 21:14:52 -07:00
Vlad Niculae
cdcfdf4605 DOC: fix the Markdown example for static index page URL override 2013-04-17 17:28:36 +09:00
Justin Mayer
bef5e4479e Getting Started documentation overhaul 2013-04-16 19:45:46 -07:00
Justin Mayer
8be7c0dbae Minor documentation improvements 2013-04-16 10:13:47 -07:00
Justin Mayer
7b0165696e Clarify docs regarding pages. Fixes #847. 2013-04-14 15:08:32 -07:00