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

Add "Powered by ..." message to footer #1365

Merged
merged 11 commits into from
Jul 16, 2020
11 changes: 11 additions & 0 deletions assets/html/scss/documenter/layout/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@

.docs-footer {
display: flex;
flex-wrap: wrap;
margin-left: 0;
margin-right: 0;
border-top: 1px solid $border;
Expand All @@ -125,6 +126,16 @@
.docs-footer-nextpage {
text-align: right;
}

.flexbox-break {
flex-basis: 100%;
height: 0;
}

.footer-message {
font-size: 0.9em;
pfitzseb marked this conversation as resolved.
Show resolved Hide resolved
margin: 0.5em auto 0 auto;
pfitzseb marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
}
7 changes: 7 additions & 0 deletions assets/html/themes/documenter-dark.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions assets/html/themes/documenter-light.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/Writers/HTMLWriter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,11 @@ function render_footer(ctx, navnode)
link = a[".docs-footer-nextpage", :href => navhref(ctx, navnode.next, navnode)](title, " »")
push!(navlinks, link)
end
return isempty(navlinks) ? "" : nav[".docs-footer"](navlinks)

linebreak = div[".flexbox-break"]()
footer_message = div[".footer-message"]("Powered by ", a[:href => "https://github.com/JuliaDocs/Documenter.jl"]("Documenter.jl"), " and the ", a[:href => "https://julialang.org/"]("Julia Programming Language"), ".")

return isempty(navlinks) ? nav[".docs-footer"](footer_message) : nav[".docs-footer"](navlinks, linebreak, footer_message)
end

# Article (page contents)
Expand Down