We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can't seem to add an icon to the title of the coverage.md page. Specifically, I want to add the following, as I'd do in any other Markdown page :
coverage.md
--- icon: simple/pytest ---
Perhaps an icon option to the coverage plugin ?
icon
Not really.
The text was updated successfully, but these errors were encountered:
I suppose this icon feature comes from Material for MkDocs? I'll try to look into it.
Sorry, something went wrong.
I tried something like :
yaml_header = textwrap.dedent( """ --- icon: simple/pytest --- """, ) style = textwrap.dedent( """ <style> article h1, article > a, .md-sidebar--secondary { display: none !important; } </style> """, ) iframe = textwrap.dedent( f""" <iframe id="coviframe" src="{covindex}" frameborder="0" scrolling="no" onload="resizeIframe();" width="100%"> </iframe> """, ) script = textwrap.dedent( """ <script> var coviframe = document.getElementById("coviframe"); function resizeIframe() { coviframe.style.height = coviframe.contentWindow.document.documentElement.offsetHeight + 'px'; } coviframe.contentWindow.document.body.onclick = function() { coviframe.contentWindow.location.reload(); } </script> """, ) page_contents = yaml_header + style + iframe + script
but no luck yet.
pawamoy
No branches or pull requests
Problem
I can't seem to add an icon to the title of the
coverage.md
page. Specifically, I want to add the following, as I'd do in any other Markdown page :Solution ?
Perhaps an
icon
option to the coverage plugin ?Alternatives considered
Not really.
Boost priority
The text was updated successfully, but these errors were encountered: