Addition of google search to the wiki

Addition of google search to the wiki

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Addition of google search to the wiki

Post by Forboding Angel »

Ok well, basically, it appears that in git you can't make separate patches for single items, but this is a quickie anyway.

Completely replace the contents of

\spring-website\wwwroot\mediawiki\skins\springnew.php

with:

http://pastebin.com/kMmHiv9W

Now a google search box should be at the top of every wiki page. Unfortunately I can't test it because I can't commit to master, meaning that this *SHOULD* work, but make sure that whoever makes this change tests immediately after committing it as there is a slight possibility that if mediawiki does stuff assbackwards that it might cause a parse error. It shouldn't, but after committing, double check jsut to make totally sure.

This google sitesearch displays instant results inline, which is pretty handy as you immediately get search results without being directed to another page.

After seeing the site in all it's naked glory, I understand now why no one wants to touch it. I made better code than this when I was in junior high. Mediawiki is probably much to blame, but whoever did the layout is just... wow. A large part of me is amazed that the site even manages to function.

*note*
There is a very small chance that this change will cause absolutely nothing to happen, in which case, revert it and inform me. Mediawiki is an evil mess.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Addition of google search to the wiki

Post by Forboding Angel »

Apparently if you swear at it enough, tortoisegit will eventually do what you ask.
Attachments
0002-Adding-google-searchbox-to-the-wiki.patch.zip
(995 Bytes) Downloaded 17 times
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Addition of google search to the wiki

Post by Forboding Angel »

Seriously... why has nothing been done with this?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Addition of google search to the wiki

Post by smoth »

IIRC there is no one person assigned to update the site.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Addition of google search to the wiki

Post by AF »

Itll get there eventually, keep prodding people till you find one who knows then write down in the wiki who it was so we know in future
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Addition of google search to the wiki

Post by Forboding Angel »

AF wrote:Itll get there eventually, keep prodding people till you find one who knows then write down in the wiki who it was so we know in future
Koshi already committed a git pull request, like 4 days ago or something, yet none of the devs have done it. In the interim, I made an easy google search for the wiki here: http://www.evolutionrts.info/wikisearch.html but that is nowhere near as good as actually having an in-line search in the wiki itself.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Addition of google search to the wiki

Post by smoth »

maybe aegis or licho?
Post Reply

Return to “Engine”