mirror of
https://github.com/deps-rs/deps.rs.git
synced 2024-11-21 18:06:30 +00:00
improve markdown <pre> tag
This commit is contained in:
parent
b8bd88d65b
commit
f5bfc8684f
2 changed files with 8 additions and 6 deletions
|
@ -19,7 +19,9 @@ body {
|
|||
|
||||
pre {
|
||||
font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
|
||||
white-space: pre-wrap;
|
||||
overflow: auto;
|
||||
word-wrap: normal;
|
||||
white-space: pre;
|
||||
background: #dedede;
|
||||
color: #555;
|
||||
padding: .5em .7em;
|
||||
|
|
|
@ -61,17 +61,17 @@ pub fn status_html(analysis_outcome: AnalyzeDependenciesOutcome, repo_path: Repo
|
|||
code (format!("{}/{}", repo_path.qual.as_ref(), repo_path.name.as_ref()))
|
||||
}
|
||||
|
||||
h2 {
|
||||
"Crate "
|
||||
code (analysis_outcome.name.as_ref())
|
||||
}
|
||||
|
||||
img src=(format!("/{}/status.svg", self_path));
|
||||
|
||||
pre {
|
||||
(format!("[![dependency status]({}/status.svg)]({})", status_base_url, status_base_url))
|
||||
}
|
||||
|
||||
h2 {
|
||||
"Crate "
|
||||
code (analysis_outcome.name.as_ref())
|
||||
}
|
||||
|
||||
@if !analysis_outcome.deps.main.is_empty() {
|
||||
h3 "Dependencies"
|
||||
(dependency_table(analysis_outcome.deps.main))
|
||||
|
|
Loading…
Reference in a new issue