Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix playground not reading from _static in rtd #261

Merged
merged 1 commit into from
Jun 25, 2024
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.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], "/_static/"), a = n ? window.colorNotebook.notebookWheels : window.colorNotebook.playgroundWheels, s = [], n ? y = !0 : v = !0, l = r(a);
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);
try {
for (l.s(); !(c = l.n()).done;)(u = c.value).endsWith(".whl") ? s.push(o + u) : s.push(u)
} catch (t) {
Expand Down
5 changes: 4 additions & 1 deletion docs/_static/playground_whl.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import urllib.request

# Output files
OUTPUT_WHL = "docs/_static/"
OUTPUT_WHL = "docs/wheels/"
OUTPUT_JS = "docs/_static/"

# Build message output
Expand Down Expand Up @@ -99,6 +99,9 @@ def download_wheel(url, dest):
if os.path.exists("build"):
shutil.rmtree("build")

if not os.path.exists("docs/wheels"):
os.mkdir("docs/wheels")

# Build wheel
status, package = build_package()
if not status:
Expand Down
2 changes: 1 addition & 1 deletion docs/playground/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hide:
# 🎡️ Playground

```py play
# from bigtree import dict_to_tree
from bigtree import dict_to_tree

path_dict = {
"a": {"age": 90},
Expand Down
Loading