cliechti | 1 Jun 2006 16:02
Picon

r4585 - trunk/sandbox/cliechti/aafigure/aafigure.py

Author: cliechti
Date: 2006-06-01 16:02:33 +0200 (Thu, 01 Jun 2006)
New Revision: 4585

Modified:
   trunk/sandbox/cliechti/aafigure/aafigure.py
Log:
add standalone mode (convert one aafigure per text file to an image) not related to docutils

Modified: trunk/sandbox/cliechti/aafigure/aafigure.py
===================================================================
--- trunk/sandbox/cliechti/aafigure/aafigure.py	2006-05-31 14:44:10 UTC (rev 4584)
+++ trunk/sandbox/cliechti/aafigure/aafigure.py	2006-06-01 14:02:33 UTC (rev 4585)
 <at>  <at>  -792,36 +792,113  <at>  <at> 
 if __name__ == '__main__':
     import pprint
     import svg
+    import pil
     import aa
+    import optparse

-    def render(text):
-        """helper function for tests. scan the given image and create svg output"""
-        aaimg = AsciiArtImage(text)
-        print text
+    def decode_color(color_string):
+        if color_string[0] == '#':          #HTML like color syntax
+            if len(color_string) == 4:      # #rgb format
+                r,g,b = [int(c+c, 16) for c in color_string[1:]]
+            elif len(color_string) == 7:      # #rrggbb format
(Continue reading)

grubert | 1 Jun 2006 16:24
Picon

r4586 - in trunk/sandbox/docpy-writer: README.txt expected/codemarkup.tex input/codemarkup.txt

Author: grubert
Date: 2006-06-01 16:24:44 +0200 (Thu, 01 Jun 2006)
New Revision: 4586

Modified:
   trunk/sandbox/docpy-writer/README.txt
   trunk/sandbox/docpy-writer/expected/codemarkup.tex
   trunk/sandbox/docpy-writer/input/codemarkup.txt
Log:
Add a test with funcdesc literal and document it.

Modified: trunk/sandbox/docpy-writer/README.txt
===================================================================
--- trunk/sandbox/docpy-writer/README.txt	2006-06-01 14:02:33 UTC (rev 4585)
+++ trunk/sandbox/docpy-writer/README.txt	2006-06-01 14:24:44 UTC (rev 4586)
 <at>  <at>  -8,8 +8,7  <at>  <at> 
 :Copyright: This document has been placed in the public domain.

 This tries to explore the posibilities to use docutils as format for python
-library documentation as specified in 
-`Documenting Python <http://docs.python.org/dev/doc/doc.html>`_.
+library documentation as specified in `Documenting Python`_ .

 This version is based on a script from Greg Ward, hacked by Thomas Heller.

 <at>  <at>  -65,12 +64,12  <at>  <at> 
   might be already possible others require manual markup ?
   Or maybe seepep, ...

-* seealso environment.
(Continue reading)

mnodine | 1 Jun 2006 17:44
Picon

r4587 - trunk/prest/doc/src/Makefile

Author: mnodine
Date: 2006-06-01 17:44:30 +0200 (Thu, 01 Jun 2006)
New Revision: 4587

Modified:
   trunk/prest/doc/src/Makefile
Log:
Declare the .html files that get turned into _diff.html files to be
.PRECIOUS so they don't get deleted at the end of the make process.

Modified: trunk/prest/doc/src/Makefile
===================================================================
--- trunk/prest/doc/src/Makefile	2006-06-01 14:24:44 UTC (rev 4586)
+++ trunk/prest/doc/src/Makefile	2006-06-01 15:44:30 UTC (rev 4587)
 <at>  <at>  -40,6 +40,8  <at>  <at> 
 debug:
 	 <at> echo '$(HTML_ALTS)'

+.PRECIOUS:	$(DEST_DIR)/%.html
+
 %.xref:	%.rst $(PREST_SRC) $(XREF_WRITER)
 	$(PREST_CMD) $(XREF_FLAGS) $(PREST_FLAGS_$(notdir $*)) $< > $ <at>  
goodger | 1 Jun 2006 20:01
Picon

r4588 - in trunk/docutils: docutils/parsers/rst/directives/body.py docutils/parsers/rst/states.py test/test_parsers/test_rst/test_directives/test_epigraphs_etc.py

Author: goodger
Date: 2006-06-01 20:00:33 +0200 (Thu, 01 Jun 2006)
New Revision: 4588

Added:
   trunk/docutils/test/test_parsers/test_rst/test_directives/test_epigraphs_etc.py
Modified:
   trunk/docutils/docutils/parsers/rst/directives/body.py
   trunk/docutils/docutils/parsers/rst/states.py
Log:
fixed calls to docutils.parsers.rst.states.Body.block_quote (see r4522), and added tests

