Since I can get the program up and running without UI, I started tinkering again with
Sphinx and removing duplicate data. I have a page in manual that lists most of the weapons with their pictures. Same data is kept in the game too of course for the game to use. When I change the game, I have to change the manual, which I sometimes may forget.
So, I added two more directives that I can use while writing manual: itemimage and itemdescription. Those link directly back to game and pull some of the data from there, saving me from typing it.
If I type in manual's source:
Dagger
======
.. itemimage:: dagger
.. itemdescription:: dagger
I get
Dagger
XXX
Light and simple weapon that does not do much damage. Small size allows skilled wielder to do critical damage easily though.
Where XXX is a picture of dagger.
If I want to create a nice little table listing all the weapons that the manual mentions, it is as easy as typing:
Weapon tables
=============
.. itemtable::
:type: weapon
That saves some typing and keeps the manual up to date regarding to items.
Full source of the items page of manual is here:
source and resulting html-page is here:
result