[Sputnik-list] sputnik with LuaUsers skin
Yuri Takhteyev
yuri at sims.berkeley.edu
Wed Feb 20 08:59:25 GMT+2 2008
Jérôme made a set of templates for Sputnik that make it look like a
copy of LuaUsers wiki. I spidered the data and wrote a little bit of
code make medialike.lua sort of work with the LuaUsers markup. And
it's all available as a rock!
So, in case anyone wants to join in on the fun:
1. Install Sputnik as usually
mkdir ~/sputnik
cd ~/sputnik -- any other directory should work
wget http://sputnik.freewisdom.org/files/sputnik_install_2008_02_16.sh
sh sputnik_install_2008_02_16.sh
2. Install the rock
./bin/luarocks install sputnik-luausers
3. Tell Sputnik to use the alternative nodes by editing
htdocs/sputnik.lua and adding the following lines fields to
SPUTNIK_CONFIG:
MARKUP_MODULE = 'sputnik.markup.luausers'
ROOT_PROTOTYPE = '@LuaUsers'
4. Load the data
wget http://media.freewisdom.org/tmp/lua-users-content.zip
unzip lua-users-content.zip
wget http://media.freewisdom.org/tmp/import_from_luausers.lua
./bin/lua5.1 import_from_luausers.lua lua-users-content/nodes/ wiki-data/
5. Run
./bin/lua5.1 ./bin/xavante_start
Then go to something like http://localhost:8080/sputnik.lua?p=LuaPowerPatches
There are a few glitches with syntax still (especially with links) and
WikiLinks don't work. (Is there way to gsub WikiLinks?)
If you note some issues, put them up at
http://sputnik.freewisdom.org/en/LuaUsers
- yuri
More information about the Sputnik-list
mailing list