Le 18/05/2010 17:23, Stéphane Klein a écrit :
Le 18/05/2010 14:48, Guenter Milde a écrit :
On 2010-05-18, Stéphane Klein wrote:

In include directive, I would like do that :

.. include:: ../README.txt
:start-line: 4

Docutils have this feature :
http://docutils.sourceforge.net/docs/ref/rst/directives.html#including-an-external-document-fragment


When I launch sphinx with this directive option, I've this error :

/home/stephane/projets/harobed/dirsize_monitor/dirsize_monitor/docs/index.txt:10:

(ERROR/3) Error in "include" directive:
unknown option: "start-line".

.. include:: ../README.txt
:start-line: 4

Why ? How can I do this task with Sphinx ?

The `start-line` option is new in Docutils version 0.6. Maybe your
Sphinx uses an older Docutils? Or the code needs to be ported to Sphinx?

Ok, I did a "pip install --upgrade doctutils", now ":start-line:" works
perfectly.

Sorry… no it doesn't work.

:(



--
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to