Skip to content

Commit 87bb636

Browse files
committed
Merge remote branch 'original/master'
2 parents 13a9830 + 593df0f commit 87bb636

33 files changed

+981
-258
lines changed

TODO.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
* Build out TODO.rst
2-
* Get some rhyme and reason into the project
3-
* Setup basic skeleton
4-
- installation
5-
- codingstyle
6-
- module distribution
7-
- applications distribution
8-
- virtualenv
9-
- webdev
10-
11-
1+
* Establish "use this" vs "alternatives are...." recommendations
2+
3+
.. todolist::

docs/_themes/kr/layout.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22
{%- block extrahead %}
33
{{ super() }}
44
{% if theme_touch_icon %}
5-
<link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}" />
5+
<link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}" />
66
{% endif %}
7-
<link media="only screen and (max-device-width: 480px)" href="{{
8-
pathto('_static/small_flask.css', 1) }}" type= "text/css" rel="stylesheet" />
7+
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
98
{% endblock %}
109
{%- block relbar2 %}{% endblock %}
1110
{%- block footer %}
1211
<div class="footer">
1312
&copy; Copyright {{ copyright }}.
1413
</div>
15-
<a href="https://github.com/kennethreitz/python-guide">
14+
<a href="https://github.com/kennethreitz/python-guide" class="github">
1615
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" />
1716
</a>
1817

docs/_themes/kr/static/flasky.css_t

Lines changed: 150 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ div.sphinxsidebarwrapper {
9191
}
9292

9393
div.sphinxsidebarwrapper p.logo {
94-
padding: 0 0 20px 0;
95-
margin: 0;
94+
padding: 0;
95+
margin: -10px 0 0 -20px;
9696
text-align: center;
9797
}
9898

@@ -387,6 +387,148 @@ a:hover tt {
387387
}
388388

389389

390+
@media screen and (max-width: 870px) {
391+
392+
div.sphinxsidebar {
393+
display: none;
394+
}
395+
396+
div.document {
397+
width: 100%;
398+
399+
}
400+
401+
div.documentwrapper {
402+
margin-left: 0;
403+
margin-top: 0;
404+
margin-right: 0;
405+
margin-bottom: 0;
406+
}
407+
408+
div.bodywrapper {
409+
margin-top: 0;
410+
margin-right: 0;
411+
margin-bottom: 0;
412+
margin-left: 0;
413+
}
414+
415+
ul {
416+
margin-left: 0;
417+
}
418+
419+
.document {
420+
width: auto;
421+
}
422+
423+
.footer {
424+
width: auto;
425+
}
426+
427+
.bodywrapper {
428+
margin: 0;
429+
}
430+
431+
.footer {
432+
width: auto;
433+
}
434+
435+
.github {
436+
display: none;
437+
}
438+
439+
440+
441+
}
442+
443+
444+
445+
@media screen and (max-width: 875px) {
446+
447+
body {
448+
margin: 0;
449+
padding: 20px 30px;
450+
}
451+
452+
div.documentwrapper {
453+
float: none;
454+
background: white;
455+
}
456+
457+
div.sphinxsidebar {
458+
display: block;
459+
float: none;
460+
width: 102.5%;
461+
margin: 50px -30px -20px -30px;
462+
padding: 10px 20px;
463+
background: #333;
464+
color: white;
465+
}
466+
467+
div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p,
468+
div.sphinxsidebar h3 a {
469+
color: white;
470+
}
471+
472+
div.sphinxsidebar a {
473+
color: #aaa;
474+
}
475+
476+
div.sphinxsidebar p.logo {
477+
display: none;
478+
}
479+
480+
div.document {
481+
width: 100%;
482+
margin: 0;
483+
}
484+
485+
div.related {
486+
display: block;
487+
margin: 0;
488+
padding: 10px 0 20px 0;
489+
}
490+
491+
div.related ul,
492+
div.related ul li {
493+
margin: 0;
494+
padding: 0;
495+
}
496+
497+
div.footer {
498+
display: none;
499+
}
500+
501+
div.bodywrapper {
502+
margin: 0;
503+
}
504+
505+
div.body {
506+
min-height: 0;
507+
padding: 0;
508+
}
509+
510+
.rtd_doc_footer {
511+
display: none;
512+
}
513+
514+
.document {
515+
width: auto;
516+
}
517+
518+
.footer {
519+
width: auto;
520+
}
521+
522+
.footer {
523+
width: auto;
524+
}
525+
526+
.github {
527+
display: none;
528+
}
529+
}
530+
531+
390532
/* scrollbars */
391533

392534
::-webkit-scrollbar {
@@ -420,3 +562,9 @@ a:hover tt {
420562
background-color: #ccc;
421563
-webkit-border-radius: 3px;
422564
}
565+
566+
/* misc. */
567+
568+
.revsys-inline {
569+
display: none!important;
570+
}

docs/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# Add any Sphinx extension module names here, as strings. They can be extensions
2727
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28-
extensions = ['sphinx.ext.ifconfig']
28+
extensions = ['sphinx.ext.ifconfig', 'sphinx.ext.todo']
2929

3030
# Add any paths that contain templates here, relative to this directory.
3131
templates_path = ['_templates']
@@ -41,7 +41,7 @@
4141

4242
# General information about the project.
4343
project = u'pythonguide'
44-
copyright = u'2011. A <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> Project'
44+
copyright = u'2012. A <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> Project'
4545

4646
# The version info for the project you're documenting, acts as replacement for
4747
# |version| and |release|, also used in various other places throughout the
@@ -182,7 +182,7 @@
182182
# Grouping the document tree into LaTeX files. List of tuples
183183
# (source start file, target name, title, author, documentclass [howto/manual]).
184184
latex_documents = [
185-
('index', 'pythonguide.tex', u'Pythong Guide Documentation',
185+
('index', 'pythonguide.tex', u'Python Guide Documentation',
186186
u'Kenneth Reitz', 'manual'),
187187
]
188188

@@ -258,3 +258,5 @@
258258

259259
# Allow duplicate toc entries.
260260
#epub_tocdup = True
261+
262+
todo_include_todos = True

docs/contents.rst.inc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,17 @@ This part of the guide focuses on setting up your Python environment.
2424

2525
starting/which-python
2626
starting/installation
27-
starting/dev-env
28-
starting/next
2927

3028

29+
Development Environment
30+
-----------------------
31+
32+
.. toctree::
33+
:maxdepth: 2
34+
35+
dev/env
36+
dev/virtualenvs
37+
3138
Writing Great Code
3239
------------------
3340

@@ -72,7 +79,7 @@ different scenarios.
7279
scenarios/admin
7380
scenarios/ci
7481
scenarios/speed
75-
82+
scenarios/scientific
7683

7784

7885
Additional Notes
@@ -85,3 +92,4 @@ Contibution notes and legal information are here (for those interested).
8592

8693
notes/contribute
8794
notes/license
95+
notes/styleguide

0 commit comments

Comments
 (0)