2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

playground: rst: more examples

This commit is contained in:
Jérôme Carretero 2013-08-25 16:35:49 -04:00
parent 7f571e0a28
commit 06759c0a59
3 changed files with 26 additions and 0 deletions

12
playground/rst/test0.rst Normal file
View File

@ -0,0 +1,12 @@
#########
Example 0
#########
:purpose: demonstrate very basic rst processing
.. figure:: test.svg
:align: center
:width: 50%
This is a static svg file

View File

@ -27,3 +27,7 @@ Example 1
but I prefer not having a figure at all for the sake
of cleanleness.
.. include:: generated.rst

View File

@ -12,6 +12,16 @@ def configure(conf):
conf.load('tex')
def build(bld):
bld(
features='rst',
target='test0.html',
source='test0.rst',
)
bld(
target='generated.rst',
rule=lambda tsk: Utils.writef( tsk.outputs[0].abspath(), "Generated contents in %s" % tsk.outputs[0].name),
)
bld(
features='rst',