def get_theme_config(self): # type: () -> Tuple[unicode, Dict] theme_name = getattr(self.config, 'revealjs_theme', 'sphinx_revealjs') theme_options = getattr(self.config, 'revealjs_theme_options', {}) config = raw_json(theme_options.get('revealjs_config', '')) theme_options['revealjs_config'] = config return theme_name, theme_options
def get_theme_config(self) -> Tuple[str, Dict]: """Find and return configuration about theme (name and option params). Find theme and merge options. """ theme_name = getattr(self.config, "revealjs_theme", "sphinx_revealjs") theme_options = getattr(self.config, "revealjs_theme_options", {}) config = raw_json(theme_options.get("revealjs_config", "")) theme_options["revealjs_config"] = config return theme_name, theme_options
def get_theme_config(self) -> Tuple[str, Dict]: """Find and return configuration about theme (name and option params). Find theme and merge options. """ theme_name = getattr(self.config, 'revealjs_theme', 'sphinx_revealjs') theme_options = getattr(self.config, 'revealjs_theme_options', {}) config = raw_json(theme_options.get('revealjs_config', '')) theme_options['revealjs_config'] = config return theme_name, theme_options