-
-
Notifications
You must be signed in to change notification settings - Fork 324
revert #841 #919
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
revert #841 #919
Changes from all commits
78a29b8
b253e26
05da013
6eab33f
a6a71bc
e421c3a
ec1eb38
0e87c0a
2f95d58
78623a0
3c03550
06628f4
d53154d
8d8e0b6
7ee7b98
f1bf70c
564286a
36b5d82
76234d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: 22.6.0 | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.6.3 | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
name: isort | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: "v2.5.1" | ||
rev: v2.7.1 | ||
hooks: | ||
- id: prettier |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -122,7 +122,7 @@ def Wrapper(): | |||||
def PrintView(): | ||||||
text, set_text = idom.hooks.use_state(print_buffer.getvalue()) | ||||||
print_buffer.set_callback(set_text) | ||||||
return idom.html.pre(text, class_name="printout") if text else idom.html.div() | ||||||
return idom.html.pre({"class": "printout"}, text) if text else idom.html.div() | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This appears to still be unresolved? |
||||||
|
||||||
return Wrapper() | ||||||
|
||||||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
""" | ||
|
||
from fnmatch import fnmatch | ||
from typing import Any, cast | ||
from typing import Any, Dict, cast | ||
|
||
from docutils import nodes | ||
from docutils.nodes import Node | ||
|
@@ -30,6 +30,7 @@ def get_node_depth(node: Node) -> int: | |
|
||
def register_sections_as_label(app: Sphinx, document: Node) -> None: | ||
docname = app.env.docname | ||
print(docname) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unneeded print? |
||
|
||
for pattern in app.config.autosectionlabel_skip_docs: | ||
if fnmatch(docname, pattern): | ||
|
@@ -66,7 +67,7 @@ def register_sections_as_label(app: Sphinx, document: Node) -> None: | |
domain.labels[name] = docname, labelid, sectname | ||
|
||
|
||
def setup(app: Sphinx) -> dict[str, Any]: | ||
def setup(app: Sphinx) -> Dict[str, Any]: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to use |
||
app.add_config_value("autosectionlabel_prefix_document", False, "env") | ||
app.add_config_value("autosectionlabel_maxdepth", None, "env") | ||
app.add_config_value("autosectionlabel_skip_docs", [], "env") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,25 +14,29 @@ def handle_pointer_move(event): | |
position["y"] = event["clientY"] - outer_div_bounds["y"] | ||
|
||
return html.div( | ||
{ | ||
"on_pointer_move": handle_pointer_move, | ||
"style": { | ||
"position": "relative", | ||
"height": "200px", | ||
"width": "100%", | ||
"backgroundColor": "white", | ||
}, | ||
}, | ||
html.div( | ||
style={ | ||
"position": "absolute", | ||
"background_color": "red", | ||
"border_radius": "50%", | ||
"width": "20px", | ||
"height": "20px", | ||
"left": "-10px", | ||
"top": "-10px", | ||
"transform": f"translate({position['x']}px, {position['y']}px)", | ||
{ | ||
"style": { | ||
"position": "absolute", | ||
"backgroundColor": "red", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we convert styles to |
||
"borderRadius": "50%", | ||
"width": "20px", | ||
"height": "20px", | ||
"left": "-10px", | ||
"top": "-10px", | ||
"transform": f"translate({position['x']}px, {position['y']}px)", | ||
} | ||
} | ||
), | ||
on_pointer_move=handle_pointer_move, | ||
style={ | ||
"position": "relative", | ||
"height": "200px", | ||
"width": "100%", | ||
"background_color": "white", | ||
}, | ||
) | ||
|
||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.