-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
404 page has an extra slash in the font link in the social section #902
Comments
I wanted to make a PR for this one-line change, but I couldn't get the build process to work. Just in case it's useful, I'll tell you what happened, but really I'll leave this issue for someone who has their environment set up. First, after making a virtualenv and running pip install, then npm install worked, but
So I figure maybe |
Is Xcode required for dev setup? I'm also having problems with |
Thanks for reporting. Will fix it as soon as possible. Regarding the setup: yeah, you probably need the XCode Command Line Tools on macOS for a working C compiler. The environment setup instructions for Material assume that you have a valid Node environment up and running that can compile native extensions, as some of the image optimizations stuff is complied with C libraries (libpng etc.). EDIT: which version of NPM are you running anyway? The package-lock was introduced with NPM 5. Just make sure you have Node >= 8 installed, that should come with NPM 5. |
I have:
It seems like whole Xcode is required. |
Okay, then this is a macOS annoyance. It's been some time since I installed Xcode, so I forgot that I installed all of it. |
Fixed in 15e604f, will be part of next release. |
Released as part of 3.0.5. |
For those who have problem with development setup. I changed node to 8.12.0 and it worked. Problem was with Node 10/11. |
Description
The 404 page has a less-than-optimal link in it, in the social section. It uses {{ base_url }} and should use the url filter.
I got an error from HtmlProofer in my site generation because the 404.html page came out with a link like "//assets/stylesheets/font-awesome.css". HtmlProofer sticks http: in front of that because of the double slash and gives an error.
you can see this on your own site, where the 404 page contains:
<link rel="stylesheet" href="/mkdocs-material//assets/fonts/font-awesome.css">
Here, your base-url is longer than '/' so it doesn't look as bad. It still works, but it's not ideal.
Expected behavior
No double slashes in URLs where one will do.
Actual behavior
<link rel="stylesheet" href="/mkdocs-material//assets/fonts/font-awesome.css">
Steps to reproduce the bug
href="/mkdocs-material//assets/fonts/font-awesome.css"
Workaround: override partials/social.html, including this line:
<link rel="stylesheet" href="{{ 'assets/fonts/font-awesome.css' | url }}">
Package versions
Project configuration
... yours will do ...
System information
The text was updated successfully, but these errors were encountered: