Commit Graph

61 Commits

Author SHA1 Message Date
guido 9a0fa93ce6 [svn r38215] Gotta love the XHTML validity checks... ;)
--HG--
branch : trunk
2007-02-08 23:47:28 +01:00
guido 999da7a376 [svn r38213] Some small cleanups, made fonts a bit smaller and more consistent.
--HG--
branch : trunk
2007-02-08 23:19:10 +01:00
guido 1c1df46a55 [svn r38183] Made that py.execnet.Channel (referring to py.__.execnet.channel.Channel) is
picked up by the apigen doc generator, fixed some bugs that made that that
didn't work previously.

--HG--
branch : trunk
2007-02-08 18:28:55 +01:00
guido f8e50aabad [svn r38150] Fixed test that failed after the last change in apigen (removing the stacks
from the callable info boxes).

--HG--
branch : trunk
2007-02-08 16:14:21 +01:00
guido fff15f50f3 [svn r38148] Made that stacks are built on seperate pages instead of inline in the function
information, to avoid having > 5MB pages...

--HG--
branch : trunk
2007-02-08 15:52:49 +01:00
guido 46f8c56c9b [svn r38144] Fixed a problem with the linker which on building api/source docs found matches
in its own source code, moved some elements in the apigen docs out of a header
where they shouldn't have been (making the font too large).

--HG--
branch : trunk
2007-02-08 14:54:38 +01:00
fijal 60455ead56 [svn r38115] Call python directly
--HG--
branch : trunk
2007-02-07 21:40:09 +01:00
guido eeedfd2d8f [svn r38079] Typo in some help string, and made fonts of apigen a bit smaller somewhere.
--HG--
branch : trunk
2007-02-07 17:03:19 +01:00
guido 318a1c2333 [svn r38044] Now just writing dots when running tests, decreased font size a little of the
class docstring and link.

--HG--
branch : trunk
2007-02-07 02:01:25 +01:00
guido 8ab4468b5c [svn r38043] Changed the way the lazy linking is handled: instead of building the pages
and replacing the links all in memory, pages are now written to disk with
temporary hrefs, which are replaced afterwards.

--HG--
branch : trunk
2007-02-07 01:24:21 +01:00
guido 12b991723e [svn r38036] Some small code cleanups (moved more HTML generation code to html.py).
--HG--
branch : trunk
2007-02-06 22:18:56 +01:00
guido 3690e384a9 [svn r38005] Made that source snippets are now shown in two tables, to allow selecting
the source without the line numbers, decreased font size a bit, made that the
Page class can be passed in from the outside (build() method) to more easily
allow customization of the layout and pages.

--HG--
branch : trunk
2007-02-06 14:19:16 +01:00
guido 0292420920 [svn r37931] Made that the __init__ method is the first method displayed.
--HG--
branch : trunk
2007-02-04 22:49:44 +01:00
guido 7034b507a3 [svn r37928] Updated test (oops).
--HG--
branch : trunk
2007-02-04 22:21:35 +01:00
guido a1c7ab69f9 [svn r37926] Small visual tweaks.
--HG--
branch : trunk
2007-02-04 22:11:43 +01:00
guido 16f9103a0a [svn r37922] Made that properties (class attributes) are displayed, fixed the links in the
menubar.

--HG--
branch : trunk
2007-02-04 16:47:33 +01:00
guido 98b4dcf155 [svn r37913] Some more cleanups in HTML generation, fixed support for docstrings in
namespaces, in order to do this I had to change the way objects are retrieved:
instead of getting them from the DSA I now walk the package tree, small change
in apigen.py: to allow re-using the get_documentable_items function I split it
up in a generic and a specific part.

--HG--
branch : trunk
2007-02-04 15:35:28 +01:00
guido 66cf52a6e2 [svn r37837] A bit of cleanup of the HTML generation: some of the layout related stuff is
moved to the classes in the H namespace. This hopefully (when done, more can
definitely be done later) seperates the HTML generation better from the
presentation-related code.

--HG--
branch : trunk
2007-02-03 00:29:01 +01:00
guido c4a94921c6 [svn r37833] Oops, was using py.path.local('.') instead of py.magic.autopath().dirpath()
to find the scripts to copy...

--HG--
branch : trunk
2007-02-02 22:47:21 +01:00
guido 37a4bfd5ad [svn r37812] Using style.css from the doc directory for apigen now, with some overrides in
a seperate stylesheet. Cleaned up the stylesheet and script handling a bit:
stylesheets and scripts are now defined in the LayoutPage class (where they're
easily customizable). Also removed some old unused code and moved the H class
(html related) stuff to its own file. The idea is that this will become the
place where all the layout is defined.

--HG--
branch : trunk
2007-02-02 16:49:58 +01:00
hpk 443a0b4614 [svn r37788] guido, unless i am missing something there seem to be two
problems with your making Channel's public: you didn't import
it (py.__.* is not lazy) and it fails the apigen tests even
after fixing it.

--HG--
branch : trunk
2007-02-02 02:18:06 +01:00
guido 5bf17c3b62 [svn r37781] Added 'execnet.channel.Channel' object to the to-be-documented items.
--HG--
branch : trunk
2007-02-02 00:58:57 +01:00
guido 9ddca27edc [svn r37765] Was still getting filenames for source files from code objects, so adding more
defensiveness, and made that the 'capture' object is passed over to the builder
instances (to help debugging, currently not used).

--HG--
branch : trunk
2007-02-01 21:10:48 +01:00
guido d9572239a8 [svn r37739] Made that only the first two lines of a source file are examined for the
encoding.

--HG--
branch : trunk
2007-02-01 15:57:34 +01:00
guido ec734026cc [svn r37738] Fixed problem probably caused by removing some comment or something...
--HG--
branch : trunk
2007-02-01 15:55:23 +01:00
guido 646d4f93e1 [svn r37733] Removed two rather useless methods that just delegated to methods on the
underlying object, in favour of calling the underlying object's methods
directly (py.io.OutErrCapture.writeorg*).

--HG--
branch : trunk
2007-02-01 15:13:59 +01:00
guido 9f491f2058 [svn r37729] Added some code to py.io.FDCapture and py.io.OutErrCapture to allow writing
to the original (patched) file descriptor. Also made that the capturing object
is passed to apigen.py's build() function (from rsession.py), which uses the
new methods to print progress information.

--HG--
branch : trunk
2007-02-01 14:56:31 +01:00
guido acf54574c4 [svn r37638] Re-enabled the tests on win32
--HG--
branch : trunk
2007-01-30 21:51:57 +01:00
guido 307a727a7e [svn r37637] Fixed Windows path problems for apigen; test_apigen_functional.py now works (couldn't test with the py lib itself, though, as it wants to build greenlets and i don't have a suitable c compiler installed).
--HG--
branch : trunk
2007-01-30 21:45:18 +01:00
fijal f65d6e9d35 [svn r37623] Get rid of last frame if possible (the frame containing start_tracing should
not be there, unless this is the last frame)

--HG--
branch : trunk
2007-01-30 17:58:11 +01:00
guido e905f71e72 [svn r37616] All code snippets are colored now, also properly fixed hiding of _* names
in the navigation.

--HG--
branch : trunk
2007-01-30 17:29:33 +01:00
hpk d435873e03 [svn r37615] skip this test on windows, it should work but doesn't
and it's not too important (apigen does not fully
run on win32 because of LSession not working there)

--HG--
branch : trunk
2007-01-30 17:28:43 +01:00
guido 85854514b7 [svn r37610] Stack trace code snippets are now syntax colored.
--HG--
branch : trunk
2007-01-30 16:44:30 +01:00
guido 2f8325e277 [svn r37602] Fixed support for files ending on a comment rather than a newline, fixed some
unicode() call so it's not done on objects that are already unicode.

--HG--
branch : trunk
2007-01-30 15:46:57 +01:00
hpk 0b985318fa [svn r37599] fixing a windows-error: i believe that most strings
passed into htmlgen.deindent() actually have
a normalized '\n' line-ending already (e.g. if they
come from python docstrings).  So the caller
now needs to specify otherwise.

--HG--
branch : trunk
2007-01-30 15:08:47 +01:00
guido 45868fe506 [svn r37594] Fixed unicode issues in apigen/htmlgen.py and apigen/source, moved some methods
out of HTMLDocument and added support for finding out the encoding of a Python
file in order to accomplish that (both in source/html.py), fixed some minor
issues (items with a name starting with _ are now hidden from nav, fixed
indentation issue in nav) in htmlgen.py.

--HG--
branch : trunk
2007-01-30 14:24:27 +01:00
guido bef3ad84ce [svn r37579] Made that the package name can be set when using from_dict() to fill a
DocStorage.

--HG--
branch : trunk
2007-01-30 11:34:08 +01:00
guido fe3a71994a [svn r37545] Moved get_star_import_tree out of the DocStorage class, created 'pkg_to_dict'
function in docstorage.py and using that from apigen.py (to later simplify
py.test integration, and to improve testability). Simplified 'deindent()' a
bit, made the wrap_page use the filenames from the stylesheeturl and the
scripturls instead of having them hard-coded, some minor HTML/CSS changes.

--HG--
branch : trunk
2007-01-29 17:11:15 +01:00
guido 06cbe63616 [svn r37540] Nicer formatting of docstrings (de-indented and such), fixed problem getting
to frame source (IOError that popped up when building the py lib's api docs)
in description.py.

--HG--
branch : trunk
2007-01-29 15:20:31 +01:00
guido 853de83311 [svn r37534] Some minor visual modifications for stack traces, fixed check for
py.code.Source object filenames.

--HG--
branch : trunk
2007-01-29 14:09:33 +01:00
hpk 15c1ebe506 [svn r37463] test_get_initpkg_star_items() fails for me
when run as part of the whole py lib tests,
succeeds when ran as a single test.
Pruning sys.modules fixes this (but i am
not sure why the tracer depends on seeing
the import happen)

--HG--
branch : trunk
2007-01-28 12:02:19 +01:00
hpk b5d79a847b [svn r37461] skip these tests on windows (some reliances on unix-paths
and i don't think apigen can run on windows anyway at the moment)

--HG--
branch : trunk
2007-01-28 11:42:13 +01:00
guido 39f357b272 [svn r37431] Fixed problem that made that the wrong package was imported when ran after
test_apigen_example.

--HG--
branch : trunk
2007-01-27 14:26:57 +01:00
guido c96eb10efd [svn r37430] Fixed test, was depending on dict order and values had changed.
--HG--
branch : trunk
2007-01-27 14:20:56 +01:00
guido 3c08f6a614 [svn r37395] Fixed some small issues in source nav, turned namespace_tree into an instance
var (finally! :), changed the api nav so it now shows the full tree with the
current item unfolded + siblings of itself and all parents (+ children if it's
a namespace item).

--HG--
branch : trunk
2007-01-26 16:34:28 +01:00
guido b67ef229df [svn r37383] Added call stacks, made that method pages aren't built at all anymore, made
that build_namespace_view isn't called for anything but namespaces anymore,
made that parts of documents are hidden at first (with a link to 'open' them).

--HG--
branch : trunk
2007-01-26 14:01:27 +01:00
guido 3cf7c74d1e [svn r37355] Fixing test (not sure why it was in this state?).
--HG--
branch : trunk
2007-01-25 21:39:43 +01:00
fijal e4044030b3 [svn r37347] Enchance the test.
--HG--
branch : trunk
2007-01-25 18:03:54 +01:00
fijal c53dfee4a6 [svn r37343] Hours later and tons of debug print changes....
I HATE PYTHON IMPORTS, I HATE PYTHON IMPORTS, I HATE PYTHON IMPORTS

--HG--
branch : trunk
2007-01-25 17:46:56 +01:00
guido 4feb8d6c01 [svn r37328] Fixed problem with Windows paths in tests when running on Linux (and fixed
relpath() api to deal with line seps in a better way).

--HG--
branch : trunk
2007-01-25 14:22:04 +01:00