diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 192f4ac..57327ca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ ci: repos: - repo: https://github.com/repo-helper/pyproject-parser - rev: v0.9.1 + rev: v0.11.0 hooks: - id: reformat-pyproject diff --git a/doc-source/conf.py b/doc-source/conf.py index 5087c40..c493d16 100644 --- a/doc-source/conf.py +++ b/doc-source/conf.py @@ -69,8 +69,14 @@ def setup(app): # 3rd party from sphinx_toolbox.latex import better_header_layout + from sphinxemoji import sphinxemoji app.connect("config-inited", lambda app, config: better_header_layout(config)) + app.connect("build-finished", sphinxemoji.copy_asset_files) + app.add_js_file("https://unpkg.com/twemoji@latest/dist/twemoji.min.js") + app.add_js_file("twemoji.js") + app.add_css_file("twemoji.css") + app.add_transform(sphinxemoji.EmojiSubstitutions) toctree_plus_types.add("fixture") diff --git a/pyproject.toml b/pyproject.toml index 3986e08..7cf5277 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -84,7 +84,6 @@ extensions = [ "sphinx.ext.mathjax", "sphinxcontrib.extras_require", "sphinx.ext.todo", - "sphinxemoji.sphinxemoji", "notfound.extension", "sphinx_copybutton", "sphinxcontrib.default_values", @@ -98,7 +97,6 @@ extensions = [ "sphinx_toolbox.more_autosummary.column_widths", "sphinx_toolbox.latex.succinct_seealso", ] -sphinxemoji_style = "twemoji" gitstamp_fmt = "%d %b %Y" templates_path = [ "_templates",] html_static_path = [ "_static",]