#317 Fix Sphinx warning.
#316 #324 Fix generation of PDF which incorrect indentation broke.
#324 Fix API links.