Skip to content

Commit 1d8c76b

Browse files
authored
Merge pull request #2036 from jvns/sidebar-toc
Display a table of contents in the sidebar of man pages
2 parents 7bd9873 + a12840e commit 1d8c76b

File tree

3,956 files changed

+90782
-15587
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,956 files changed

+90782
-15587
lines changed

assets/sass/dark-mode.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
$main-border: #e2e0d8;
2323
$bg-color: #f0efe7 url($baseurl + "images/bg/body.jpg");
2424
$sidebar-bg-color: #efefe7;
25+
$sidebar-toc-bg-color: lighten($sidebar-bg-color, 4%);
2526
$no-changes-bg-color: #f5f5f3;
2627
$dropdown-active-bg-color: #fff;
2728
$versions-footer-bg-color: #eae9e0;
@@ -55,6 +56,7 @@
5556
$main-border: #5e5e5a;
5657
$bg-color: #2a2a2aff;
5758
$sidebar-bg-color: #3d3d3a;
59+
$sidebar-toc-bg-color: #{$main-bg};
5860
$no-changes-bg-color: #515150;
5961
$dropdown-active-bg-color: #515150;
6062
$versions-footer-bg-color: #1f1f1e;
@@ -185,6 +187,7 @@
185187
--main-bg: #{$main-bg};
186188
--main-border: #{$main-border};
187189
--sidebar-bg-color: #{$sidebar-bg-color};
190+
--sidebar-toc-bg-color: #{$sidebar-toc-bg-color};
188191
--bg-color: #{$bg-color};
189192
--no-changes-bg-color: #{$no-changes-bg-color};
190193
--dropdown-active-bg-color: #{$dropdown-active-bg-color};

assets/sass/layout.scss

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,37 @@ body {
2727
}
2828

2929
aside {
30-
float: left;
3130
width: 218px;
3231
margin-bottom: 35px;
32+
position: sticky;
33+
top: 0;
34+
max-height: 100vh;
35+
overflow-y: auto;
36+
/* align with the top of the content */
37+
padding-top: 46px;
38+
}
39+
40+
#toc {
41+
border: 1px solid var(--main-border);
42+
padding: .5em;
43+
margin-top: 1rem;
44+
border-top: 1px solid var(--main-border);
45+
background: var(--sidebar-toc-bg-color);
46+
margin-right: 0.5rem;
47+
}
48+
49+
#toc ul {
50+
list-style-type: square;
51+
}
52+
53+
#toc li {
54+
/* use margin instead of line height for spacing because sometimes the
55+
headings wrap onto multiple lines */
56+
line-height: 1.2em;
57+
margin: 6px 0;
3358
}
3459

3560
#content {
36-
float: right;
3761
width: 702px;
3862
}
3963

@@ -437,6 +461,10 @@ table.benchmarks {
437461
}
438462
}
439463

