8000 Move prism.js and prism.css to prism.min.* (#1248) · Conan520/pyscript@4483f0d · GitHub
[go: up one dir, main page]

Skip to content

Commit 4483f0d

Browse files
authored
Move prism.js and prism.css to prism.min.* (pyscript#1248)
1 parent 727267a commit 4483f0d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
File renamed without changes.
File renamed without changes.

pyscriptjs/src/plugins/python/py_tutor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ def add_prism(self):
8585
link.type = "text/css"
8686
link.rel = "stylesheet"
8787
js.document.head.appendChild(link)
88-
link.href = "./assets/prism/prism.css"
88+
link.href = "./assets/prism/prism.min.css"
8989

9090
# Add the JS file
9191
script = js.document.createElement("script")
9292
script.type = "text/javascript"
93-
script.src = "./assets/prism/prism.js"
93+
script.src = "./assets/prism/prism.min.js"
9494
js.document.head.appendChild(script)
9595

9696
def _create_code_section(self, source, module_paths=None, parent=None):

pyscriptjs/tests/py-unit/test_python_plugins.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ def check_prism_added(self):
5252
# GIVEN a previous call to py_tutor.plugin.append_script_to_page
5353
head = pyscript.js.document.head
5454

55-
# EXPECT the head to contain a link element pointing to the prism.css
55+
# EXPECT the head to contain a link element pointing to the prism.min.css
5656
links = head.getElementsByTagName("link")
5757
assert len(links) == 1
5858
link = links[0]
5959
assert link.type == "text/css"
6060
assert link.rel == "stylesheet"
61-
assert link.href == "./assets/prism/prism.css"
61+
assert link.href == "./assets/prism/prism.min.css"
6262

63-
# EXPECT the head to contain a script src == prism.js
63+
# EXPECT the head to contain a script src == prism.min.js
6464
scripts = head.getElementsByTagName("script")
6565
assert len(scripts) == 1
6666
script = scripts[0]
6767
assert script.type == "text/javascript"
68-
assert script.src == "./assets/prism/prism.js"
68+
assert script.src == "./assets/prism/prism.min.js"
6969

7070
def check_append_script_to_page(self):
7171
"""

0 commit comments

Comments
 (0)
0