Include an image on the header of the page #6654
Replies: 2 comments
-
The approach I would take would be to override the mkdocs.yml: site_name: My Docs
theme:
name: material
custom_dir: override
extra_css:
- assets/stylesheets/extra.css override/main.html:
docs/assets/stylesheets/extra.css: .myheader {
background-image: linear-gradient(rgba(0, 0, 192), rgba(0 , 0, 128));
}
.md-header {
background-color: transparent !important;
} ~ |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you, it works perfectly! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
So, I am interested on including and image instead of a color an the top bar of the documentation web page. I know it is possible to do it. I saw some documentation web pages with it (e.g. [https://scc.dipc.org/docs/getting_started/]), but i didn't find the way to do it in the documentation of mkdocs-material.
If someone can help me on this, I will appreciate it.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions