Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/_static/playground-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var colorNotebook = {
"playgroundWheels": ['pygments-2.17.2-py3-none-any.whl', 'bigtree-0.19.0-py3-none-any.whl'],
"playgroundWheels": ['https://files.pythonhosted.org/packages/97/9c/372fef8377a6e340b1704768d20daaded98bf13282b5327beb2e2fe2c7ef/pygments-2.17.2-py3-none-any.whl', 'https://files.pythonhosted.org/packages/d3/58/7d2dd906add6bd3481ee80beafb00af292866ed4ce3fa18cd168cb7bab74/bigtree-0.19.0-py3-none-any.whl'],
"notebookWheels": [],
"defaultPlayground": ""
}
2 changes: 1 addition & 1 deletion docs/_static/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ function _typeof(t) {
t.next = 14;
break
}
o = "".concat(window.location.origin, "/").concat(window.location.pathname.split("/")[1], "/wheels/"), a = n ? window.colorNotebook.notebookWheels : window.colorNotebook.playgroundWheels, s = [], n ? y = !0 : v = !0, l = r(a);
o = "", a = n ? window.colorNotebook.notebookWheels : window.colorNotebook.playgroundWheels, s = [], n ? y = !0 : v = !0, l = r(a);
try {
for (l.s(); !(c = l.n()).done;)(u = c.value).endsWith(".whl") ? s.push(o + u) : s.push(u)
} catch (t) {
Expand Down
31 changes: 16 additions & 15 deletions docs/_static/playground_whl.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
DEFAULT_COMMANDS = [""]

PLAYGROUND_WHEELS = [
"https://files.pythonhosted.org/packages/97/9c/372fef8377a6e340b1704768d20daaded98bf13282b5327beb2e2fe2c7ef/pygments-2.17.2-py3-none-any.whl"
"https://files.pythonhosted.org/packages/97/9c/372fef8377a6e340b1704768d20daaded98bf13282b5327beb2e2fe2c7ef/pygments-2.17.2-py3-none-any.whl",
"https://files.pythonhosted.org/packages/d3/58/7d2dd906add6bd3481ee80beafb00af292866ed4ce3fa18cd168cb7bab74/bigtree-0.19.0-py3-none-any.whl",
]

CONFIG = """\
Expand Down Expand Up @@ -103,26 +104,26 @@ def download_wheel(url, dest):
os.mkdir("docs/wheels")

# Build wheel
status, package = build_package()
if not status:
for file, url in PLAYGROUND.items():
if os.path.exists(file):
print("Skipping: {}".format(file))
continue
status = download_wheel(url, file)
if status:
break
status = 0
# status, package = build_package()
# if not status:
# for file, url in PLAYGROUND.items():
# if os.path.exists(file):
# print("Skipping: {}".format(file))
# continue
# status = download_wheel(url, file)
# if status:
# break

if not status:
# Build up a list of wheels needed for playgrounds and notebooks
playground = [
os.path.basename(file_path) for file_path in PLAYGROUND.keys()
] + [package]
notebook = playground
# playground = [
# os.path.basename(file_path) for file_path in PLAYGROUND.keys()
# ] + [package]

# Create the config that specifies which wheels need to be used
config = (
CONFIG.format(str(playground), "\n".join(DEFAULT_COMMANDS))
CONFIG.format(str(PLAYGROUND_WHEELS), "\n".join(DEFAULT_COMMANDS))
.replace("\r", "")
.encode("utf-8")
)
Expand Down