pazz/alot — Issue #278: use htmlhandler to view help
Author: pazz
Created: 2012-01-21 12:20:06+00:00
State: open
Labels: doc, feature, vanity

we need to access sphinx's index to map help items to urls.

POC: generate pickled index: in docs/usr, `make pickle`
then:
```
import pickle

gi=pickle.load(open('build/pickle/genindex.fpickle'))
index = dict(gi['genindexentries']).values()

E = {}
for lettersec in index:
for mode, (_,entries) in lettersec:
E[mode] = {}
for e in entries:
cmd = e[0]
E[mode][cmd] = tuple(e[1])
```

```
In [6]: E['thread']['pipeto']
Out[6]: ('../usage/commands/#index-9', '../usage/#index-9')
```

we need to store the location of the built docs somewhere fixed