def _copy_static_files(self): static_keys = ['favicon'] for key in static_keys: fname = self.config.html[key] if not fname: continue sphinx_fname = os.path.join(self.config.rst_dir, '_static', os.path.basename(fname)) utils.copy(fname, sphinx_fname) self._update_pyconf( key, os.path.join('_static', os.path.basename(fname)))
def _copy_static_files(self): static_keys = [('html', 'favicon'), ('html', 'html_logo'), ('pdf', 'latex_logo')] for attribute, key in static_keys: if attribute == 'html': fname = self.config.html[key] elif attribute == 'pdf': fname = self.config.pdf[key] if not fname: self._update_pyconf(key, '') continue sphinx_fname = os.path.join(self.config.rst_dir, '_static', os.path.basename(fname)) utils.copy(fname, sphinx_fname) self._update_pyconf( key, os.path.join('_static', os.path.basename(fname)))