summaryrefslogtreecommitdiff
path: root/docutils/test/data/dependencies.txt
blob: 43eaa8613f59864fdad842907775ab7c1f26a737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Test input for test_dependencies.

Docutils can write a list of files required to generate the output like
included files or embedded stylesheets. This is particularly useful in
conjunction with programs like ``make``.

Included files are recorded:

.. include:: include.txt

.. raw:: HTML
   :file: raw.txt

Dependencies are recorded only once:

.. include:: include.txt

Image files are only recorded, if actually accessed
(to extract the size or if embedded in the output document):

.. image:: test.jpg

.. figure:: ../docs/user/rst/images/title.png
   :figwidth: image

Scaled images without given size are recorded by the html writer:

.. image:: ../docs/user/rst/images/biohazard.png
   :scale: 50 %

TODO: Paths in included files should be rewritten relative to the base
      document.

      * when loading images,
      * when recording dependencies.

.. include: subdir/dependencies-included.txt