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

Update web page dependencies #681

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

kuanchihwang
Copy link

@kuanchihwang kuanchihwang commented Dec 31, 2024

This PR updates the web page dependencies (i.e., scripts and stylesheets) of FORD. Specifically:

  • Update Font Awesome to version 6.7.2
  • Update MathJax to 2.7.9
  • Update svg-pan-zoom to 3.6.2

Note that Font Awesome was updated with its 4-to-6 compatibility mode enabled. As future work, all web pages that contain icon references to Font Awesome version 4 will need to be updated to version 6 before the compatibility mode can be dropped.

Additionally, Bootstrap tooltips are also fixed. It was previously broken in commit 22cb0b5 due to jQuery being removed. Some unused configuration files are removed to reduce clutter.

All 305 unit tests pass, including the ones that are "slow".

Closes #635.

FORD contains icon references to Font Awesome version 4.
Without updating many HTML templates in FORD, compatibility mode
must be enabled by including two additional stylesheets:

* v4-font-face.min.css
* v4-shims.min.css
The MathJax javascript does not have to be at the end of
pages for them to render faster. Just use the `async`
attribute.

Also remove duplicated configuration options that are already
included in the `TeX-AMS-MML_HTMLorMML` preset.
Bootstrap tooltips are opt-in. They must be initialized manually.
In order to do so, the Bootstrap javascript must be loaded before
running the initialization function.

Also, because jQuery has been removed from FORD, use the standard
compliant `document.querySelectorAll` instead.
In the past, `config.json` was used to generate a customized version
of Bootstrap for FORD. However, FORD has since switched to use the
official version of Bootstrap. Therefore, the old configuration file
is no longer needed and should be removed.
FORD used to depend on `MANIFEST.in` to include its data files.
However, the same purpose is now served more reliably by
`pyproject.toml`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to fontawesome v6
1 participant