Modified: trunk/docutils/docutils/parsers/rst/directives/body.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/directives/body.py	2006-06-01 15:44:30 UTC (rev 4587)
+++ trunk/docutils/docutils/parsers/rst/directives/body.py	2006-06-01 18:00:33 UTC (rev 4588)
 <at>  <at>  -128,25 +128,31  <at>  <at> 

 def epigraph(name, arguments, options, content, lineno,
              content_offset, block_text, state, state_machine):
-    block_quote, messages = state.block_quote(content, content_offset)
-    block_quote['classes'].append('epigraph')
-    return [block_quote] + messages
+    elements = state.block_quote(content, content_offset)
+    for element in elements:
+        if isinstance(element, nodes.block_quote):
+            element['classes'].append('epigraph')
+    return elements

 epigraph.content = 1
(Continue reading)

grubert | 1 Jun 2006 23:45
Picon

r4589 - in trunk/sandbox/docpy-writer: expected/codemarkup.tex input/codemarkup.txt mkpydoc.py

Author: grubert
Date: 2006-06-01 23:45:56 +0200 (Thu, 01 Jun 2006)
New Revision: 4589

Modified:
   trunk/sandbox/docpy-writer/expected/codemarkup.tex
   trunk/sandbox/docpy-writer/input/codemarkup.txt
   trunk/sandbox/docpy-writer/mkpydoc.py
Log:
Fix handling of methoddesc (without tags)

Modified: trunk/sandbox/docpy-writer/expected/codemarkup.tex
===================================================================
--- trunk/sandbox/docpy-writer/expected/codemarkup.tex	2006-06-01 18:00:33 UTC (rev 4588)
+++ trunk/sandbox/docpy-writer/expected/codemarkup.tex	2006-06-01 21:45:56 UTC (rev 4589)
 <at>  <at>  -101,7 +101,12  <at>  <at> 
 buffer.  Does the same as the C sizeof() function.
 \end{funcdesc}

+\begin{methoddesc}{from_address}{address}
+This method returns a ctypes type instance using the memory
+specified by address.
+\end{methoddesc}

+
 \subsubsection{alternatives\label{-alternatives}}
 \begin{itemize}
 \item {} 

Modified: trunk/sandbox/docpy-writer/input/codemarkup.txt
(Continue reading)

grubert | 2 Jun 2006 15:49
Picon

r4590 - in trunk/sandbox/docpy-writer: README.txt expected/codemarkup.tex input/codemarkup.txt mkpydoc.py

Author: grubert
Date: 2006-06-02 15:49:00 +0200 (Fri, 02 Jun 2006)
New Revision: 4590

Modified:
   trunk/sandbox/docpy-writer/README.txt
   trunk/sandbox/docpy-writer/expected/codemarkup.tex
   trunk/sandbox/docpy-writer/input/codemarkup.txt
   trunk/sandbox/docpy-writer/mkpydoc.py
Log:
support more informational units (cmemberdesc missing)

Modified: trunk/sandbox/docpy-writer/README.txt
===================================================================
--- trunk/sandbox/docpy-writer/README.txt	2006-06-01 21:45:56 UTC (rev 4589)
+++ trunk/sandbox/docpy-writer/README.txt	2006-06-02 13:49:00 UTC (rev 4590)
 <at>  <at>  -114,12 +114,12  <at>  <at> 
   \begin{funcdesc} {name}{parameters} 
   \begin{funcdescni} {name}{parameters} 
   \begin{classdesc} {name}{constructor parameters} 
+  \begin{excclassdesc} {name}{constructor parameters} 

   \begin{methoddesc} [type name]{name}{parameters} 
   \begin{methoddescni} [type name]{name}{parameters} 

   \begin{cmemberdesc} {container}{type}{name}
-  \begin{excclassdesc} {name}{constructor parameters} 
   \begin{cfuncdesc} {type}{name}{args}

 The ``ni``-variants do not create index entries.
(Continue reading)

grubert | 3 Jun 2006 19:14
Picon

r4591 - in trunk/sandbox/docpy-writer: README.txt expected/codemarkup.tex input/codemarkup.txt mkpydoc.py

Author: grubert
Date: 2006-06-03 19:14:50 +0200 (Sat, 03 Jun 2006)
New Revision: 4591

Modified:
   trunk/sandbox/docpy-writer/README.txt
   trunk/sandbox/docpy-writer/expected/codemarkup.tex
   trunk/sandbox/docpy-writer/input/codemarkup.txt
   trunk/sandbox/docpy-writer/mkpydoc.py
Log:
Add cmemberdesc definition translation.

Modified: trunk/sandbox/docpy-writer/README.txt
===================================================================
--- trunk/sandbox/docpy-writer/README.txt	2006-06-02 13:49:00 UTC (rev 4590)
+++ trunk/sandbox/docpy-writer/README.txt	2006-06-03 17:14:50 UTC (rev 4591)
 <at>  <at>  -141,6 +141,7  <at>  <at> 

 * mkpydoc.py:

+  - 2006-06-03: add cmemberdesc.
   - 2006-06-02: support more informational units (cmemberdesc missing)
   - 2006-05-25: notice environment.
   - 2006-05-27: 

Modified: trunk/sandbox/docpy-writer/expected/codemarkup.tex
===================================================================
--- trunk/sandbox/docpy-writer/expected/codemarkup.tex	2006-06-02 13:49:00 UTC (rev 4590)
+++ trunk/sandbox/docpy-writer/expected/codemarkup.tex	2006-06-03 17:14:50 UTC (rev 4591)
 <at>  <at>  -123,10 +123,10  <at>  <at> 
(Continue reading)

fwiemann | 5 Jun 2006 22:12
Picon

r4607 - branches/docutils-0.4/docs/user/slide-shows.txt

Author: fwiemann
Date: 2006-06-05 22:12:37 +0200 (Mon, 05 Jun 2006)
New Revision: 4607

Modified:
   branches/docutils-0.4/docs/user/slide-shows.txt
Log:
--- MERGE: merged r4451 to maintenance branch; original log message:
    fixed custom theme instructions

Modified: branches/docutils-0.4/docs/user/slide-shows.txt
===================================================================
--- branches/docutils-0.4/docs/user/slide-shows.txt	2006-06-05 19:49:46 UTC (rev 4606)
+++ branches/docutils-0.4/docs/user/slide-shows.txt	2006-06-05 20:12:37 UTC (rev 4607)
 <at>  <at>  -672,11 +672,12  <at>  <at> 
    Start with ``pretty.css``; edit ``framing.css`` if you need to make
    layout changes.

-4. Run "``rst2s5.py --theme <new-theme> <doc>.txt <doc>.html``".
+4. Run "``rst2s5.py --theme-url ui/<new-theme> <doc>.txt <doc>.html``".

    .. class:: handout

-   Open your ``<doc>.html`` in a browser to test the new theme.
+   We use the ``--theme-url`` option to refer to the new theme.  Open
+   your ``<doc>.html`` in a browser to test the new theme.

 5. Rinse & repeat.
fwiemann | 5 Jun 2006 22:19
Picon

r4609 - branches/docutils-0.4/docs/dev/repository.txt

Author: fwiemann
Date: 2006-06-05 22:19:55 +0200 (Mon, 05 Jun 2006)
New Revision: 4609

Modified:
   branches/docutils-0.4/docs/dev/repository.txt
Log:
--- MERGE: merged r4495 to maintenance branch; original log message:
    fixed svn switch command args

Modified: branches/docutils-0.4/docs/dev/repository.txt
===================================================================
--- branches/docutils-0.4/docs/dev/repository.txt	2006-06-05 20:16:34 UTC (rev 4608)
+++ branches/docutils-0.4/docs/dev/repository.txt	2006-06-05 20:19:55 UTC (rev 4609)
 <at>  <at>  -90,10 +90,10  <at>  <at> 
         docutils

 If you previously had an anonymous working copy and gained developer
-access, you can switch the URL associated with your working copy by
-typing ::
+access, you can switch the URL associated with your working copy with
+this command (executed in the root of your working copy) ::

-    svn switch --relocate svn://svn.berlios.de/docutils/trunk/docutils \
+    svn switch --relocate svn://svn.berlios.de/docutils \
         svn+ssh://<user> <at> svn.berlios.de/svnroot/repos/docutils

 (Again, ``<user>`` is your BerliOS user account name.)
fwiemann | 5 Jun 2006 22:43
Picon

r4616 - branches/docutils-0.4/test/test_dependencies.py

Author: fwiemann
Date: 2006-06-05 22:43:30 +0200 (Mon, 05 Jun 2006)
New Revision: 4616

Modified:
   branches/docutils-0.4/test/test_dependencies.py
Log:
--- MERGE: merged r4454 to maintenance branch; original log message:
    comment explains the situation

Modified: branches/docutils-0.4/test/test_dependencies.py
===================================================================
--- branches/docutils-0.4/test/test_dependencies.py	2006-06-05 20:40:20 UTC (rev 4615)
+++ branches/docutils-0.4/test/test_dependencies.py	2006-06-05 20:43:30 UTC (rev 4616)
 <at>  <at>  -42,7 +42,7  <at>  <at> 
         self.assertEqual(self.get_record(writer_name='latex'),
                          [os.path.join('data', 'include.txt'),
                           os.path.join('data', 'raw.txt'),
-                          # !!! should be os.path.join('data', 'some_image.png')
+                          # this is a URL, not a path:
                           'some_image.png'])

     def test_csv_dependencies(self):

Gmane