I have published a gist of a first shot at generating wiki pages from
the plists.
If you need any gems, please run: sudo gem install plist tilt yaml
https://gist.github.com/898835

An example command line for generating the page for the OnePassword,
QSOpera and Finder modules:
git clone git://gist.github.com/898835.git plist_template_gist
cd plist_template_gist
./plisttemplate.rb -t template.erb -o ./overrides/ -v OnePassword
QSOpera 'Finder Module'

It works by looking for the modules in a bunch of folders, and for
each bundle, loading it's plist. Then it merges in the values from an
overrides file in the overrides/ folder with the right bundle id as a
filename. This is where I'm storing things like the youtube link, or
descriptive texts that aren't in the plist.

It then outputs a bundleid.txt in the current folder with the wiki
template for that bundle.

This got me thinking that it might be interesting to generate them all
at once so we can cross reference. For example, to have a wiki page
describing which plugins can be applied to an object of type File, and
which plugins add File-objects to the catalog (though it seems this is
not available from the plist). One can also easily imagine an index of
actions for example.

I am very sorry I didn't use the nice template you have been working
on, I'm not sure it's possible to generate it automatically, and I
focused (as is obvious from the result) on getting it to work first.
If there is any interest I will convert the gist to repository, I
think it's possible. There is however still much work left, for
example no effort is made to read localised names (which causes the
Finder module's actions to be empty), I'm looking into that.

Regards,
Eric

Reply via email to