afonsof / jenkins-material-theme

Beautify your Jenkins with the Material Design theme!
http://afonsof.com/jenkins-material-theme
MIT License
1.73k stars 357 forks source link

THeme usage without internet Access. #143

Open thcp opened 6 years ago

thcp commented 6 years ago

Currently it's possible to use this theme on a jenkins server on a secure network without internet connection?

externl commented 6 years ago

@tchp I haven't tried this but I think copying and pasting all of https://cdn.rawgit.com/afonsof/jenkins-material-theme/gh-pages/dist/material-{{your-color-name}}.css into the Extra CSS settings might work for you (IIRC it's available in the latest version of the theme plugin).

thcp commented 6 years ago

@externl

It seems it doesn't work on a server that is on a secure zone. I currently made it work partially by downloading Roboto and Roboto-Mono and importing locally by changing the following imports from:

@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,500,300); @import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,700,500,300);

to

@import url(Roboto-Mono.css); @import url(Roboto.css);

The only problem that I have currently are the icons that doesn't display properly:

2018-05-05-175147_469x485_scrot

umara123 commented 5 years ago

@thcp You could create a job on the same jenkins instance to save the theme.css as an artifact.

Then in the Jenkins theme config just put in the URL of that artifact. I've tested this and it works.

thcp commented 5 years ago

worked perfectly as a workaround!

linkeal commented 4 years ago

Your comments helped me a lot. Thank you! What I've additionally done is to use the https://google-webfonts-helper.herokuapp.com/fonts to host all the fonts as artifact in the "/userContent/layout" folder in Jenkins as well. This way the design is completely self hosted.