473,472 Members | 1,800 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Documentation examples needed

I am still wanting to produce Python standard format documentation for
Python extensions I have written. I have looked at the docs that come
with Python itself, but I am new to Latex, and don't know how to add the
document classes and styles from texinput for a new project.

Is there a small project with documentation in the Python standard that I
can use as an example?

--
Stuart D. Gathman <st****@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
Jul 18 '05 #1
5 2344
>>>>> "Stuart" == Stuart D Gathman <st****@bmsi.com> writes:

Stuart> I am still wanting to produce Python standard format
Stuart> documentation for Python extensions I have written. I have
Stuart> looked at the docs that come with Python itself, but I am new
Stuart> to Latex, and don't know how to add the document classes and
Stuart> styles from texinput for a new project.

Stuart> Is there a small project with documentation in the Python
Stuart> standard that I can use as an example?

We have some:

http://www.object-craft.com.au/projects/albatross/
http://www.object-craft.com.au/projects/sybase/sybase/

- Dave

--
http://www.object-craft.com.au
Jul 18 '05 #2
Hi Stuart,

The simplest way to get started with Python standard LaTeX markup
is to cut-and-paste from existing TeX files. Then follow-up with a
script to perform basic checks: see the current CVS for

Tools/scripts/texcheck.py

It will check for valid TeX markup, balanced delimiters, style warnings,
and common markup errors (for example, confusing forward and
backward slashes).

A better way to get started is to actually read the Documenting Python
section. In the end, you'll save more time and learn more than
the try-it and see if it works method.
Raymond Hettinger

"Stuart D. Gathman" <st****@bmsi.com> wrote in message
news:aUnRa.16108$o54.11296@lakeread05...
I am still wanting to produce Python standard format documentation for
Python extensions I have written. I have looked at the docs that come
with Python itself, but I am new to Latex, and don't know how to add the
document classes and styles from texinput for a new project.

Is there a small project with documentation in the Python standard that I
can use as an example?

--
Stuart D. Gathman <st****@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

Jul 18 '05 #3
On Thu, 17 Jul 2003 00:44:44 -0400, Dave Cole wrote:
Stuart> Is there a small project with documentation in the Python
Stuart> standard that I can use as an example?

We have some:

http://www.object-craft.com.au/projects/albatross/
http://www.object-craft.com.au/projects/sybase/sybase/


Thank you. Your Makefile is much less confusing than the one that comes
with Python! It also points out a shortcoming of the RPM packaging. The
python2-devel package includes everything you need to compile python
extension modules, but does not include what is needed to "compile"
python documentation! Are third party module writers not supposed to
document anything? :-) It looks like I'll have to download the Python
sources and create my own RPMs.

Presumably, I do not need *everything* in the Doc directory to compile my
own docs. Probably just the tools directory, and maybe texinputs and
templates. Is the list of what is needed for 3rd party docs documented
somewhere? I can create a python2-doc rpm for it.

--
Stuart D. Gathman <st****@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
Jul 18 '05 #4
Michele Simionato wrote:
"Stuart D. Gathman" <st****@bmsi.com> wrote in message
news:<aUnRa.16108$o54.11296@lakeread05>...
I am still wanting to produce Python standard format
documentation for
Python extensions I have written. I have looked at the docs that
come with Python itself, but I am new to Latex, and don't know
how to add the document classes and styles from texinput for a
new project.

Is there a small project with documentation in the Python
standard that I can use as an example?


Dave Kuhlman reported on the docutils mailing list that it was
working on a docutils writer to produce standard Python
documentation.

http://www.rexx.com/~dkuhlman/#docutilsdocpy


Right. This extension to Docutils makes it easy to generate LaTeX
files for input to the Python LaTeX documentation system. This
method enables you to write reStructuredText (reST) documents,
which have *minimal* mark-up, then translate them into LaTeX
documents. Use this and you may be able to avoid learning LaTeX,
which might *not* be a good thing. Also be aware, that this
method lacks features that are supported by LaTeX mark-up
described in "Documenting Python".

Here are updated links:

http://www.rexx.com/~dkuhlman/#docutils_pythonlatex
http://www.rexx.com/~dkuhlman/rstpythonlatex_intro.html
http://www.rexx.com/~dkuhlman/rstpythonlatex-1.0b.zip

I've also written a document about how to set yourself up for
processing documents with the Python LaTeX documentation system
and the above mentioned reST-to-Python-LaTeX translator..
You can find it here:

http://www.rexx.com/~dkuhlman/#pythonlatexsetup
http://www.rexx.com/~dkuhlman/pythonlatexsetup.html
http://www.rexx.com/~dkuhlman/pythonlatexsetup.zip

Comments are welcome.

- Dave

--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
dk******@rexx.com
Jul 18 '05 #5
Stuart D. Gathman wrote:
On Thu, 17 Jul 2003 00:44:44 -0400, Dave Cole wrote:
Stuart> Is there a small project with documentation in the Python
Stuart> standard that I can use as an example?

We have some:

http://www.object-craft.com.au/projects/albatross/
http://www.object-craft.com.au/projects/sybase/sybase/


Thank you. Your Makefile is much less confusing than the one that
comes
with Python! It also points out a shortcoming of the RPM
packaging. The python2-devel package includes everything you need
to compile python extension modules, but does not include what is
needed to "compile"
python documentation! Are third party module writers not supposed
to document anything? :-) It looks like I'll have to download the
Python sources and create my own RPMs.

Presumably, I do not need *everything* in the Doc directory to
compile my
own docs. Probably just the tools directory, and maybe texinputs
and
templates. Is the list of what is needed for 3rd party docs
documented
somewhere?


The file Doc/README (in the Python source code distribution) has
some of this information. You will have to scan down a ways for
it, though.

- Dave

--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
dk******@rexx.com
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Bart Nessux | last post by:
How can one view the contents of a queue? I'd like to verify that the queue has the same number of objects as the list that has been put into it. Also, should one think of a queue as static or...
75
by: Xah Lee | last post by:
http://python.org/doc/2.4.1/lib/module-re.html http://python.org/doc/2.4.1/lib/node114.html --------- QUOTE The module defines several functions, constants, and an exception. Some of the...
14
by: Jim Hubbard | last post by:
I am looking for documentation and code examples on DDML (Display Driver Management Level). It is mentioned in the 2000, XP and 2003 DDKs - but just barely. It has to do with mirroring a...
7
by: egoebel | last post by:
Hi, I would like to have a decent set of HTML docs for the entire Standard C++ Library, as opposed to STL-only docs like the pages at SGI. I've been using the MSDN docs but,...ugh...I'm sure I...
62
by: A.M. Kuchling | last post by:
Here are some thoughts on reorganizing Python's documentation, with one big suggestion. The tutorial seems to be in pretty good shape because Raymond Hettinger has been keeping it up to date. ...
34
by: nicolasfr | last post by:
Hi, I am a bit disapointed with the current Python online documentation. I have read many messages of people complaining about the documentation, it's lack of examples and the use of complicated...
1
by: Eric Sadoyama | last post by:
I have a database documentation question, but I am not even sure how to phrase it properly so I don't know where to start looking for answers. We are developing a database that is based on...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.