Index of /sandbox/grubert/test

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[TXT]tables.txt 2018-06-17 08:52 8.5K 
[   ]tables.txt.tex.ref 2018-06-17 08:52 8.0K 
[   ]from_test_txt-16.txt..>2018-06-17 08:52 7.4K 
[   ]from_test_txt-03.txt..>2018-06-17 08:52 7.1K 
[   ]footnotes.txt.tex.ref 2018-06-17 08:52 6.2K 
[   ]from_test_txt-15.txt..>2018-06-17 08:52 4.6K 
[   ]characters.txt.tex.ref 2018-06-17 08:52 4.6K 
[   ]literal.txt.tex.ref 2018-06-17 08:52 4.1K 
[   ]from_test_txt-01.txt..>2018-06-17 08:52 4.1K 
[   ]links.txt.tex.ref 2018-06-17 08:52 3.9K 
[TXT]footnotes.txt 2018-06-17 08:52 3.9K 
[   ]from_test_txt-13.txt..>2018-06-17 08:52 3.4K 
[   ]images.txt.tex.ref 2018-06-17 08:52 3.1K 
[   ]docinfo-2.txt.tex.ref 2018-06-17 08:52 2.8K 
[   ]tables-multirow.txt...>2018-06-17 08:52 2.7K 
[TXT]from_test_txt-16.txt 2018-06-17 08:52 2.7K 
[TXT]literal.txt 2018-06-17 08:52 2.6K 
[   ]from_test_txt-08.txt..>2018-06-17 08:52 2.4K 
[TXT]characters.txt 2018-06-17 08:52 2.3K 
[   ]from_test_txt-14.txt..>2018-06-17 08:52 2.2K 
[   ]from_test_txt-05.txt..>2018-06-17 08:52 2.2K 
[   ]docinfo.txt.tex.ref 2018-06-17 08:52 2.1K 
[TXT]links.txt 2018-06-17 08:52 2.0K 
[TXT]from_test_txt-01.txt 2018-06-17 08:52 1.9K 
[TXT]from_test_txt-03.txt 2018-06-17 08:52 1.6K 
[   ]from_test_txt-07.txt..>2018-06-17 08:52 1.6K 
[   ]no-citations.txt.tex..>2018-06-17 08:52 1.5K 
[   ]from_test_txt-19.txt..>2018-06-17 08:52 1.4K 
[   ]from_test_txt-18.txt..>2018-06-17 08:52 1.4K 
[   ]from_test_txt-09.txt..>2018-06-17 08:52 1.4K 
[   ]toc.txt.tex.ref 2018-06-17 08:52 1.3K 
[   ]from_test_txt-10.txt..>2018-06-17 08:52 1.3K 
[   ]from_test_txt-02.txt..>2018-06-17 08:52 1.3K 
[   ]from_test_txt-11.txt..>2018-06-17 08:52 1.2K 
[   ]from_test_txt-04.txt..>2018-06-17 08:52 1.2K 
[TXT]from_test_txt-12.txt 2018-06-17 08:52 1.2K 
[   ]from_test_txt-06.txt..>2018-06-17 08:52 1.1K 
[TXT]from_test_txt-15.txt 2018-06-17 08:52 1.1K 
[   ]from_test_txt-17.txt..>2018-06-17 08:52 1.1K 
[TXT]tables-multirow.txt 2018-06-17 08:52 1.1K 
[   ]internal_href.txt.te..>2018-06-17 08:52 936  
[TXT]header.txt-embed-sty..>2018-06-17 08:52 907  
[   ]header.txt-embed-sty..>2018-06-17 08:52 907  
[   ]header.txt-embed-sty..>2018-06-17 08:52 880  
[TXT]from_test_txt-13.txt 2018-06-17 08:52 803  
[   ]header.txt.tex.ref 2018-06-17 08:52 796  
[TXT]from_test_txt-08.txt 2018-06-17 08:52 778  
[TXT]docinfo-2.txt 2018-06-17 08:52 740  
[TXT]images.txt 2018-06-17 08:52 669  
[TXT]docinfo.txt 2018-06-17 08:52 655  
[TXT]from_test_txt-19.txt 2018-06-17 08:52 514  
[TXT]from_test_txt-18.txt 2018-06-17 08:52 514  
[TXT]from_test_txt-10.txt 2018-06-17 08:52 406  
[TXT]from_test_txt-09.txt 2018-06-17 08:52 400  
[TXT]from_test_txt-07.txt 2018-06-17 08:52 395  
[TXT]toc.txt 2018-06-17 08:52 262  
[TXT]from_test_txt-05.txt 2018-06-17 08:52 258  
[TXT]from_test_txt-11.txt 2018-06-17 08:52 254  
[TXT]no-citations.txt 2018-06-17 08:52 249  
[TXT]from_test_txt-04.txt 2018-06-17 08:52 223  
[TXT]from_test_txt-14.txt 2018-06-17 08:52 217  
[TXT]from_test_txt-17.txt 2018-06-17 08:52 208  
[TXT]from_test_txt-06.txt 2018-06-17 08:52 151  
[TXT]internal_href.txt 2018-06-17 08:52 127  
[TXT]from_test_txt-02.txt 2018-06-17 08:52 112  
[TXT]header.txt 2018-06-17 08:52 47  
[   ]from_test_txt-12.txt..>2018-06-17 08:52 0  

README: Docutils

README: Docutils

Author:

David Goodger

Contact:
goodger@users.sourceforge.net
Date:
2003-08-16
Web site:

http://docutils.sourceforge.net/

Thank you for downloading the Python Docutils project archive. As this is a work in progress, please check the project website for updated working files (snapshots). This project should be considered highly experimental; APIs are subject to change at any time.

Quick-Start

This is for those who want to get up & running quickly. Read on for complete details.

  1. Get and install the latest release of Python, available from

    http://www.python.org/

    Python 2.2 or later [1] is required; Python 2.2.2 or later is recommended.

  2. Use the latest Docutils code. Get the code from CVS or from the snapshot:

    http://docutils.sf.net/docutils-snapshot.tgz

    See Releases & Snapshots below for details.

  3. Unpack the tarball in a temporary directory (not directly in Python's site-packages) and install with the standard

    python setup.py install

    See Installation below for details.

  4. Use a front-end tool from the "tools" subdirectory of the same directory as in step 3. For example:

    cd tools
    html.py test.txt test.html

    See Usage below for details.

Purpose

The purpose of the Docutils project is to create a set of tools for processing plaintext documentation into useful formats, such as HTML, XML, and TeX. Support for the following sources has been implemented:

Support for the following sources is planned:

Releases & Snapshots

Putting together an official "Release" of Docutils is a significant effort, so it isn't done that often. In the meantime, the CVS snapshots always contain the latest code and documentation, usually updated within an hour of changes being committed to the repository, and usually bug-free:

To keep up to date on the latest developments, download fresh copies of the snapshots regularly. New functionality is being added weekly, sometimes daily. (There's also the CVS repository, and a mailing list for CVS messages. See the web site [address above] or spec/notes.txt for details.)

Requirements

To run the code, Python 2.2 or later [1] must already be installed. The latest release is recommended (2.2.2 as of this writing). Python is available from http://www.python.org/.

Project Files & Directories

Installation

The first step is to expand the .tar.gz or .tgz archive in a temporary directory (not directly in Python's site-packages). It contains a distutils setup file "setup.py". OS-specific installation instructions follow.

GNU/Linux, BSDs, Unix, Mac OS X, etc.

  1. Open a shell.

  2. Go to the directory created by expanding the archive:

    cd <archive_directory_path>
  3. Install the package:

    python setup.py install

    If the python executable isn't on your path, you'll have to specify the complete path, such as /usr/local/bin/python. You may need root permissions to complete this step.

You can also just run install.py; it does the same thing.

Windows

  1. Open a DOS box (Command Shell, MSDOS Prompt, or whatever they're calling it these days).

  2. Go to the directory created by expanding the archive:

    cd <archive_directory_path>
  3. Install the package:

    <path_to_python.exe>\python setup.py install

If your system is set up to run Python when you double-click on .py files, you can run install.py to do the same as the above.

Mac OS 8/9

  1. Open the folder containing the expanded archive.

  2. Double-click on the file "setup.py", which should be a "Python module" file.

    If the file isn't a "Python module", the line endings are probably also wrong, and you will need to set up your system to recognize ".py" file extensions as Python files. See http://gotools.sourceforge.net/mac/python.html for detailed instructions. Once set up, it's easiest to start over by expanding the archive again.

  3. The distutils options window will appear. From the "Command" popup list choose "install", click "Add", then click "OK".

If install.py is a "Python module" (see step 2 above if it isn't), you can run it (double-click) instead of the above. The distutils options window will not appear.

Usage

After unpacking and installing the Docutils package, the following shell commands will generate HTML for all included documentation:

cd <archive_directory_path>/tools
buildhtml.py ../

The final directory name of the <archive_directory_path> is "docutils" for snapshots. For official releases, the directory may be called "docutils-X.Y", where "X.Y" is the release version. Alternatively:

cd <archive_directory_path>
tools/buildhtml.py --config=tools/docutils.conf

Some files may generate system messages (warnings and errors). The tools/test.txt file (under the archive directory) contains 5 intentional errors. (They test the error reporting mechanism!)

There are many front-end tools in the unpacked "tools" subdirectory. You may want to begin with the "html.py" front-end tool. Most tools take up to two arguments, the source path and destination path, with STDIN and STDOUT being the defaults. Use the "--help" option to the front-end tools for details on options and arguments. See Docutils Front-End Tools (docs/tools.txt) for full documentation.

The package modules are continually growing and evolving. The docutils.statemachine module is usable independently. It contains extensive inline documentation (in reStructuredText format of course).

Contributions are welcome!

Running the Test Suite

To run the entire test suite, after installation open a shell and use the following commands:

cd <archive_directory_path>/test
./alltests.py

You should see a long line of periods, one for each test, and then a summary like this:

Ran 518 tests in 24.653s

OK
Elapsed time: 26.189 seconds

The number of tests will grow over time, and the times reported will depend on the computer running the tests. The difference between the two times represents the time required to set up the tests (import modules, create data structures, etc.).

If any of the tests fail, please open a bug report or send email. Please include all relevant output, information about your operating system, Python version, and Docutils version. To see the Docutils version, use these commands:

cd ../tools
./quicktest.py --version

Getting Help

If you have questions or need assistance with Docutils or reStructuredText, please post a message to the Docutils-Users mailing list.