teach plugins with dependencies to behave

This commit is contained in:
Deniz Turgut
2013-04-12 18:26:32 -04:00
parent c694cb404d
commit 31ccbde072
86 changed files with 45 additions and 930 deletions

View File

@@ -0,0 +1,4 @@
FILENAME_METADATA example
#########################
Some cool stuff!

View File

@@ -0,0 +1,7 @@
Trop bien !
###########
:lang: fr
:slug: oh-yeah
Et voila du contenu en français

View 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

View 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.

View 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

View File

@@ -0,0 +1,7 @@
Article 1
#########
:date: 2011-02-17
:yeah: oh yeah !
Article 1

View File

@@ -0,0 +1,6 @@
Article 2
#########
:date: 2011-02-17
Article 2

View File

@@ -0,0 +1,6 @@
Article 3
#########
:date: 2011-02-17
Article 3

View 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)

View 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.

View File

@@ -0,0 +1,2 @@
User-agent: *
Disallow: /static/pictures

View 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!

View File

@@ -0,0 +1,6 @@
{% extends "base.html" %}
{% block content %}
Some text
{% endblock %}

View 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.

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View 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

View 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>`_

View File

@@ -0,0 +1 @@
not to be parsed