|
|
Basic features![]() Structured Text (and restructured text) is just plain simple ascii text. The speciality is that it supports formatting and uses this primitive text formating to build HTML from this. So you can write just your text and the HTML will be built in the background. The following elements of restructured text are supported in the Python Desktop Server:
![]() Advanced featuresFieldlists are definitions of fieldname and field value. These are simple tabels (and are rendered as tables), so they might come in handy. But since they are tables, they often pose accessibility problems!
Macros and stuff like that still works, as the restructured text processor is just applied before handing over the text to the cheetah template engine. If there are problems with macro expressions and restructured text interpretation, just put your macro into backticks. This is usefull for links in macro calls: Docutils would interpret them and so break the layout and macro call. So just put them into ` characters. ![]() ![]() The source for this storyYou can look at the source of this story for samples of what is supported: Basic features
-------------- .. note:: This text is a simple introduction into restructured Text. Of course it's not as complete as the `official documentation`_, but it can give an overview, especially with regard to how this is used in the "PyDS". Structured Text (and restructured text) is just plain simple ascii text. The speciality is that it supports formatting and uses this primitive text formating to build HTML from this. So you can write just your text and the HTML will be built in the background. The following elements of restructured text are supported in the "PyDS": - paragraphs (normal, blockquotes, preformats) .. hint:: Undefined elements of restructured text are usually just ignored and their content is rendered as plain text. But this might lead to weird formattings from time to time. This is especially true for directives as listed in the `directives documentation`_, as only part of it is implemented int reST itself. Advanced features Macros and stuff like that still works, as the restructured text processor is just applied before handing over the text to the cheetah template engine. If there are problems with macro expressions and restructured text interpretation, just put your macro into backticks. This is usefull for links in macro calls: Docutils would interpret them and so break the layout and macro call. So just put them into \` characters. .. note:: both (the "PyDS" and restructured text) support shortcuts. Both forms should work. For example |PyDS| links to the homepage in the same way as "PyDS". |:-O| The source for this story You can look at the source of this story for samples of what is supported: .. _Source of this story: $macros.quotedStorySource(16) .. _Python: http://www.python.org/ .. [cit001] Put your citation stuff here
last change 2003-06-12 17:19:28 |
Shows what parts of Structured Text is implemented.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||