Skip to content

Commit 2318535

Browse files
Merge pull request #1367 from GuillaumeGomez/footer
Add footer
2 parents 803cebf + ac4f87a commit 2318535

File tree

14 files changed

+94
-25
lines changed

14 files changed

+94
-25
lines changed

templates/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
{%- block header %}{% endblock header -%}
3030

3131
{%- block body -%}{%- endblock body -%}
32+
{%- include "footer.html" -%}
3233

3334
<script type="text/javascript" nonce="{{ csp_nonce }}" src="/-/static/menu.js?{{ docsrs_version() | slugify }}"></script>
3435
<script type="text/javascript" nonce="{{ csp_nonce }}" src="/-/static/index.js?{{ docsrs_version() | slugify }}"></script>

templates/core/about/badges.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{%- block body -%}
66
<h1>Badges</h1>
77

8-
<div>
8+
<div class="about-page">
99
<div class="container pure-u-5-6 about">
1010
<p>
1111
You can use badges to show state of your documentation to your users.

templates/core/about/builds.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{%- block body -%}
66
{%- set docsrs_repo = "https://github.com/rust-lang/docs.rs" -%}
77
<h1>Builds</h1>
8-
<div>
8+
<div class="about-page">
99
<div class="container pure-u-5-6 about">
1010
<p>
1111
Docs.rs automatically builds documentation for crates released on <a href="https://crates.io/">crates.io</a>.

templates/core/about/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{%- set docsrs_repo = "https://github.com/rust-lang/docs.rs" -%}
77

88
<h1 id="crate-title">About Docs.rs</h1>
9-
<div>
9+
<div class="about-page">
1010
<div class="container pure-u-5-6 about">
1111
<p>
1212
Docs.rs is an

templates/core/about/metadata.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{%- block body -%}
66
<h1>Metadata for custom builds</h1>
77

8-
<div>
8+
<div class="about-page">
99
<div class="container pure-u-5-6 about">
1010
<p>
1111
You can customize docs.rs builds by defining <code>[package.metadata.docs.rs]</code>

templates/core/about/redirections.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{%- block body -%}
66
<h1>Shorthand URLs</h1>
77

8-
<div>
8+
<div class="about-page">
99
<div class="container pure-u-5-6 about">
1010
<p>
1111
Docs.rs uses semver to parse URLs. You can use this feature to access

templates/footer.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="docs-rs-footer">
2+
<a href="/about">About docs.rs</a>
3+
<a href="https://foundation.rust-lang.org/policies/privacy-policy/#docs.rs">Privacy policy</a>
4+
<a href="/releases/queue">Build queue</a>
5+
</div>

templates/header/topbar_begin.html

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,6 @@
3434

3535
#}<ul class="pure-menu-list pure-menu-right">
3636
<li class="pure-menu-item pure-menu-has-children pure-menu-allow-hover pure-menu-opt-children">
37-
<a href="/about" class="pure-menu-link">
38-
<span title="About">{{ "info-circle" | fas }}</span>
39-
<span class="title">About</span>
40-
</a>
41-
42-
<ul class="pure-menu-children">
43-
{{ macros::menu_link(href="/about/badges", text="Badges") }}
44-
{{ macros::menu_link(href="/about/builds", text="Builds") }}
45-
{{ macros::menu_link(href="/about/metadata", text="Metadata") }}
46-
{{ macros::menu_link(href="/about/redirections", text="Shorthand URLs") }}
47-
</ul>
48-
</li>{#
49-
50-
#}<li class="pure-menu-item pure-menu-has-children pure-menu-allow-hover pure-menu-opt-children">
5137
<a href="/releases" class="pure-menu-link">
5238
<span title="Releases">{{ "leaf" | fas }}</span>
5339
<span class="title">Releases</span>

templates/rustdoc/body.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@
3333

3434
{# see comment in ../../static/storage-change-detection.html for details #}
3535
<iframe src="/-/static/storage-change-detection.html" width="0" height="0" style="display: none"></iframe>
36+
{%- include "footer.html" -%}

templates/style/_navbar.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ div.nav-container {
139139
// These hardcoded values are "magic", in the sense they were observed to be the lowest-possible
140140
// thresholds through experimentation with a package name that hit the max-width of the element.
141141
$full-width: 1142px;
142-
$medium-width: 994px;
143-
$narrow-width: 901px;
142+
$medium-width: 837px;
143+
$narrow-width: 783px;
144144

145145
// use a .title span inside a menu to hide it on small screens
146146
span.title {

0 commit comments

Comments
 (0)