lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AJAX-search field in the docs (Proof-of-concept)


From: John Mandereau
Subject: Re: AJAX-search field in the docs (Proof-of-concept)
Date: Sat, 07 Mar 2009 00:47:30 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Reinhold Kainhofer a écrit :
A few days ago, I decided it's finally time to learn what all that hype about AJAX is about. What would be a better guinea pig than trying to implement a seach box in our docs??? Well -- it turned out incredibly easy. Here it is: http://kainhofer.com/~lilypond/ajax/Documentation/user/lilypond-learning/index.html
(or any other manual there, like the NR or so)
Excellent!


If JavaScript is disabled (so that AJAX won't work, either) or the files are viewed as static files on your harddisk (i.e. not over http, so
the AJAX call would fail for sure), no search box is shown.
It's certainly possible to enable the search for local docs by replacing AJAX calls with loading files locally.

The other problem is that the www-post script doesn't seem to install
the *.de.idx, *.ja.idx, *.fr.idx and *.es.idx files, while the *.en.idx files
are properly installed to Documentation/user/... So for now the search only works in the English docs.
The "culprit" is not www_post.py, it's the command that links translated doc files
to Documentation/user in make/doc-i18n-user-targets.make.


These search boxes are for now meant as a proof-of-concept implementation mainly. I haven't done any work on the corresponding
CSS styling to make the results look nicer.
I'm sure you'll push the implementation further to add it in our documentation :-)

Cheers,
John




reply via email to

[Prev in Thread] Current Thread [Next in Thread]