Commit graph

1,972 commits

Author SHA1 Message Date
bmcorser
d22b089241 Adding placeholder files for regression test 2013-08-24 13:41:22 +01:00
bmcorser
9d583961e7 Fix for THEME_STATIC_PATHS by copying sensitively
If more than one path is defined in THEME_STATIC_PATHS, the theme's
static directory in output is deleted and replaced by the following
path's files.

Using `shutil.rmtree` to remove the entire destination tree if overwrite
is `True` assumes that we didn't want anything at all that was there. We
should recurse through the directory and their subdirs instead, leaving
things put there by the previous path where they were.

I lazily copied almost verbatim the solution for recursively copying a
diectory from http://stackoverflow.com/a/1994840.

The reason for this is patch is that without it, my plugin is broken! It
also makes my code a lot less crazy:

a83f066
2013-08-21 20:28:22 +01:00
Alexis Metaireau
1fad70e5b9 Merge pull request #1053 from kura/remove-youtube
Removed YouTube directive as it's been moved to a Plugin
2013-08-19 03:47:51 -07:00
Kura
895945e3cc Removed YouTube directive as it's been moved to a Plugin 2013-08-19 11:45:59 +01:00
Alexis Metaireau
2e845feb02 Merge pull request #1050 from getpelican/content-written-signal
Add a content_written signal
2013-08-17 11:07:55 -07:00
Alexis Métaireau
56371aaf0f update the changelog 2013-08-17 17:42:54 +02:00
Alexis Metaireau
39570053e1 Merge pull request #1051 from getpelican/relative-links
Add categories and tags to the replacement mechanism.
2013-08-17 08:41:50 -07:00
Alexis Métaireau
e2ca6d7608 Add categories and tags to the replacement mechanism. 2013-08-17 17:36:13 +02:00
Alexis Métaireau
339955376e Add a content_written signal 2013-08-17 12:48:34 +02:00
Alexis Métaireau
2a599b8646 Reactivate travis IRC reports. 2013-08-17 01:23:09 +02:00
Alexis Métaireau
aae56fee39 exception.message was removed in py 3.X 2013-08-17 01:12:39 +02:00
Alexis Métaireau
73b37989f7 update the readers tests 2013-08-17 01:02:07 +02:00
Alexis Metaireau
2be674c909 Merge pull request #903 from dominiqueplante/readers.read_file-throwsexception
Add unit test for the case for handing unhandled extension
2013-08-16 15:34:49 -07:00
Alexis Metaireau
1fdda30c9b Merge pull request #1014 from dbrgn/test_output_locale
Explicitly set locale when generating test output
2013-08-16 15:09:07 -07:00
Alexis Metaireau
09c9d48a6a Merge pull request #1040 from ssbarnea/master
Fixing #1038 by allowing nice URLs.
2013-08-16 15:01:28 -07:00
Alexis Metaireau
9ea3871568 Merge pull request #1049 from kenmazy/BetterStaticGenerator
StaticGenerator now stores file list in context.
2013-08-16 14:59:49 -07:00
Ken Jung
6191b2919e StaticGenerator now stores file list in context.
This allows plugins and other generators to easily add files to be
simply copied over.
2013-08-16 13:31:14 -07:00
Justin Mayer
9645356eeb Merge pull request #929 from nicholaskuechler/cf_support_for_quickstart
Adds Rackspace Cloud Files support to quickstart
2013-08-13 06:22:47 -07:00
Justin Mayer
7ddb542ac4 Merge pull request #1031 from talha131/bugfix-autoreload-doesnt-work
Fix for a bug that will make autoreload fail
2013-08-13 06:17:56 -07:00
Justin Mayer
853ce866cb Merge pull request #1041 from shabob/tagbranch
Enhance tag cloud docs
2013-08-13 06:14:52 -07:00
Daniel Goldsmith
d9816be5de Tag Cloud made functional 2013-08-13 10:46:41 +01:00
Sorin Sbarnea
3b315fbc53 Fixing #1038 by allowing nice URLs. 2013-08-12 19:23:57 +01:00
Alexis Métaireau
472abb6fd9 Activate coveralls.io support 2013-08-12 14:49:25 +02:00
Justin Mayer
71a2c14d1b Merge pull request #1032 from talha131/fix-docs-typo
Fix omitted signal name change in docs
2013-08-10 15:00:47 -07:00
Talha Mansoor
b0a13a851c Fix a typo in the docs
getpelican/pelican@f2d6f77462 changed
`article_generate_context` to `article_generator_context`. This commit
updates the docs to reflect the change.
2013-08-11 02:20:25 +05:00
Talha Mansoor
a7152716e2 Receive the two values returned from get_instance()
`get_instance()` returns two values. Old code, instead of unpacking two
values in two variables, placed the tuple in a single variable
`pelican`.

Later in the same block when `pelican.run()` was called, it resulted in
error.

