Skip to content

Commit 17e2548

Browse files
amagehMaxBleschpre-commit-ci[bot]loikein
authored
Documentation improvements (#395)
Co-authored-by: MaxBlesch <s6mables@uni-bonn.de> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Leiqiong <wanleiqiong@gmail.com>
1 parent 2e78106 commit 17e2548

61 files changed

Lines changed: 5044 additions & 494 deletions

Some content is hidden

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

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ What is your solution?
1313
### Todo
1414

1515
- [ ] Review whether the documentation needs to be updated.
16-
- [ ] Document PR in CHANGES.rst.
16+
- [ ] Document PR in release_notes.rst.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ __tutorial__/
1010
dist/
1111
docs/_build/
1212
docs/_generated/
13+
.respy/
1314

1415
# Ignore files.
1516
.coverage

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: debug-statements
1111
- id: end-of-file-fixer
1212
- repo: https://github.com/asottile/pyupgrade
13-
rev: v2.10.0
13+
rev: v2.11.0
1414
hooks:
1515
- id: pyupgrade
1616
args: [--py36-plus]
@@ -23,12 +23,12 @@ repos:
2323
hooks:
2424
- id: black
2525
- repo: https://github.com/asottile/blacken-docs
26-
rev: v1.9.2
26+
rev: v1.10.0
2727
hooks:
2828
- id: blacken-docs
2929
additional_dependencies: [black]
3030
- repo: https://gitlab.com/pycqa/flake8
31-
rev: 3.8.4
31+
rev: 3.9.0
3232
hooks:
3333
- id: flake8
3434
additional_dependencies: [

docs/_static/css/custom.css

Lines changed: 95 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,80 @@
1-
/* Remove execution count for notebook cells. */
21
div.prompt {
32
display: none;
43
}
54

5+
/* General */
6+
7+
h1, h2, h3, h4, h5 {
8+
color: #004385 !important;
9+
}
10+
11+
h1, h2 {
12+
text-align: center;
13+
}
14+
15+
/*a {
16+
color: #0C619F !important;
17+
}*/
18+
19+
a:hover {
20+
color: #187FB9 !important;
21+
}
22+
23+
a:active {
24+
color: #187FB9 !important;
25+
}
26+
27+
a.headerlink {
28+
color: #004385 !important;
29+
}
30+
31+
a.headerlink:hover {
32+
color: #fff !important;
33+
background-color: #187FB9 !important;
34+
}
35+
36+
/* color for naigation bar when item has been selected */
37+
.navbar-light .navbar-nav .active>.nav-link {
38+
color: #187FB9 !important;
39+
}
40+
41+
/* color for sidebar item when it has been selected */
42+
43+
.bd-sidebar .nav .active > a {
44+
color: #187FB9 !important;
45+
}
46+
47+
/* toc on right of page, color when item is selected */
48+
.toc-entry > .nav-link.active {
49+
color: #187FB9;
50+
border-left: 2px solid #187FB9;
51+
}
52+
653
/* Getting started index page */
754

855
.intro-card {
9-
background: #fff;
10-
border-radius: 0;
11-
padding: 30px 10px 10px 10px;
56+
padding: 40px 10px 20px 10px;
1257
margin: 10px 0px;
1358
max-height: 85%;
59+
1460
}
1561

1662
.intro-card .card-text {
1763
margin: 20px 0px;
64+
1865
}
1966

20-
div#index-container {
67+
.card-img-top + .card-body {
68+
padding-top: 0;
69+
}
70+
71+
div.index-container {
2172
padding-bottom: 20px;
2273
}
2374

24-
a#index-link {
25-
color: #333;
26-
text-decoration: none;
75+
a.index-link {
76+
color: #333;
77+
text-decoration: none;
2778
}
2879

2980
/* reference to user guide */
@@ -33,16 +84,16 @@ a#index-link {
3384
}
3485

3586
.gs-torefguide .badge {
36-
background-color: #130654;
87+
background-color: #004C8D;
3788
margin: 10px 10px 10px 0px;
3889
padding: 5px;
3990
}
4091

4192
.gs-torefguide a {
4293
margin-left: 5px;
43-
color: #130654;
44-
border-bottom: 1px solid #FFCA00f3;
45-
box-shadow: 0px -10px 0px #FFCA00f3 inset;
94+
color: #004C8D;
95+
border-bottom: 1px solid #fff79c;
96+
box-shadow: 0px -15px 0px #fff79c inset;
4697
}
4798

4899
.gs-torefguide p {
@@ -54,30 +105,56 @@ a#index-link {
54105
color: grey;
55106
text-decoration: none;
56107
border-bottom: 1px solid #b2ff80f3;
57-
box-shadow: 0px -10px 0px #b2ff80f3 inset;
108+
box-shadow: 0px -15px 0px #b2ff80f3 inset;
58109
}
59110

60-
.blue { color: #130654; }
111+
.blue { color: #004C8D; }
61112

62113
.boldblue {
63114
font-weight: bold;
64-
color: #130654;
115+
color: #004C8D;
65116
}
66117

67118
.centerblue {
68119
text-align: center;
69-
color: #130654;
120+
color: #004C8D;
70121
}
71122

72123
.orange { color: orange; }
73124

74125
.verbatimblue {
75126
font-weight: verbatim;
76-
color: #130654;
127+
color: #004C8D;
77128
}
78129

79130
.boldcenterblue {
80131
font-weight: bold;
81132
text-align: center;
82-
color: #130654;
133+
color: #004C8D;
134+
}
135+
136+
/* card tweaks */
137+
138+
.shadow {
139+
box-shadow: 0 .5rem 0 rgba(0,0,0,.15) !important;
140+
transition: transform 0.2s, box-shadow 0.2s;
141+
}
142+
143+
.shadow:hover {
144+
box-shadow: 0.3rem 0.7rem 0 rgba(0,0,0,.2) !important;
145+
transform: translate(-0.3rem,-0.2rem);
146+
transition: transform 0.2s, box-shadow 0.2s;
147+
}
148+
149+
.card-header {
150+
font-weight: bold;
151+
font-size: 1.1em;
152+
display: flex;
153+
justify-content: center;
154+
align-items: center;
155+
min-height: 78px
156+
}
157+
158+
.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col-auto, .col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-auto, .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-auto {
159+
padding: 15px;
83160
}

docs/_static/images/computer.svg

Lines changed: 161 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)