#2923 BLOC Trial-3: makeIndex.py needs to be updated and optimized
Zarro Boogs per Child
bugtracker at laptop.org
Mon Sep 24 19:25:46 EDT 2007
#2923: makeIndex.py needs to be updated and optimized
----------------------+-----------------------------------------------------
Reporter: lauren | Owner: Simon
Type: task | Status: new
Priority: blocker | Milestone: Trial-3
Component: library | Version:
Resolution: | Keywords:
Verified: 0 |
----------------------+-----------------------------------------------------
Changes (by sj):
* owner: sj => Simon
Comment:
see the makeIndex.py and new html in this bundle:
http://dev.laptop.org/pub/content/Library-latest.tar.gz
This gets rid of the frames and related problems of previous iterations,
and uses a template system that will remain useful when we move towards a
more dynamic library-view that relies on a local webserver.
makeIndex.py should be run each time a new bundle is installed. It looks
in every subdirectory of Library/ for a library/library.info file
(indicating it's a bundle) and an index.html file (indicating it is
browsable). It generates a sidebar from the browsable bundles, and
creates a bundle_index.html in each of those directories wrapping the
existing index in the sidebar.
This is fairly robust to bad bundles; if the script somehow dies before
processing one of the bundles it simply doesn't update the index pages.
The robustness could be improved in the future with more clever defaults
and handling for css class clashes.
--
Ticket URL: <https://dev.laptop.org/ticket/2923#comment:8>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list