```
-> Modified: content, theme, settings. re-generating...
CRITICAL: ("'tuple' object has no attribute 'run'",)
CRITICAL: 'tuple' object has no attribute 'run'
Traceback (most recent call last):
  File "/Users/talha/Repos/VirtualEnvs/pelican-dev/bin/pelican", line 8,
  in <module>
    load_entry_point('pelican==3.3', 'console_scripts', 'pelican')()
    File
    "/Users/talha/Repos/VirtualEnvs/pelican-dev/lib/python2.7/site-packages/pelican-3.3-py2.7.egg/pelican/__init__.py",
    line 353, in main pelican.run()
```

Either the returned value should be unpacked properly or
`pelican[0].run` should be called.
2013-08-11 01:43:27 +05:00
Justin Mayer
f2aef81c96 Work around pytz & pip 1.4+ problem. Fixes #996.
The latest version of pip (1.4) no longer installs pre-release versions
(alpha, beta, etc.) by default. Because pytz uses an unorthodox version
number scheme, pip thinks it's a pre-release and skips it. This
change to setup.py should alleviate the problem until it is otherwise
resolved.
2013-08-08 12:08:30 -07:00
Justin Mayer
d824b79a19 Merge pull request #1020 from saimn/readers
Don't warn too loud about missing dependencies.
2013-08-07 14:54:58 -07:00
Simon Conseil
c875c27e83 Don't warn too loud about missing dependencies.
- Show the messages only once for each Reader
- Decrease the logging level
2013-08-07 22:43:08 +02:00
Justin Mayer
24e2ad5b3f Improve AsciiDoc parts of Getting Started docs 2013-08-07 12:45:26 -07:00
Justin Mayer
5a469dc2e3 Merge pull request #1011 from saimn/readers
Refactor readers and remove MARKUP. Fixes #866
2013-08-07 12:34:22 -07:00
Justin Mayer
0df12e31e2 Merge pull request #974 from dbrgn/tags_authors_setting_fix
Tags/Authors Setting Fix
2013-08-06 16:18:37 -07:00
Simon Conseil
f47f054d0b Add documentation for readers. 2013-08-07 00:43:49 +02:00
Simon Conseil
bab8d0b26a Move the "find image with an empty alt" block in a function. 2013-08-07 00:36:40 +02:00
Simon Conseil
85ea737a98 Add a signal to give access to the dict of Reader classes. 2013-08-07 00:36:40 +02:00
Simon Conseil
cfe72c2736 Disable asciidoc files for tests 2013-08-06 23:42:41 +02:00
Simon Conseil
4bc4b1500c Refactor readers and remove MARKUP
Add a `Readers` class which contains a dict of file extensions / `Reader`
instances. This dict can be overwritten with a `READERS` settings, for instance
to avoid processing *.html files:

    READERS = {'html': None}

Or to add a custom reader for the `foo` extension:

    READERS = {'foo': FooReader}

This dict is no storing the Reader classes as it was done before with
`EXTENSIONS`. It stores the instances of the Reader classes to avoid instancing
for each file reading.
2013-08-06 23:42:41 +02:00
Alexis Metaireau
c3aa85831f Merge pull request #1015 from karmadharma/morepygmentsoptions
Adding more options for pygments syntax highlighting
2013-08-06 07:52:09 -07:00
SDGSDG
ece437f8fd Added more pygments options for code blocks 2013-08-05 22:50:49 -07:00
Nicholas Kuechler
6b68d94079 Adds Rackspace Cloud Files support to quickstart and fabfile 2013-08-05 23:30:31 -05:00
Danilo Bargen
bbea6d1747 Explicitly set locale when generating test output 2013-08-05 19:18:47 +02:00
Danilo Bargen
42f9726ffa Support TAGS_* and AUTHORS_* by default. 2013-08-05 19:16:00 +02:00
Justin Mayer
e228357f58 Merge pull request #1002 from russkel/sourcecodefix
fix py3 support for sourcecode directive
2013-08-05 08:54:35 -07:00
Russ Webber
5a8f5cefdd fix py3 support for sourcecode directive
added sourcecode to the functional test so it's tested *somewhere*.
fixes #963
2013-08-05 23:45:48 +08:00
Alexis Metaireau
ea6d0cf5b5 Merge pull request #1007 from saimn/refactor-tests
Refactor test_generators and pelican_open
2013-08-05 08:02:45 -07:00
Alexis Métaireau
05437a15a9 Remove the reference to the PDF generation in the docs. Fix #1013 2013-08-05 10:40:06 +02:00
Justin Mayer
97c2598cdf Merge pull request #1006 from saimn/fix_docutils
Use the `docutils` variable to check if docutils is installed, not `core`
2013-08-04 20:58:39 -07:00
Justin Mayer
d4ba9dcf21 Merge pull request #895 from Rogdham/empty_alt
Add warnings for img with empty alts. Fixes #647.
2013-08-04 20:54:23 -07:00
Justin Mayer
23f7a12b52 Merge pull request #1010 from kylewm/pdf-plugin
Move PDF generation to a plugin (Fixes #1009)
2013-08-04 20:30:31 -07:00
Justin Mayer
f9a6d10eec Merge pull request #1004 from russkel/hgrm
Remove old mercurial files
2013-08-04 20:15:53 -07:00