Skip to content

Commit bb55338

Browse files
committed
refs #24 remove list.js from conf.py
1 parent 8303e18 commit bb55338

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

docs/conf.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@
6363
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css",
6464
]
6565

66-
html_js_files = [
67-
"https://cdnjs.cloudflare.com/ajax/libs/list.js/2.3.1/list.min.js",
68-
]
69-
7066
# https://sphinxext-opengraph.readthedocs.io/
7167
ogp_site_url = "http://sphinx-nekochan.readthedocs.io/"
7268

sphinx_nekochan/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ def run(self) -> list[nodes.Node]:
169169
# create table and header
170170
table, tgroup = self.create_table_header()
171171
tbody = nodes.tbody()
172+
tbody.set_class("list")
172173
tgroup += tbody
173174

174175
container.append(table)
@@ -178,7 +179,7 @@ def run(self) -> list[nodes.Node]:
178179
# add row to table
179180
tbody += self.create_row(name, nekochan_emoji[name]["aliases"])
180181

181-
# add javascript
182+
# add javascript for list.js
182183
js = """<script src="https://cdnjs.cloudflare.com/ajax/libs/list.js/2.3.1/list.min.js"></script>
183184
<script>
184185
var options = {valueNames: ['name', 'aliases']};
@@ -238,7 +239,7 @@ def create_row(self, name: str, aliases) -> nodes.Node:
238239
if idx > 0:
239240
cell += nodes.Text(", ")
240241
cell += nodes.literal(alias, alias)
241-
cell.set_class("aliaess")
242+
cell.set_class("aliases")
242243

243244
return row
244245

0 commit comments

Comments
 (0)