'Render .asciidoc files to .html sites.'

def _build_docs(self):

    files = self.FILES[:]
    for src in glob.glob('doc/help/*.asciidoc'):
        (name, _ext) = os.path.splitext(os.path.basename(src))
        dst = 'qutebrowser/html/doc/{}.html'.format(name)
        files.append((src, dst))
    replacements = [('http://qutebrowser.org/img/cheatsheet-big.png', 'qute://help/img/cheatsheet-big.png'), ('http://qutebrowser.org/img/cheatsheet-small.png', 'qute://help/img/cheatsheet-small.png')]
    for (src, dst) in files:
        src_basename = os.path.basename(src)
        modified_src = os.path.join(self._tempdir, src_basename)
        with open(modified_src, 'w', encoding='utf-8') as modified_f:
            with open(src, 'r', encoding='utf-8') as f:
                for line in f:
                    for (orig, repl) in replacements:
                        line = line.replace(orig, repl)
                    modified_f.write(line)
        self.call(modified_src, dst)
