Commit graph

55 commits

Author SHA1 Message Date
Bruno Binet
dfab8ed5b9 test the "metadata from filename" feature 2012-12-03 09:54:43 +01:00
Bruno Binet
debd6fb3b4 add FILENAME_METADATA setting to extract metadata from filename
FILENAME_METADATA default to '(?P<date>\d{4}-\d{2}-\d{2}).*' which will allow
to extract date metadata from the filename.
2012-12-03 09:53:14 +01:00
Brian C. Lane
49f481e399 Add asciidoc reader support
http://www.methods.co.nz/asciidoc/index.html

Processes files ending in .asc with asciidoc. Extra arguments can be
passed by using the ASCIIDOC_OPTIONS config setting
2012-12-02 10:20:13 -08:00
Alexis Métaireau
84c708b74b Revert "Get HtmlReader to work again"
This reverts commit 39db9ddcfd.

Conflicts:

	tests/test_readers.py
2012-10-29 00:36:42 +01:00
Alexis Métaireau
0ebba1c4ab merge with master 2012-10-25 14:54:19 +02:00
Alexis Métaireau
17dc36aad6 merge upstream 2012-10-12 23:22:55 +02:00
Wladislaw Merezhko
7ffa9e21d8 Change name of utils.open function to pelican_open and refactor this change across project. 2012-10-12 23:01:50 +02:00
Stéphane Bunel
5e895317f6 FIX: Standardizing "extentions" to "extensions" 2012-10-03 22:42:07 +02:00
Stéphane Bunel
ee46becaf9 FIX: Standardizing "extentions" to "extensions" 2012-10-03 22:29:59 +02:00
Stéphane Bunel
45c836fdf5 Update docs and tests for MARKDOWN_EXTENTIONS 2012-09-28 23:09:57 +02:00
stephane
4f5253bcb3 Add MARKDOWN_EXTENTIONS configuration parameter to enable Markdown extentions of your choice.
Ex: MARKDOWN_EXTENTIONS = [ 'toc', ] enable TOC markup to generate Table of Contents.
2012-09-27 19:49:42 +02:00
Wladislaw Merezhko
0c2625e59d Change name of utils.open function to pelican_open and refactor this change across project. 2012-09-08 13:07:51 +03:00
Florian Jacob
39db9ddcfd Get HtmlReader to work again
wrote unit tests and documentation, improved regular expression.
The HtmlReader is enabled by default now and parses metadata in html
files of the form:
<!-- key:value -->
2012-09-02 10:29:09 +02:00
Alexis Metaireau
22c88e4de3 update typogrify support 2012-07-26 22:02:06 +02:00
Dirkjan Ochtman
636fd6cc38 Add support for abbreviations to reST translator (fixes #395). 2012-07-17 13:30:06 +02:00
Simon
4a0d4461e1 Apply typogrify on the title.
As it is done when reading the file, we need to remove html tags for the
permalink and the slug (this is done here for the notmyidea and simple themes).

While modifying the themes I also replaced the `pagename` template tag with
`article.url` (`pagename` was an empty variable, no more used ?).
2012-05-07 12:26:17 +02:00
Matt Bowcock
faecba6035 Changed variable name extension to file_extensions. 2012-05-01 22:34:32 -04:00
Matt Bowcock
c8323af63d Fixed _EXTENSIONS dictionary definition. 2012-04-10 00:40:05 -04:00
Matt Bowcock
d4e632dfa8 Unit test failed due to missing trailing comma in tuple. Fixed. 2012-04-10 00:32:01 -04:00
Matt Bowcock
75febf4bfd Add support for multiple file extensions per file reader.
Conflicts:

	pelican/readers.py
2012-04-10 00:15:12 -04:00
Mike Yumatov
4df6179954 Fix markup for single-paragraph summary in reST metadata 2012-03-25 21:39:41 +04:00
Alexis Metaireau
9c4b40fd35 Keep raw metadata text (but for summary) 2012-03-18 15:12:06 +01:00
Simon
4f95b9f05c remove useless .keys() for key in dict expressions 2012-03-14 09:38:36 +01:00
draftcode
08b40c7967 Make names of metadata lower. 2012-03-12 01:33:30 +09:00
Alexis Metaireau
d43bd1dcb8 Add a way to use Typogrify to enhance the generated HTML. 2012-03-11 02:48:36 +01:00
Alexis Metaireau
6cde7fd27a PEP8-ify.
Wrap to 80 chars, sanitize imports.
2012-03-09 16:21:38 +01:00
Alexis Metaireau
df25dec30a Use the with statement when opening files. 2012-03-09 16:17:09 +01:00
Kyle Fuller
44cf2ad400 Support configurable URL's & SAVE_AS path for Author, Category and Tag 2012-03-06 16:41:35 +00:00
Kyle Fuller
ff9c786149 Create a Author class which has a url property 2012-03-06 16:39:07 +00:00
Kyle Fuller
f9ed01bb64 Create a Tag class which has a url property 2012-03-06 16:39:07 +00:00
Kyle Fuller
6754099730 Create a Category class which has a url property 2012-03-06 16:39:07 +00:00
Christophe Chauvet
2911a38f40 Issue #181, when parse tags 2011-11-06 13:16:47 +01:00
Alexis Metaireau
c73ae02170 pep8ize 2011-08-11 22:42:20 +02:00
Borgar
a5f47cfae9 Allow overriding reader extensions.
This adds an extensions setting all readers in the style of [ext]_EXTENSIONS. So for the MarkdownReader, who's extension is "md", the setting read is MD_EXTENSIONS.

The settings allow overriding the default options passed through the readers. In the case of Markdown the default values are ['codehilite','extra'], but user may change this through the setting:

MD_EXTENSIONS = ['footnotes','abbr','codehilite']
2011-08-07 23:05:58 +00:00
joe di castro
6ac802bcf1 Enable Markdown Extra by default. 2011-06-21 03:23:41 -07:00
Skami18
1cd7ac0483 The metadatas are now case insensitive. Removes a tags-related bug. 2011-05-14 15:31:07 +02:00
Mikhail Korobov
cacc6db9a4 ReST metadata parsing using docutils. 2011-05-11 06:01:21 +06:00
Alexis Metaireau
52f2a8383a Metadata, not metadatas. 2011-05-07 20:00:30 +01:00
Ronny Pfannschmidt
e7c75147d2 pass along the source filename of the rst files for better errors 2011-05-06 19:28:14 +02:00
Ronny Pfannschmidt
3c37704b3b use unicode.strip instead of string.strip of the string module for metadata processors 2011-05-06 19:26:25 +02:00
Ronny Pfannschmidt
e69b55dbcd use absolute import for the rstdirectives 2011-05-06 19:25:11 +02:00
James Rowe
43e931baa4 Make readers with external dependencies optional. 2011-02-24 05:15:04 +00:00
Skami18
bf7ba84d93 Removed an useless "print" statment... 2011-02-16 00:02:09 -08:00
skami
c019443026 Added support for HTML as input format 2011-02-14 19:10:01 +01:00
Alexis Metaireau
06246d1aa4 Fix #65. Unicode, grr. Thanks Bruno Bord. 2011-02-01 22:50:18 +00:00
Alexander Artemenko
558038be32 Fixed tags parsing, now it can parse tags like this "blah,minor, foo , bar". Also, code for metadata parsing was slightly refactored. 2010-12-22 01:08:23 +03:00
Alexander Artemenko
658e1203b2 Simplier metadata processing, using dict's 'get' method with default value. 2010-12-17 00:07:55 +03:00
Alexander Artemenko
a322d6c4e8 Lowercase meta field's name before looking the processor. 2010-12-17 00:04:45 +03:00
Philippe Pepiot
d489000c65 Add syntax highlight support for markdown posts 2010-11-24 15:49:10 +01:00
Alexis Metaireau
32102dae12 Fix a FAQ mistake. 2010-11-15 18:58:54 +00:00