ttools: run PaintModeDoc headlessly

This should allow building without a display.