Improve docs index system by pre-generating P* code instead of parsing text file.