-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Remove CloudFlare CDN request #1256
Conversation
@shreyasminocha can you resolve the conflicts? thanks |
@Dylan-DPC done! |
This doesn't seem to work. The file is not copied to the output. All theme files require special handling in code. Also, I would prefer if it wasn't copied if mathjax is disabled. |
I don't have much rust in me, but would duplicating and editing lines responsible for the other static files in |
Yea, I think that's roughly correct. In |
Thanks. I ran it a couple of times locally and it seems to be working as expected now. |
This still doesn't appear to work. The MathJax samples aren't rendering, and I see these errors on the console:
|
i cant use mdbook until this is fixed. how did cf slip in after the google debacle? those interested in this may also like: |
@unpavedmop Every fix takes them some time. (And, while I agree that I wouldn't want to be using any external resources, I don't use mdBook currently and, if I did, I have no need for MathJax, so I'm not going to be the one fixing it.) You should be able to resolve the problem for yourself just by either turning off MathJax support for using the custom theme support to replace the built-in Handlebars template with one that uses a local copy of MathJax. Heck, given how easy it is to build a Rust project from source, it should be trivial for you make a PR to fix the problem for all of us. You got me curious, so I did a quick repository search for "cloudflare" using GitHub's search box. The offending line is inside an I then searched for something that already uses
As for the "may also like" links, I'm just going to pretend you didn't link those, because I have trouble finding a more favourable interpretation of that than "transparent high-school attempt to manipulate the developers into doing what you want". |
Oops. I didn't sleep well last night and thought this was an issue with someone asking for external MathJax support to be removed, not a PR providing a way to do it. Given that I really don't like sites randomly relying on external domains (especially now that cache isolation makes external CDNs purely a liability) and it seems like a very ugly hack to make a custom theme that's identical to the default except for switching to local MathJax, could either this or a corresponding feature request be opened back up? (And, in the latter case, linked here so people can find the feature request more easily.) If you're going to self-host the Google Fonts, it makes sense to be consistent and also self-host the MathJax. |
Yeah I don't think I'll personally get around to finishing this, but people are welcome to continue from here. |
On Fri, Feb 12, 2021 at 05:35:37PM -0800, Shreyas Minocha wrote:
but people are welcome to continue from here.
Express that by re-opening this issue
|
I just want to say thanks for working on this! I care a lot about my privacy, and I think it's important that we remove something like this. |
I'm going to close since this has gone stale. If someone is willing to pick it back up, feel free to create a new PR. |
Similar in motivation to #847.