dave mankoff
d5bfec3a8b
update documentation and remove commented out code
2013-01-28 22:25:15 -05:00
dave mankoff
2a3d7d0319
fix python3 support
2013-01-28 22:21:45 -05:00
dave mankoff
7b59b34a73
get tests passing
2013-01-28 22:11:06 -05:00
dave mankoff
5f639b9a3b
git rebase master
2013-01-28 21:46:54 -05:00
dave mankoff
357f3a3da2
properly write out charref's
2013-01-28 21:46:23 -05:00
dave mankoff
bc2bc7a330
git merge upstream/master
2013-01-28 21:41:42 -05:00
W. Trevor King
004adfa5cc
content: Convert Path.filename to .source_path
...
Making everything consistent is a bit awkward, since this is a
commonly used attribute, but I've done my best.
Reasons for not consolidating on `filename`:
* It is often used for the "basename" (last component in the path).
Using `source_path` makes it clear that this attribute can contain
multiple components.
Reasons for not consolidating on `filepath`:
* It is barely used in the Pelican source, and therefore easy to
change.
* `path` is more Pythonic. The only place `filepath` ever show up in
the documentation for `os`, `os.path`, and `shutil` is in the
`os.path.relpath` documentation [1].
Reasons for not consolidating on `path`:
* The Page elements have both a source (this attribute) and a
destination (.save_as). To avoid confusion for developers not aware
of this, make it painfully obvious that this attribute is for the
source. Explicit is better than implicit ;).
Where I was touching the line, I also updated the string formatting in
StaticGenerator.generate_output to use the forward compatible
'{}'.format() syntax.
[1]: http://docs.python.org/2/library/os.path.html#os.path.relpath
2013-01-18 07:57:35 -05:00
Alexis Métaireau
149ca493e0
Annotate py3k code when needed.
2013-01-11 18:55:04 +01:00
Dirk Makowski
71995d5e1b
Port pelican to python 3.
...
Stays compatible with 2.x series, thanks to an unified codebase.
2013-01-11 03:20:09 +01:00
Michael Reneer
b35947f7a6
Cleaned up markdown read.
2012-12-11 00:48:47 -05:00
Michael Reneer
733e41a6a7
Updated markdown reader to parse summary metadata as markup.
2012-12-11 00:34:15 -05:00
Bruno Binet
f79c844855
remote duplicated import statement (thanks @traeblain)
2012-12-09 08:30:17 +01:00
Bruno Binet
8bb86d3e5d
revert #523
...
we don't need a new MARKDOWN_EXTENSIONS setting because the equivalent setting
MD_EXTENSIONS already exists.
2012-12-03 22:35:11 +01:00
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
dave mankoff
c0578eb9ab
handle escaped chars in html properly
2012-06-20 23:19:06 -04:00
dave mankoff
56800a1d43
fix failing test with new open context manager
2012-06-20 20:02:41 -04:00
dave mankoff
caa4442abb
re-import cgi. properly turn utils.open into a context manager
2012-06-20 19:59:32 -04:00
dave mankoff
c608d39aa4
re-import htmlparser
2012-06-20 19:52:17 -04:00
dave mankoff
7b6a97dee0
git merge master
2012-06-20 19:49:31 -04:00
dave mankoff
0373c15e43
include html comments properly in reader
2012-06-14 23:16:27 -04:00
dave mankoff
cc1988fbda
new HTMLReader
2012-06-14 23:08:34 -04:00
dave mankoff
c6d1de14f3
better html parser
2012-06-10 18:27:38 -04: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