Skip to content

Commit c9ed775

Browse files
author
Michael Lin
committed
attempt 1 at fixing all docs
1 parent 13dbe52 commit c9ed775

File tree

12 files changed

+635
-94
lines changed

12 files changed

+635
-94
lines changed

docs/requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ sphinx==3.4.3
22
sphinxcontrib-katex
33
jinja2==3.0.3
44
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
5+
sphinxcontrib-applehelp==1.0.4
6+
sphinxcontrib-devhelp==1.0.2
7+
sphinxcontrib-htmlhelp==2.0.1
8+
sphinxcontrib-qthelp==1.0.3
9+
sphinxcontrib-serializinghtml==1.1.5
Lines changed: 244 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,244 @@
1+
article.pytorch-article table tr th:first-of-type,
2+
article.pytorch-article table tr td:first-of-type {
3+
width: 17px;
4+
}
5+
6+
div.container a.header-logo {
7+
height: 80px;
8+
width: 220px;
9+
background-image: url("../img/logo.svg");
10+
background-size: 220px;
11+
/*padding: 60px;*/
12+
/*padding-top: 80px;*/
13+
}
14+
15+
.rst-versions {
16+
position: fixed;
17+
bottom: 0;
18+
left: 0;
19+
width: inherit;
20+
min-width: 300px;
21+
color: #fcfcfc;
22+
font-family: FreightSans, Helvetica Neue, Helvetica, Arial, sans-serif;
23+
background: #d1d2d5;
24+
z-index: 400;
25+
}
26+
27+
.rst-versions.rst-badge {
28+
bottom: 0 !important;
29+
}
30+
31+
.rst-versions.shift-up {
32+
height: auto;
33+
max-height: 100%;
34+
overflow-y: scroll;
35+
}
36+
37+
.rst-versions.shift-up .rst-other-versions {
38+
/*display: block;*/
39+
display: contents;
40+
width: inherit;
41+
}
42+
43+
.rst-versions .rst-other-versions {
44+
font-size: 90%;
45+
padding: 12px;
46+
color: #6c6c6d;
47+
background: #f2f3f7;
48+
display: none;
49+
}
50+
51+
.injected {
52+
display: block;
53+
width: inherit;
54+
}
55+
56+
.rst-versions .rst-current-version {
57+
padding: 12px;
58+
background-color: #e2e3e6;
59+
display: block;
60+
text-align: right;
61+
font-size: 90%;
62+
cursor: pointer;
63+
color: #ee4c2c;
64+
}
65+
66+
.rst-other-versions dl {
67+
margin: 5% !important;
68+
}
69+
70+
.rst-other-versions small {
71+
margin: 5% !important;
72+
}
73+
74+
.rst-versions .rst-other-versions dd {
75+
display: inline-block;
76+
margin: 0;
77+
}
78+
79+
.rst-versions .rst-other-versions dd a {
80+
display: inline-block;
81+
padding: 6px;
82+
color: #454545;
83+
}
84+
85+
.rst-versions a {
86+
color: #2980b9;
87+
text-decoration: none;
88+
}
89+
90+
.rst-versions .rst-current-version:after,
91+
.rst-versions .rst-current-version:before {
92+
display: table;
93+
content: "";
94+
}
95+
96+
.rst-versions .rst-current-version:after {
97+
clear: both;
98+
content: "";
99+
display: block;
100+
}
101+
102+
.rst-versions .rst-current-version .fa-book,
103+
.rst-versions .rst-current-version .icon-book {
104+
float: left;
105+
}
106+
107+
.rst-versions .rst-current-version .fa {
108+
color: #454545;
109+
}
110+
111+
.rst-versions .rst-current-version .fa-book,
112+
.rst-versions .rst-current-version .icon-book {
113+
float: left;
114+
}
115+
116+
.rst-other-versions dt {
117+
font-weight: normal;
118+
}
119+
120+
.fa {
121+
font-family: inherit;
122+
display: inline-block;
123+
/* font: normal normal normal 14px/1 FontAweSome; */
124+
font-size: inherit;
125+
text-rendering: auto;
126+
-webkit-font-smoothing: antialiased;
127+
-moz-osx-font-smoothing: grayscale;
128+
}
129+
130+
.fa-book:before, .icon-book: before {
131+
content: "\f02d";
132+
}
133+
134+
.fa-caret-down:before {
135+
content: "â–¼";
136+
color: #ee4c2c;
137+
}
138+
139+
.fa:before,
140+
a .fa,
141+
li .fa {
142+
text-decoration: inherit;
143+
}
144+
145+
.fa:before {
146+
font-family: FontAwesome;
147+
font-style: normal;
148+
font-weight: 400;
149+
line-height: 1;
150+
}
151+
152+
/* automatically generated toctree tables */
153+
154+
article.pytorch-article table.longtable.docutils.align-default colgroup {
155+
display: none;
156+
}
157+
158+
article.pytorch-article
159+
table.longtable.docutils.align-default
160+
tbody
161+
td:first-child {
162+
width: 40%;
163+
}
164+
165+
article.pytorch-article table.longtable.docutils.align-default tbody td {
166+
padding: 0.25rem;
167+
}
168+
169+
article.pytorch-article table.longtable.docutils.align-default tbody td p {
170+
margin-block-start: 0.1em;
171+
margin-block-end: 0.1em;
172+
}
173+
174+
article.pytorch-article div.highlight pre {
175+
white-space: pre;
176+
}
177+
178+
/* versionadded, versionchanged, deprecated directive */
179+
180+
.versionmodified {
181+
font-style: italic;
182+
font-weight: bold;
183+
}
184+
185+
/* code block */
186+
.highlight .o {
187+
font-weight: lighter !important;
188+
}
189+
190+
.highlight .n {
191+
color: #000000;
192+
font-weight: lighter !important;
193+
}
194+
195+
.highlight .p {
196+
color: #000000;
197+
font-weight: lighter !important;
198+
}
199+
200+
/* Footer */
201+
202+
footer table {
203+
width: 100%;
204+
margin-bottom: 1rem;
205+
}
206+
207+
/* remove gray footer */
208+
.pytorch-body .docs-tutorials-resources {
209+
padding: 0cm !important;
210+
}
211+
212+
/* dim out pytorch header
213+
algolia searchbox has z-index of 200
214+
so make sure not to go above that value */
215+
.header-holder {
216+
z-index: 100 !important;
217+
}
218+
219+
:root {
220+
--docsearch-primary-color: #D3D3D3 !important;
221+
}
222+
223+
.DocSearch-Button {
224+
border-radius: 0 !important;
225+
width: 100% !important;
226+
height: 2.75rem !important;
227+
margin: 0 !important;
228+
background: var(--docsearch-searchbox-focus-background) !important;
229+
}
230+
231+
.DocSearch-Button .DocSearch-Search-Icon {
232+
color: var(--docsearch-primary-color) !important;
233+
}
234+
235+
.DocSearch-Button-Key {
236+
box-shadow: none !important;
237+
}
238+
239+
@media(max-width: 750px) {
240+
.DocSearch-Button-Key, .DocSearch-Button-KeySeparator, .DocSearch-Button-Placeholder {
241+
display: block !important;
242+
}
243+
}
244+
/* docsearch end */

0 commit comments

Comments
 (0)