Skip to content

Commit d0aa580

Browse files
committed
fixed Sphinx configuration
1 parent 87bebd6 commit d0aa580

File tree

2 files changed

+210
-20
lines changed

2 files changed

+210
-20
lines changed
Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
$main-color: #515151;
2+
3+
body {
4+
-webkit-transition: opacity 200ms ease-in;
5+
-webkit-transition-delay: 50ms;
6+
-moz-transition: opacity 200ms ease-in 50ms;
7+
-o-transition: opacity 200ms ease-in 50ms;
8+
transition: opacity 200ms ease-in 50ms;
9+
}
10+
slides {
11+
-webkit-transition: opacity 200ms ease-in;
12+
-webkit-transition-delay: 50ms;
13+
-moz-transition: opacity 200ms ease-in 50ms;
14+
-o-transition: opacity 200ms ease-in 50ms;
15+
transition: opacity 200ms ease-in 50ms;
16+
}
17+
slides > slide {
18+
-webkit-transition: all 0.2s ease-in-out;
19+
-moz-transition: all 0.2s ease-in-out;
20+
-o-transition: all 0.2s ease-in-out;
21+
transition: all 0.2s ease-in-out;
22+
}
23+
.highlight-code slide.current pre > * {
24+
opacity: 0.25;
25+
-webkit-transition: opacity 0.1s ease-in;
26+
-moz-transition: opacity 0.1s ease-in;
27+
-o-transition: opacity 0.1s ease-in;
28+
transition: opacity 0.1s ease-in;
29+
}
30+
.build > *, p.build {
31+
transition: opacity 0.1s ease-in-out 0.1s;
32+
-o-transition: opacity 0.1s ease-in-out 0.1s;
33+
-moz-transition: opacity 0.1s ease-in-out 0.1s;
34+
-webkit-transition: opacity 0.1s ease-in-out 0.1s;
35+
}
36+
.note {
37+
-webkit-transition: all 0.1s ease-in-out;
38+
-moz-transition: all 0.1s ease-in-out;
39+
-o-transition: all 0.1s ease-in-out;
40+
transition: all 0.1s ease-in-out;
41+
}
42+
.with-notes.popup .note {
43+
-webkit-transition: opacity 100ms ease-in-out;
44+
-moz-transition: opacity 100ms ease-in-out;
45+
-o-transition: opacity 100ms ease-in-out;
46+
transition: opacity 100ms ease-in-out;
47+
}
48+
.auto-fadein {
49+
-webkit-transition: opacity 0.25s ease-in;
50+
-webkit-transition-delay: 0.25s;
51+
-moz-transition: opacity 0.25s ease-in 0.25s;
52+
-o-transition: opacity 0.25s ease-in 0.25s;
53+
transition: opacity 0.25s ease-in 0.25s;
54+
}
55+
aside.gdbar {
56+
-webkit-transition: all 0.1s ease-out;
57+
-webkit-transition-delay: 0.1s;
58+
-moz-transition: all 0.1s ease-out 0.1s;
59+
-o-transition: all 0.1s ease-out 0.1s;
60+
transition: all 0.1s ease-out 0.1s;
61+
/* Better to transition only on background-size, but not sure how to do that with the mixin. */
62+
}
63+
64+
em {
65+
font-style: italic;
66+
}
67+
68+
strong {
69+
font-weight: bold;
70+
}
71+
72+
hgroup {
73+
.docutils {
74+
&.literal {
75+
font-family: 'Droid Sans Mono', 'Courier New', monospace;
76+
}
77+
}
78+
}
79+
80+
article {
81+
.center {
82+
text-align: center;
83+
margin-top: 20%;
84+
}
85+
.centered {
86+
text-align: center;
87+
}
88+
.left {
89+
text-align: left;
90+
}
91+
.large {
92+
font-weight: bold;
93+
font-size: 65px;
94+
line-height: 65px;
95+
}
96+
.mlarge {
97+
font-weight: bold;
98+
font-size: 55px;
99+
line-height: 55px;
100+
}
101+
.medium {
102+
font-weight: bold;
103+
font-size: 45px;
104+
line-height: 45px;
105+
}
106+
.credit {
107+
font-size: 75%;
108+
text-align: left;
109+
}
110+
.line-block {
111+
.line {
112+
font-size: inherit;
113+
}
114+
}
115+
dl {
116+
margin-bottom: 10em;
117+
dt {
118+
font-weight: bold;
119+
margin-bottom: .25em;
120+
}
121+
dd {
122+
padding-left: 1em;
123+
margin-bottom: .5em;
124+
}
125+
}
126+
.docutils {
127+
&.literal {
128+
font-family: 'Droid Sans Mono', 'Courier New', monospace;
129+
}
130+
}
131+
.toctree-wrapper {
132+
li {
133+
a {
134+
text-decoration: none;
135+
border-bottom: none;
136+
}
137+
}
138+
}
139+
table.docutils {
140+
tr {
141+
td {
142+
vertical-align: top;
143+
}
144+
}
145+
}
146+
}
147+
148+
.level-1 {
149+
h1 {
150+
font-size: 65px;
151+
line-height: 1.4;
152+
letter-spacing: -3px;
153+
color: $main-color;
154+
}
155+
article {
156+
text-align: center;
157+
img {
158+
margin-top: 10px;
159+
}
160+
}
161+
}
162+
163+
.level-2 {
164+
h2 {
165+
position: static;
166+
border-bottom: 1px solid $main-color;
167+
border-top: 1px solid $main-color;
168+
padding: 5px 0px;
169+
color: $main-color;
170+
171+
}
172+
article {
173+
text-align: center;
174+
}
175+
}
176+
177+
.level-3 {
178+
h3 {
179+
position: static;
180+
border-bottom: 1px solid $main-color;
181+
color: $main-color;
182+
font-size: 40px;
183+
height: 45px;
184+
line-height: 45px;
185+
font-weight: bold;
186+
}
187+
article {
188+
text-align: left;
189+
}
190+
}

slides_sources/source/conf.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Foundations 2: Python documentation build configuration file, created by
3+
# Intro To Python build configuration file, created by
44
# sphinx-quickstart on Wed Apr 2 18:42:06 2014.
55
#
66
# This file is execfile()d with the current directory set to its
@@ -53,17 +53,17 @@
5353
master_doc = 'index'
5454

5555
# General information about the project.
56-
project = u'Foundations 2: Python'
56+
project = u'Introduction To Python'
5757
copyright = u'2014, Christopher Barker, Cris Ewing, '
5858

5959
# The version info for the project you're documenting, acts as replacement for
6060
# |version| and |release|, also used in various other places throughout the
6161
# built documents.
6262
#
6363
# The short X.Y version.
64-
version = '1.2'
64+
version = '1.3'
6565
# The full version, including alpha/beta/rc tags.
66-
release = '1.2'
66+
release = '1.3'
6767

6868
# The language for content autogenerated by Sphinx. Refer to documentation
6969
# for a list of supported languages.
@@ -187,7 +187,7 @@
187187
#html_file_suffix = None
188188

189189
# Output file base name for HTML help builder.
190-
htmlhelp_basename = 'Foundations2Pythondoc'
190+
htmlhelp_basename = 'IntroToPythonDoc'
191191

192192

193193
# -- Options for LaTeX output ---------------------------------------------
@@ -207,7 +207,7 @@
207207
# (source start file, target name, title,
208208
# author, documentclass [howto, manual, or own class]).
209209
latex_documents = [
210-
('index', 'Foundations2Python.tex', u'Foundations 2: Python Documentation',
210+
('index', 'IntroToPython.tex', u'Intro To Python Documentation',
211211
u'Christopher Barker', 'manual'),
212212
]
213213

@@ -237,7 +237,7 @@
237237
# One entry per manual page. List of tuples
238238
# (source start file, name, description, authors, manual section).
239239
man_pages = [
240-
('index', 'foundations2python', u'Foundations 2: Python Documentation',
240+
('index', 'Intro to Python', u'Intro to Python Documentation',
241241
[u'Christopher Barker'], 1)
242242
]
243243

@@ -251,8 +251,8 @@
251251
# (source start file, target name, title, author,
252252
# dir menu entry, description, category)
253253
texinfo_documents = [
254-
('index', 'Foundations2Python', u'Foundations 2: Python Documentation',
255-
u'Christopher Barker', 'Foundations2Python', 'Class materials for Intro to Python class',
254+
('index', 'IntroToPython', u'Intro to Python Documentation',
255+
u'Christopher Barker', 'IntroToPython', 'Class materials for Intro to Python class',
256256
'Miscellaneous'),
257257
]
258258

@@ -275,7 +275,7 @@
275275
'hieroglyph',
276276
]
277277

278-
slide_title = "Foundations 2: Python"
278+
slide_title = "Intro to Python"
279279
slide_theme = 'slides2'
280280
slide_levels = 3
281281

@@ -291,16 +291,16 @@
291291
'name': u'Christopher Barker',
292292
'email': u'[email protected]',
293293
'github': u'https://github.com/PythonCHB',
294-
'company': u''
294+
'company': u'UW Prof. and Continuing Education Program'
295295
},
296-
{
297-
'name': u'Dan Hable',
298-
'email': u'[email protected]',
299-
# 'twitter': '@crisewing',
300-
# 'www': 'http://crisewing.com/',
301-
'github': u'http://github.com/dhable',
302-
'company': u''
303-
},
296+
# {
297+
# 'name': u'Dan Hable',
298+
# 'email': u'[email protected]',
299+
# # 'twitter': '@crisewing',
300+
# # 'www': 'http://crisewing.com/',
301+
# 'github': u'http://github.com/dhable',
302+
# 'company': u''
303+
# },
304304
# {
305305
# 'name': 'Cris Ewing',
306306
# 'twitter': '@crisewing',
@@ -318,7 +318,7 @@
318318
# -- Options for Epub output ----------------------------------------------
319319

320320
# Bibliographic Dublin Core info.
321-
epub_title = u'Foundations 2: Python'
321+
epub_title = u'Intro To Python'
322322
epub_author = u'Christopher Barker'
323323
epub_publisher = u'Christopher Barker'
324324
epub_copyright = u'2014, Christopher Barker, Cris Ewing '

0 commit comments

Comments
 (0)