Skip to content

Commit dad4bc4

Browse files
Updated files with 'repo_helper'.
1 parent 6a59b11 commit dad4bc4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ci:
88

99
repos:
1010
- repo: https://github.com/repo-helper/pyproject-parser
11-
rev: v0.9.1
11+
rev: v0.11.0
1212
hooks:
1313
- id: reformat-pyproject
1414

doc-source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,14 @@
7474
def setup(app):
7575
# 3rd party
7676
from sphinx_toolbox.latex import better_header_layout
77+
from sphinxemoji import sphinxemoji
7778

7879
app.connect("config-inited", lambda app, config: better_header_layout(config))
80+
app.connect("build-finished", sphinxemoji.copy_asset_files)
81+
app.add_js_file("https://unpkg.com/twemoji@latest/dist/twemoji.min.js")
82+
app.add_js_file("twemoji.js")
83+
app.add_css_file("twemoji.css")
84+
app.add_transform(sphinxemoji.EmojiSubstitutions)
7985

8086

8187
nitpicky = True

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ extensions = [
5454
"sphinx.ext.mathjax",
5555
"sphinxcontrib.extras_require",
5656
"sphinx.ext.todo",
57-
"sphinxemoji.sphinxemoji",
5857
"notfound.extension",
5958
"sphinx_copybutton",
6059
"sphinxcontrib.default_values",
@@ -64,7 +63,6 @@ extensions = [
6463
"html_section",
6564
"html_section",
6665
]
67-
sphinxemoji_style = "twemoji"
6866
gitstamp_fmt = "%d %b %Y"
6967
templates_path = [ "_templates",]
7068
html_static_path = [ "_static",]

0 commit comments

Comments
 (0)