-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to override the banner logo #24
Comments
I think the banner-logo definition is currently in css so you might be able to override it by providing an additional css file. We can certainly look into making things more configurable, but it might take a little while for us to get to that since the initial goal of the project is just to make our own documentation better. |
No problem. I managed to work around it for now by excluding the images from being published:
You can view the result at https://wimdeblauwe.github.io/error-handling-spring-boot-starter/ |
I was able to override with by defining a
<link href="css/custom.css" rel="stylesheet"> The CCS:
#banner {
background-image: url("../img/custom-banner-light.svg");
}
html.dark-theme #banner {
background-image: url("../img/custom-banner-dark.svg");
}
#doc {
background-image: url("../img/custom-header-doc.svg");
}
html.dark-theme #doc {
background-image: url("../img/custom-header-doc-dark.svg");
}
@media screen and (max-width: 800px) {
html.dark-theme #doc,
#doc {
background: none;
}
} and update task to include the custom resources: tasks {
asciidoctor {
resources {
from(sourceDir) {
include("css/**", "img/**")
}
}
}
} |
Thank you @ciscoo, I had to enable docinfo by adding this to the top of my :docinfo: shared |
hi~What should maven do? |
I am investigating if I could use this project to document my https://github.com/wimdeblauwe/error-handling-spring-boot-starter library. It has quite some nice improvements over the default Asciidoctor stack.
I got it working by adding the milestone repo as plugin repo:
One thing I would need is that I can override the
banner-logo.svg
(or just remove it) so people don't think my library is an official Spring one. Maybe also thedoc-background.svg
? Maybe it can be made configurable via an Asciidoc attribute?The text was updated successfully, but these errors were encountered: