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

Selfhost fonts #1

Closed
TobiGr opened this issue Feb 21, 2018 · 6 comments
Closed

Selfhost fonts #1

TobiGr opened this issue Feb 21, 2018 · 6 comments

Comments

@TobiGr
Copy link
Member

TobiGr commented Feb 21, 2018

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.

@theScrabi
Copy link
Member

The problem is that the side folder is auto generated by using mkdocs gh-deploy. I'll try to override the current theme.

@theScrabi
Copy link
Member

There seems to be a way, but for me the setup they talk about crashes.

@TobiGr
Copy link
Member Author

TobiGr commented Feb 22, 2018

I think they fixed it in this commit, but it is from 2014. How can we check which version of the theme is installed?

@theScrabi
Copy link
Member

I think it depends on which version of mkdocs you are using. However apparently we could self host the theme:
http:https://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.

@TobiGr
Copy link
Member Author

TobiGr commented Feb 23, 2018

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.

@theScrabi
Copy link
Member

Thanks :D

theScrabi pushed a commit that referenced this issue Mar 1, 2019
Fixed spelling, grammar, structure, etc.
TobiGr pushed a commit that referenced this issue Aug 17, 2019
Co-Authored-By: TheAssassin <[email protected]>
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

No branches or pull requests

2 participants