Skip to content
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

mkdocs-with-pdf personalization #153

Open
emanuelabaldon opened this issue May 30, 2024 · 1 comment
Open

mkdocs-with-pdf personalization #153

emanuelabaldon opened this issue May 30, 2024 · 1 comment

Comments

@emanuelabaldon
Copy link

Using mkdocs-with-pdf produces a document with RED lines below titles. I'd like to change RED color to another color or remove the lines. Thank you in advance.
DocumentWithRedLines.pdf

@Thiti517
Copy link

Hello !

Adding a css file with this rules should meet your needs:

@media print {
    article h1, article h2, article h3 {
        border-bottom-color: <your-color> !important;
    }
}

then add your css file to mkdocs.yml config:

extra_css:
  - '<style/path/from/docs/folder>.css'

be aware that it also change the color of the line below the title on the cover page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants