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:
parent
7f571e0a28
commit
06759c0a59
12
playground/rst/test0.rst
Normal file
12
playground/rst/test0.rst
Normal 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
|
||||
|
@ -27,3 +27,7 @@ Example 1
|
||||
but I prefer not having a figure at all for the sake
|
||||
of cleanleness.
|
||||
|
||||
|
||||
.. include:: generated.rst
|
||||
|
||||
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user