-
Notifications
You must be signed in to change notification settings - Fork 41
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
Math not rendered without network connection (Windows) (Trac #639) #771
Comments
Trac update at |
Trac update at
|
Trac update at
to:
to:
!MathJax can be shipped with !SasView. We need to add _static/MathJax to the doc tree, with the following files from the !MathJax distribution (776 kB):
The html header needs the following:
We might be able to accomplish this by updating sphinx conf.py with:
and adding _templates/layout.html with:
There are a few options for including !MathJax with !SasView:
|
Trac update at
maybe best to move to 4.1? We could provide a PDF downladable somewhere?
|
Trac update at
to:
This is slightly more convoluted. On my windows box I need to also add
Also,
is required if we want to enable right-click context menu, as in the online version. Obviously adding everything is not an option, as uncompressed MathJax is 172MB. |
Trac update at https://github.com/mathjax/MathJax-grunt-cleaner/blob/master/Gruntfile.js seems to be the "official" way to do this - clone the repo and run grunt. However, this is yet another lot of infrastructure. If it is all local, we should probably just have a script to pull in the right bits and update occasionally as mathjax changes. |
Trac update at
a bit annoying when no network is available but not a show stopper and needs a bit more care than 2 days before a release -- moving to 4.1
|
Trac update at
Didn't get addressed at code camp so moving to 4.2
|
Trac update at 19th Oct 2016, on my windows 7 desktop, the equations in the docu are rendering only slowly if at all. Before they do render a message pops up briefly at bottom on docu screen which says: File failed to load: https://cdn.mathjax.org/mathjax/contrib/a11y/accessibility-menu.js Is this a different issue to the above, or is it just flaky web access here? Richard |
Trac update at From #1025 ... Longer term, need to replace mathjax with katex, which is faster and smaller and easier to bundle with the application. This is closer to working on Qt than it is in wx. |
Trac update at |
This issue remains but have not had much of a problem of late nor heard a lot of complaints. Is bundling Katex still something we want to do? I note that @ajj says it is easier in Qt so definitely a 5.x if we want to deal with it? will move it to 5.1 (and drop importance to minor) for now so we can decide what to do. |
There is a katex package for sphinx, so this may be easy to do now. You can bundle katex with the docs with fonts, min.css, and min.js for offline use (~2 MB). This may lead to longer load times (CDNs cache packages close to the user), but user privacy may improve (depending on how much tracking is done by CDNs). The sphinx package has a pre-rendering option, but it doesn't buy us much: we still need the 1.5 MB of fonts and the 1/4 MB of javascript to render help for user defined models in exchange for slightly faster pages. |
Testing on Windows 7, a lack of network connection means that the math in the documentation does not get rendered.
On the Mac, it is still being rendered even without a network connection.
I thought that mathjax was being bundled, so this should be working.
Migrated from http://trac.sasview.org/ticket/639
The text was updated successfully, but these errors were encountered: