Selfhost fonts
TobiGr opened this issue · comments
Currently we get multiple fonts from fonts.googleapis.com
which allows Google to track the users. Instead of downloading them, we should add them to the fonts/
directory.
The problem is that the side folder is auto generated by using mkdocs gh-deploy
. I'll try to override the current theme.
There seems to be a way, but for me the setup they talk about crashes.
I think they fixed it in this commit, but it is from 2014. How can we check which version of the theme is installed?
I think it depends on which version of mkdocs you are using. However apparently we could self host the theme:
http://www.mkdocs.org/user-guide/styling-your-docs/#customizing-a-theme
I was not able to do that yet since my mkdocs installation crashes on self hosted themes.
It's strange, but the link to the theme repository is incorrect :D
https://github.com/mkdocs/mkdocs/tree/master/mkdocs/themes/readthedocs seems to be the right repository. We only have to override base.html
. I have also problems to do this, but I'll try to figure it out. I guess we only need an extra main.html
which extends the base.html
and our modified base.html
.
Thanks :D