You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This probably isn't as much of a bug, as it is my own lack of knowledge how to effectively use CSS, but I'm not sure where else to ask.
Anyway, the issue I'm having is that the default math generated by pdoc, if a bit lengthy, seems to overflow a bit on devices with narrow screen (notably mobile), i.e. it induces unnecessary horizontal scrolling.
Steps to reproduce the behavior:
make a file mymodule.py with the following contents:
defmy_function():
r""" This method has some long math: $$ \Delta = \Delta_\text{galaxy} + \Delta_\text{RSD} + \Delta_\text{lensing} + \Delta_\text{Doppler} + \Delta_\text{potential} $$ """return
run pdoc --math mymodule
notice the result has horizontal scrolling (i.e. the math overflows):
but I'm not entirely sure how to include it properly in the Jinja2 template (I've looked at #319 but I can't get it to work :(), so any help would be appreciated.
JCGoran
changed the title
Horizontal overflow of long math expression with the --math flag
Horizontal overflow of long math expressions with the --math flag
Nov 6, 2022
mhils
added a commit
to mhils/pdoc
that referenced
this issue
Nov 10, 2022
Problem Description
This probably isn't as much of a bug, as it is my own lack of knowledge how to effectively use CSS, but I'm not sure where else to ask.
Anyway, the issue I'm having is that the default math generated by
pdoc
, if a bit lengthy, seems to overflow a bit on devices with narrow screen (notably mobile), i.e. it induces unnecessary horizontal scrolling.Steps to reproduce the behavior:
mymodule.py
with the following contents:pdoc --math mymodule
I think the fix should be something like:
but I'm not entirely sure how to include it properly in the Jinja2 template (I've looked at #319 but I can't get it to work :(), so any help would be appreciated.
System Information
The text was updated successfully, but these errors were encountered: