|
Revision 309:d100e5bc22b7, 298 bytes
(checked in by Stefan Schwarzer <sschwarzer@sschwarzer.net>, 1 year ago)
|
Added a module `dirtree` which handles scanning of directory trees for
use in `converter.dir_to_html`. `dirtree` has the additional
functionality to collect information about parent and sibling items
for all items.
For example, for the directory tree
/root/abc
/root/abc/abc
/root/abc/def
/root/abc/ghi
/root/def
/root/def/abc
it finds out that /root/abc/abc has no previous sibling, /root/abc/ghi
has no last, and that the previous sibling of /root/def is /root/abc.
More information can be found in the docstrings of the new module and
the doctest file. |
| Line | |
|---|
| 1 |
Testing the ``converter`` module |
|---|
| 2 |
================================ |
|---|
| 3 |
|
|---|
| 4 |
The ``converter`` module contains several functions which turn certain |
|---|
| 5 |
data into HTML code. For example, ``dir_to_html`` takes a file system |
|---|
| 6 |
path and returns HTML code representing the directory tree rooted at |
|---|
| 7 |
the specified path. |
|---|
| 8 |
|
|---|