teach plugins with dependencies to behave
This commit is contained in:
4
test_data/content/2012-11-30_filename-metadata.rst
Normal file
4
test_data/content/2012-11-30_filename-metadata.rst
Normal file
@@ -0,0 +1,4 @@
|
||||
FILENAME_METADATA example
|
||||
#########################
|
||||
|
||||
Some cool stuff!
|
||||
7
test_data/content/another_super_article-fr.rst
Normal file
7
test_data/content/another_super_article-fr.rst
Normal file
@@ -0,0 +1,7 @@
|
||||
Trop bien !
|
||||
###########
|
||||
|
||||
:lang: fr
|
||||
:slug: oh-yeah
|
||||
|
||||
Et voila du contenu en français
|
||||
20
test_data/content/another_super_article.rst
Normal file
20
test_data/content/another_super_article.rst
Normal file
@@ -0,0 +1,20 @@
|
||||
Oh yeah !
|
||||
#########
|
||||
|
||||
:tags: oh, bar, yeah
|
||||
:date: 2010-10-20 10:14
|
||||
:category: bar
|
||||
:author: Alexis Métaireau
|
||||
:slug: oh-yeah
|
||||
:license: WTFPL
|
||||
|
||||
Why not ?
|
||||
=========
|
||||
|
||||
After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
|
||||
YEAH !
|
||||
|
||||
.. image:: |filename|/pictures/Sushi.jpg
|
||||
:height: 450 px
|
||||
:width: 600 px
|
||||
:alt: alternate text
|
||||
9
test_data/content/article2-fr.rst
Normal file
9
test_data/content/article2-fr.rst
Normal file
@@ -0,0 +1,9 @@
|
||||
Deuxième article
|
||||
################
|
||||
|
||||
:tags: foo, bar, baz
|
||||
:date: 2012-02-29
|
||||
:lang: fr
|
||||
:slug: second-article
|
||||
|
||||
Ceci est un article, en français.
|
||||
9
test_data/content/article2.rst
Normal file
9
test_data/content/article2.rst
Normal file
@@ -0,0 +1,9 @@
|
||||
Second article
|
||||
##############
|
||||
|
||||
:tags: foo, bar, baz
|
||||
:date: 2012-02-29
|
||||
:lang: en
|
||||
:slug: second-article
|
||||
|
||||
This is some article, in english
|
||||
7
test_data/content/cat1/article1.rst
Normal file
7
test_data/content/cat1/article1.rst
Normal file
@@ -0,0 +1,7 @@
|
||||
Article 1
|
||||
#########
|
||||
|
||||
:date: 2011-02-17
|
||||
:yeah: oh yeah !
|
||||
|
||||
Article 1
|
||||
6
test_data/content/cat1/article2.rst
Normal file
6
test_data/content/cat1/article2.rst
Normal file
@@ -0,0 +1,6 @@
|
||||
Article 2
|
||||
#########
|
||||
|
||||
:date: 2011-02-17
|
||||
|
||||
Article 2
|
||||
6
test_data/content/cat1/article3.rst
Normal file
6
test_data/content/cat1/article3.rst
Normal file
@@ -0,0 +1,6 @@
|
||||
Article 3
|
||||
#########
|
||||
|
||||
:date: 2011-02-17
|
||||
|
||||
Article 3
|
||||
7
test_data/content/cat1/markdown-article.md
Normal file
7
test_data/content/cat1/markdown-article.md
Normal file
@@ -0,0 +1,7 @@
|
||||
Title: A markdown powered article
|
||||
Date: 2011-04-20
|
||||
|
||||
You're mutually oblivious.
|
||||
|
||||
[a root-relative link to unbelievable](|filename|/unbelievable.rst)
|
||||
[a file-relative link to unbelievable](|filename|../unbelievable.rst)
|
||||
7
test_data/content/draft_article.rst
Normal file
7
test_data/content/draft_article.rst
Normal file
@@ -0,0 +1,7 @@
|
||||
A draft article
|
||||
###############
|
||||
|
||||
:status: draft
|
||||
|
||||
This is a draft article, it should live under the /drafts/ folder and not be
|
||||
listed anywhere else.
|
||||
2
test_data/content/extra/robots.txt
Normal file
2
test_data/content/extra/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /static/pictures
|
||||
9
test_data/content/pages/hidden_page.rst
Normal file
9
test_data/content/pages/hidden_page.rst
Normal file
@@ -0,0 +1,9 @@
|
||||
This is a test hidden page
|
||||
##########################
|
||||
|
||||
:category: test
|
||||
:status: hidden
|
||||
|
||||
This is great for things like error(404) pages
|
||||
Anyone can see this page but it's not linked to anywhere!
|
||||
|
||||
6
test_data/content/pages/jinja2_template.html
Normal file
6
test_data/content/pages/jinja2_template.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
Some text
|
||||
|
||||
{% endblock %}
|
||||
9
test_data/content/pages/override_url_saveas.rst
Normal file
9
test_data/content/pages/override_url_saveas.rst
Normal file
@@ -0,0 +1,9 @@
|
||||
Override url/save_as
|
||||
####################
|
||||
|
||||
:date: 2012-12-07
|
||||
:url: override/
|
||||
:save_as: override/index.html
|
||||
|
||||
Test page which overrides save_as and url so that this page will be generated
|
||||
at a custom location.
|
||||
12
test_data/content/pages/test_page.rst
Normal file
12
test_data/content/pages/test_page.rst
Normal file
@@ -0,0 +1,12 @@
|
||||
This is a test page
|
||||
###################
|
||||
|
||||
:category: test
|
||||
|
||||
Just an image.
|
||||
|
||||
.. image:: |filename|/pictures/Fat_Cat.jpg
|
||||
:height: 450 px
|
||||
:width: 600 px
|
||||
:alt: alternate text
|
||||
|
||||
BIN
test_data/content/pictures/Fat_Cat.jpg
Normal file
BIN
test_data/content/pictures/Fat_Cat.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
BIN
test_data/content/pictures/Sushi.jpg
Normal file
BIN
test_data/content/pictures/Sushi.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
BIN
test_data/content/pictures/Sushi_Macro.jpg
Normal file
BIN
test_data/content/pictures/Sushi_Macro.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
36
test_data/content/super_article.rst
Normal file
36
test_data/content/super_article.rst
Normal file
@@ -0,0 +1,36 @@
|
||||
This is a super article !
|
||||
#########################
|
||||
|
||||
:tags: foo, bar, foobar
|
||||
:date: 2010-12-02 10:14
|
||||
:category: yeah
|
||||
:author: Alexis Métaireau
|
||||
:summary:
|
||||
Multi-line metadata should be supported
|
||||
as well as **inline markup**.
|
||||
|
||||
Some content here !
|
||||
|
||||
This is a simple title
|
||||
======================
|
||||
|
||||
And here comes the cool stuff_.
|
||||
|
||||
.. image:: |filename|/pictures/Sushi.jpg
|
||||
:height: 450 px
|
||||
:width: 600 px
|
||||
:alt: alternate text
|
||||
|
||||
.. image:: |filename|/pictures/Sushi_Macro.jpg
|
||||
:height: 450 px
|
||||
:width: 600 px
|
||||
:alt: alternate text
|
||||
|
||||
::
|
||||
|
||||
>>> from ipdb import set_trace
|
||||
>>> set_trace()
|
||||
|
||||
→ And now try with some utf8 hell: ééé
|
||||
|
||||
.. _stuff: http://books.couchdb.org/relax/design-documents/views
|
||||
9
test_data/content/unbelievable.rst
Normal file
9
test_data/content/unbelievable.rst
Normal file
@@ -0,0 +1,9 @@
|
||||
Unbelievable !
|
||||
##############
|
||||
|
||||
:date: 2010-10-15 20:30
|
||||
|
||||
Or completely awesome. Depends the needs.
|
||||
|
||||
`a root-relative link to markdown-article <|filename|/cat1/markdown-article.md>`_
|
||||
`a file-relative link to markdown-article <|filename|cat1/markdown-article.md>`_
|
||||
1
test_data/content/unwanted_file
Normal file
1
test_data/content/unwanted_file
Normal file
@@ -0,0 +1 @@
|
||||
not to be parsed
|
||||
Reference in New Issue
Block a user