-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fix Sphinx extension #9
Conversation
Sphinx now seems to use the 'highlight-default' class for all code blocks, including Python ones, so we were not processing any of them. This commit changes the extension to scan all code blocks to avoid this.
Sphinx adds a blank span tag to the beginning of each code block now, which broke the feature that let you click on a line to execute it. Now the extension considers the content of the first two elements in each line of code when deciding whether a line is a Python statement or output, avoiding this problem.
None of the javascript is loading on the demo page because it's not being served over https. |
Hmm, it should work without HTTPS. However, the certificate for the appspot.com domain doesn't support sub-subdomains, so we can't test it. I did just redeploy with HTTPS enabled, but no dice - the certificate validation fails. |
Well docs.sympy.org its itself not https, so this won't be an issue when we deploy there. So I'm +1 to just merge this if it works. |
Well, pushing with |
Alright, the demo should work again. |
I forgot that you can manually load unsafe scripts in Chrome. This seems to work. |
Changes:
highlight-python
class which Sphinx no longer addsDemo: http://lidavidm.github.io/sympy (may need to force-refresh, Control-Shift-R)