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.
This commit is contained in:
Justin Mayer 2020-04-14 21:39:47 +02:00
commit 7eae9b1abc
29 changed files with 135 additions and 37 deletions

View file

@ -1,6 +1,7 @@
Trop bien !
###########
:date: 2010-10-20 10:14
:lang: fr
:slug: oh-yeah

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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'}