464+
#content-wrapper {
465+
display: flex;
466+
}
467+
440468
// Breakpoint ----------------
441469
@media (max-width: $default) {
442470
.responsive-table { overflow-x: auto; }

external/docs/content/docs/BreakingChanges.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
title: Git - BreakingChanges Documentation
88
docname: BreakingChanges
99
version: 2.50.0
10+
headings:
11+
- text: Procedure
12+
id: _procedure
13+
- text: Git 3.0
14+
id: _git_3_0
15+
- text: Superseded features that will not be deprecated
16+
id: _superseded_features_that_will_not_be_deprecated
1017
latest-changes: 2.50.0
1118
aliases:
1219
- "/docs/BreakingChanges/index.html"

external/docs/content/docs/BreakingChanges/2.46.0.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
title: Git - BreakingChanges Documentation
88
docname: BreakingChanges
99
version: 2.46.0
10+
headings:
11+
- text: Git 3.0
12+
id: _git_3_0
13+
- text: Superseded features that will not be deprecated
14+
id: _superseded_features_that_will_not_be_deprecated
1015
aliases:
1116
- "/docs/BreakingChanges/2.46.0/index.html"
1217
- "/docs/BreakingChanges/2.46.1/index.html"

external/docs/content/docs/BreakingChanges/2.47.0.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
title: Git - BreakingChanges Documentation
88
docname: BreakingChanges
99
version: 2.47.0
10+
headings:
11+
- text: Git 3.0
12+
id: _git_3_0
13+
- text: Superseded features that will not be deprecated
14+
id: _superseded_features_that_will_not_be_deprecated
1015
aliases:
1116
- "/docs/BreakingChanges/2.47.0/index.html"
1217
- "/docs/BreakingChanges/2.47.1/index.html"

external/docs/content/docs/BreakingChanges/2.48.0.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
title: Git - BreakingChanges Documentation
88
docname: BreakingChanges
99
version: 2.48.0
10+
headings:
11+
- text: Procedure
12+
id: _procedure
13+
- text: Git 3.0
14+
id: _git_3_0
15+
- text: Superseded features that will not be deprecated
16+
id: _superseded_features_that_will_not_be_deprecated
1017
aliases:
1118
- "/docs/BreakingChanges/2.48.0/index.html"
1219
- "/docs/BreakingChanges/2.48.1/index.html"

external/docs/content/docs/BreakingChanges/2.49.0.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
title: Git - BreakingChanges Documentation
88
docname: BreakingChanges
99
version: 2.49.0
10+
headings:
11+
- text: Procedure
12+
id: _procedure
13+
- text: Git 3.0
14+
id: _git_3_0
15+
- text: Superseded features that will not be deprecated
16+
id: _superseded_features_that_will_not_be_deprecated
1017
aliases:
1118
- "/docs/BreakingChanges/2.49.0/index.html"
1219
- "/docs/BreakingChanges/2.49.1/index.html"

external/docs/content/docs/BreakingChanges/2.50.0.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
title: Git - BreakingChanges Documentation
88
docname: BreakingChanges
99
version: 2.50.0
10+
headings:
11+
- text: Procedure
12+
id: _procedure
13+
- text: Git 3.0
14+
id: _git_3_0
15+
- text: Superseded features that will not be deprecated
16+
id: _superseded_features_that_will_not_be_deprecated
1017
aliases:
1118
- "/docs/BreakingChanges/2.50.0/index.html"
1219
- "/docs/BreakingChanges/2.50.1/index.html"

external/docs/content/docs/MyFirstContribution.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,23 @@
77
title: Git - MyFirstContribution Documentation
88
docname: MyFirstContribution
99
version: 2.50.0
10+
headings:
11+
- text: Summary
12+
id: summary
13+
- text: Getting Started
14+
id: getting-started
15+
- text: Code It Up!
16+
id: code-it-up
17+
- text: Testing
18+
id: testing
19+
- text: 'Getting Ready to Share: Anatomy of a Patch Series'
20+
id: ready-to-share
21+
- text: Sending Patches via GitGitGadget
22+
id: howto-ggg
23+
- text: Sending Patches with git send-email
24+
id: howto-git-send-email
25+
- text: My Patch Got Emailed - Now What?
26+
id: now-what
1027
latest-changes: 2.50.0
1128
aliases:
1229
- "/docs/MyFirstContribution/index.html"

external/docs/content/docs/MyFirstContribution/2.23.0.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,23 @@
77
title: Git - MyFirstContribution Documentation
88
docname: MyFirstContribution
99
version: 2.23.0
10+
headings:
11+
- text: Summary
12+
id: summary
13+
- text: Getting Started
14+
id: getting-started
15+
- text: Code It Up!
16+
id: code-it-up
17+
- text: Testing
18+
id: testing
19+
- text: Getting Ready to Share
20+
id: ready-to-share
21+
- text: Sending Patches via GitGitGadget
22+
id: howto-ggg
23+
- text: Sending Patches with git send-email
24+
id: howto-git-send-email
25+
- text: My Patch Got Emailed - Now What?
26+
id: now-what
1027
aliases:
1128
- "/docs/MyFirstContribution/2.23.0/index.html"
1229
- "/docs/MyFirstContribution/2.23.1/index.html"

0 commit comments

Comments
 (0)