I can't get the theme config logo config to work
See original GitHub issueQuestion
Description In the default theme README it states:
// doczrc.js
export default {
themeConfig: {
logo: {
src: '/path/of/my/logo',
width: 150
}
}
}
I have tried with all kind of absolute and relative paths and I can’t manage to display my logo. I guess it’s because it doesn’t get bundled ?
My logo is located at ./src/logo.svg
and my doczrc.js
looks like this:
export default {
src: "./src",
...
themeConfig: {
...
logo: {
src: "./logo.svg",
width: 150
}
},
};
Thank you for your help ! 😄
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Using a logo.png file in the theme folder doesn't work - Drupal
svg from my starterkit folder and put a logo.png. It should be picked up, but it isn't. Apparently in the config, features.logo isn't...
Read more >How to configure global theme and logo in Microsoft 365 ribbon
In this article, I provide instructions on how to configure global theme in Microsoft 365 to match corporate branding and logo.
Read more >How do I set the theme logo? - Drupal Answers
For regular themes, you can just go to the appearance page, go to the settings tab and deselect Use ...
Read more >Theme configuration guide - Good Grants Help Centre
To get started, open the Manage workspace and go to Settings > General > Theme. Home. In Good Grants, the home page refers...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Got a solution 🎉
Thanks to this comment I learnt that Docz supports a
public
folder, so my config now looks like this:It works great ! I feel like the documentation of the default theme should be updated to either a working solution without using
public
folder (I don’t know of any) and thispublic
folder thing should be documented in the main package.I can’t really find any page on the website where configs like
public
orhtmlContent
are documented. I would like to do it, but where should it be placed ?Seems the public folder thing is still not properly documented… I had to came here to find the solution. Any update to the documentation soon?