diff options
author | Justin Mayer <entroP@gmail.com> | 2020-04-14 21:39:47 +0200 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2020-04-14 21:39:47 +0200 |
commit | 7eae9b1abcfccb14f451a441674a84c85294ae48 (patch) | |
tree | b367a38e14df4e1d2a13065fd5746f90ec11adf4 /samples | |
parent | 2d590bb8c183ba22af4b7ed3241fd4f80069fa73 (diff) | |
download | pelican-7eae9b1abcfccb14f451a441674a84c85294ae48.tar.gz |
Reduce warnings and errors in sample content
This reduces the warnings and errors when generating the sample content
from twelve to one (intentional) warning. The latter is expected by
assertLogCountEqual() in the "test_basic_generation_works" test.
Diffstat (limited to 'samples')
-rw-r--r-- | samples/content/another_super_article-fr.rst | 1 | ||||
-rw-r--r-- | samples/content/another_super_article.rst | 1 | ||||
-rw-r--r-- | samples/content/draft_article.rst | 1 | ||||
-rw-r--r-- | samples/content/pages/test_page.rst | 6 | ||||
-rwxr-xr-x | samples/pelican.conf.py | 5 |
5 files changed, 12 insertions, 2 deletions
diff --git a/samples/content/another_super_article-fr.rst b/samples/content/another_super_article-fr.rst index 71ac9635..dcd252a7 100644 --- a/samples/content/another_super_article-fr.rst +++ b/samples/content/another_super_article-fr.rst @@ -1,6 +1,7 @@ Trop bien ! ########### +:date: 2010-10-20 10:14 :lang: fr :slug: oh-yeah diff --git a/samples/content/another_super_article.rst b/samples/content/another_super_article.rst index 37727116..a170c4a1 100644 --- a/samples/content/another_super_article.rst +++ b/samples/content/another_super_article.rst @@ -5,6 +5,7 @@ Oh yeah ! :date: 2010-10-20 10:14 :category: bar :author: Alexis Métaireau +:lang: en :slug: oh-yeah :license: WTFPL diff --git a/samples/content/draft_article.rst b/samples/content/draft_article.rst index 76ce9a16..6b383ca6 100644 --- a/samples/content/draft_article.rst +++ b/samples/content/draft_article.rst @@ -1,6 +1,7 @@ A draft article ############### +:date: 2011-05-08 15:58 :status: draft This is a draft article, it should live under the /drafts/ folder and not be diff --git a/samples/content/pages/test_page.rst b/samples/content/pages/test_page.rst index 2285f17b..3747faed 100644 --- a/samples/content/pages/test_page.rst +++ b/samples/content/pages/test_page.rst @@ -5,8 +5,12 @@ This is a test page Just an image. -.. image:: |filename|/pictures/Fat_Cat.jpg +.. image:: {static}/pictures/Fat_Cat.jpg :height: 450 px :width: 600 px :alt: alternate text +.. image:: |filename|/images/Fat_Cat.jpg + :height: 450 px + :width: 600 px + :alt: wrong path since 'images' folder does not exist diff --git a/samples/pelican.conf.py b/samples/pelican.conf.py index 861c1f53..2b99ef5b 100755 --- a/samples/pelican.conf.py +++ b/samples/pelican.conf.py @@ -40,13 +40,16 @@ EXTRA_PATH_METADATA = { # static paths will be copied without parsing their contents STATIC_PATHS = [ - 'pictures', + 'images', 'extra/robots.txt', ] # custom page generated with a jinja2 template TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'} +# there is no other HTML content +READERS = {'html': None} + # code blocks with line numbers PYGMENTS_RST_OPTIONS = {'linenos': 'table'} |