Favicon Documentation Request
Hey guys, I posted a comment in this issue here and I'll port it over here. This is a request for documentation on how to get a favicon working.
I tried adding a favicon based on the instructions here and they didn't work for me. I found a solution that works in the meantime by adding an external link in the doczrc.js
for the favicon.
External favicon link
// doczrc.js
export default {
htmlContext: {
favicon: 'https://s3-us-west-1.amazonaws.com/set-protocol/favicon.ico',
},
}
I added this and reran yarn dev
which showed the favicon for me. This is mostly a bandaid solution to unblock some folks who are running into the same issue.
I'm sure others are having the same issue by looking down the list of projects using docz who are missing favicons.
Testing Other Repos
I tested the docz-website and island-wars repos, both of which have working deployed favicons. When running both of them locally, I didn't see working favicons.
docz-site
When running the docz-website locally, and saw that the favicon for the site wasn't working for me. It's confusing because the doczrc.js leads to an .ico
file, but the path doesn't match up to anything inside of the public folder. The only favicon I see is a favicon in the public/images folder which is a .png
file. When looking in the source code on docz.site, the favicon link doesn't lead to anything. Would be useful to get clarification on how it works.
![screen shot 2018-08-30 at 4 22 36 am](https://user-images.githubusercontent.com/4149515/44848645-6b06e880-ac0c-11e8-9817-f903d6f2ac36.png)
island-wars
I saw one repo in the list above that had a working favicon, and running that locally also didn't show a favicon. I did see a useful commit from there that I followed and didn't get me working favicon using that method. Their site does link to the proper favicon.
![screen shot 2018-08-30 at 4 26 04 am](https://user-images.githubusercontent.com/4149515/44848756-d781e780-ac0c-11e8-8c92-472730a5aa2b.png)
Production Builds
I questioned whether it was because I wasn't using a production build, so I deployed to Netlify, but also didn't see a working favicon.