diff options
author | dakkar <dakkar@thenautilus.net> | 2009-09-07 17:55:04 +0200 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2009-09-07 17:55:04 +0200 |
commit | 14131b281ea4f60a44a4390e9fa730820aa6785b (patch) | |
tree | eb57adcd224d300fba5075f17a830be945abe7f1 /templates | |
parent | create "image" subdir, too (diff) | |
download | thenautilus-14131b281ea4f60a44a4390e9fa730820aa6785b.tar.gz thenautilus-14131b281ea4f60a44a4390e9fa730820aa6785b.tar.bz2 thenautilus-14131b281ea4f60a44a4390e9fa730820aa6785b.zip |
new documents about the makerbot
including images, and templates for "figure" and "image" ReST directives
Diffstat (limited to 'templates')
-rw-r--r-- | templates/figure.tt | 6 | ||||
-rw-r--r-- | templates/image.tt | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/templates/figure.tt b/templates/figure.tt new file mode 100644 index 0000000..5413caa --- /dev/null +++ b/templates/figure.tt @@ -0,0 +1,6 @@ +.. figure:: [% pic %]-t.jpg + :target: [% pic %].jpg + :class: [% IF class; class; ELSE; 'float-left'; END %] +[% IF alt %] :alt: [% alt.replace('\n',' ') %] +[% END -%] +[% IF content; FOREACH l = content.split('\n'); "\n " _ l; END; END %] diff --git a/templates/image.tt b/templates/image.tt new file mode 100644 index 0000000..686d4e6 --- /dev/null +++ b/templates/image.tt @@ -0,0 +1,5 @@ +.. image:: [% pic %]-t.jpg + :target: [% pic %].jpg +[% IF class %] :class: [% class %] +[% END; IF alt %] :alt: [% alt.replace('\n',' ') %] +[% END -%] |