antonlegoo / gitbook-plugin-theme-gestalt

A configurable theme for GitBook.
Apache License 2.0
17 stars 11 forks source link

Missing font-awesome on assets #4

Closed otavio closed 6 years ago

otavio commented 6 years ago

HTTP/1.1 404 Not Found X-Current-Location: /fonts/fontawesome-webfont.ttf?v=4.6.3 Date: Thu, 14 Dec 2017 17:48:23 GMT Connection: keep-alive Content-Length: 109

otavio commented 6 years ago

Looking at the code, it seems npm is not including the _assets directory and this is specifically where you copy the fonts.

antonlegoo commented 6 years ago

@otavio thanks for submitting this. Version 1.0.6 should now fix the issue.

Turns out it was a file path issue. Gitbook doesn't copy theme assets to the _assets folder, but instead places them in the gitbook folder. I've updated the font file path in the css which solves the issue in my tests.