Hi,
this is the first time I use Sphinx for documentation and I got a
conceptual question about how to make an own template.
What I want to do is to use a text.rst file for my documentation text.
Also I defined a template that has two separeted parts - one for a
general description and one part for the main content. This parts are
unfortunately not at the same place in the template code, so I have to
use two blocks I guess.
Now my question is how I can say my template blocks, which text they
should use from the text.rst file? Can I somehow define variables,
that mark a specific chapter in the text file or is there an other way
to do this?
Thanks in advance, Kind regards,
HavanaB
Example-Codes:
Template with two blocks:
<div class="top_content_box">
<div class="top_content_description">
{% block contentdescription %}
{% endblock %}
</div>
</div>
<div id="main">
<div class="main_content_box">
<div class="main_content_text">
{% block contentmain %}
{% endblock %}
</div>...
And from my text file I want two different chapters that are used in
this blocks:
===========
Reference
===========
Description
====================
Some text as description.
MainContent
=============
Some other text that should be used
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.