Skip to content

Commit 2c48b39

Browse files
author
Can Ibanoglu
committed
Getting up-to-date before pushing changes
2 parents 100a4cb + 456660c commit 2c48b39

File tree

26 files changed

+462
-90
lines changed

26 files changed

+462
-90
lines changed

docs/Makefile

Lines changed: 54 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@ SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build
99

10+
# User-friendly check for sphinx-build
11+
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12+
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
13+
endif
14+
1015
# Internal variables.
1116
PAPEROPT_a4 = -D latex_paper_size=a4
1217
PAPEROPT_letter = -D latex_paper_size=letter
1318
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
19+
# the i18n builder cannot share the environment and doctrees with the others
20+
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
1421

15-
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
22+
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
1623

1724
help:
1825
@echo "Please use \`make <target>' where <target> is one of"
@@ -27,14 +34,20 @@ help:
2734
@echo " epub to make an epub"
2835
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
2936
@echo " latexpdf to make LaTeX files and run them through pdflatex"
37+
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
3038
@echo " text to make text files"
3139
@echo " man to make manual pages"
40+
@echo " texinfo to make Texinfo files"
41+
@echo " info to make Texinfo files and run them through makeinfo"
42+
@echo " gettext to make PO message catalogs"
3243
@echo " changes to make an overview of all changed/added/deprecated items"
44+
@echo " xml to make Docutils-native XML files"
45+
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
3346
@echo " linkcheck to check all external links for integrity"
3447
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
3548

3649
clean:
37-
-rm -rf $(BUILDDIR)/*
50+
rm -rf $(BUILDDIR)/*
3851

3952
html:
4053
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@@ -72,17 +85,17 @@ qthelp:
7285
@echo
7386
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
7487
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
75-
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/osxpython.qhcp"
88+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/pythonguide.qhcp"
7689
@echo "To view the help file:"
77-
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/osxpython.qhc"
90+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/pythonguide.qhc"
7891

7992
devhelp:
8093
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
8194
@echo
8295
@echo "Build finished."
8396
@echo "To view the help file:"
84-
@echo "# mkdir -p $$HOME/.local/share/devhelp/osxpython"
85-
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/osxpython"
97+
@echo "# mkdir -p $$HOME/.local/share/devhelp/pythonguide"
98+
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/pythonguide"
8699
@echo "# devhelp"
87100

88101
epub:
@@ -100,7 +113,13 @@ latex:
100113
latexpdf:
101114
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
102115
@echo "Running LaTeX files through pdflatex..."
103-
make -C $(BUILDDIR)/latex all-pdf
116+
$(MAKE) -C $(BUILDDIR)/latex all-pdf
117+
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
118+
119+
latexpdfja:
120+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
121+
@echo "Running LaTeX files through platex and dvipdfmx..."
122+
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
104123
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
105124

106125
text:
@@ -113,6 +132,24 @@ man:
113132
@echo
114133
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
115134

135+
texinfo:
136+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
137+
@echo
138+
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
139+
@echo "Run \`make' in that directory to run these through makeinfo" \
140+
"(use \`make info' here to do that automatically)."
141+
142+
info:
143+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
144+
@echo "Running Texinfo files through makeinfo..."
145+
make -C $(BUILDDIR)/texinfo info
146+
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
147+
148+
gettext:
149+
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
150+
@echo
151+
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
152+
116153
changes:
117154
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
118155
@echo
@@ -128,3 +165,13 @@ doctest:
128165
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
129166
@echo "Testing of doctests in the sources finished, look at the " \
130167
"results in $(BUILDDIR)/doctest/output.txt."
168+
169+
xml:
170+
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
171+
@echo
172+
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
173+
174+
pseudoxml:
175+
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
176+
@echo
177+
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."

docs/_templates/sidebarintro.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ <h3>Useful Links</h3>
3131
<li><a href="http://python-guide.org/">The Guide Website</a></li>
3232
<li><a href="http://github.com/kennethreitz/python-guide">The Guide @ GitHub</a></li>
3333
<li><a href="http://github.com/kennethreitz/python-guide/issues">Issue Tracker</a></li>
34+
<li><a href="https://media.readthedocs.org/pdf/python-guide/latest/python-guide.pdf">The Guide as a PDF</a></li>
3435
</ul>

docs/dev/env.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ or icons. There exist a couple of plugins and settings for the VIM editor to
1717
aid Python development. If you only develop in Python, a good start is to set
1818
the default settings for indentation and line-wrapping to values compliant with
1919
:pep:`8`. In your home directory, open a file called `.vimrc` and add the
20-
following lines:::
20+
following lines::
2121

2222
set textwidth=79 " lines longer than 79 columns will be broken
2323
set shiftwidth=4 " operation >> indents 4 columns; << unindents 4 columns
@@ -64,7 +64,7 @@ to do that which also shows status and warning messages in the statusbar would b
6464
Python-mode
6565
^^^^^^^^^^^
6666

67-
Python-mode_ is a complex solution in VIM for working with python code.
67+
Python-mode_ is a complex solution in VIM for working with Python code.
6868
It has:
6969

7070
- Asynchronous Python code checking (pylint, pyflakes, pep8, mccabe) in any combination
@@ -94,7 +94,7 @@ Emacs is a powerful text editor. It's fully programmable (lisp), but
9494
it can be some work to wire up correctly. A good start if you're
9595
already an Emacs user is `Python Programming in Emacs`_ at EmacsWiki.
9696

97-
1. Emacs itself comes with a python mode.
97+
1. Emacs itself comes with a Python mode.
9898
2. Python ships with an alternate version:
9999
`python-mode.el <https://launchpad.net/python-mode>`_
100100
3. Fabián Ezequiel Gallina's `python.el <https://github.com/fgallina/python.el>`_
@@ -118,7 +118,7 @@ Sublime Text
118118
extraordinary features and amazing performance.
119119

120120
Sublime Text has excellent support for editing Python code and uses Python for
121-
its plugin API. It also has plugins a diverse variety of plugins, `some of which <https://github.com/SublimeLinter/SublimeLinter>`_
121+
its plugin API. It also has a diverse variety of plugins, `some of which <https://github.com/SublimeLinter/SublimeLinter>`_
122122
allow for in-editor PEP8 checking and code "linting".
123123

124124

@@ -130,7 +130,7 @@ PyCharm / IntelliJ IDEA
130130

131131
`PyCharm <http://www.jetbrains.com/pycharm/>`_ is developed by JetBrains, also
132132
known for IntelliJ IDEA. Both share the same code base and most of PyCharm's
133-
features can be brought to IntelliJ with the free `Python Plug-In <http://plugins.intellij.net/plugin/?id=631/>`_.
133+
features can be brought to IntelliJ with the free `Python Plug-In <http://plugins.intellij.net/plugin/?id=631>`_.
134134

135135

136136
Eclipse

docs/dev/virtualenvs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Other useful commands
140140

141141
autoenv
142142
-------
143-
When you ``cd`` into a directory containing a ``.env`` `autoenv <https://github.com/kennethreitz/autoenv>`_
143+
When you ``cd`` into a directory containing a ``.env``, `autoenv <https://github.com/kennethreitz/autoenv>`_
144144
automagically activates the environment.
145145

146146
Install it on Mac OS X using ``brew``:

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. osxpython documentation master file, created by
1+
.. pythonguide documentation master file, created by
22
sphinx-quickstart on Wed Aug 4 22:51:11 2010.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.

docs/intro/community.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The major events for the Python community are developer conferences. The two
7575
most notable conferences are PyCon, which is held in the US, and its European
7676
sibling, EuroPython.
7777

78-
A comprehensive list of conferences is maintained `at pycon.org <http://www.pycon.org/>`_.
78+
A comprehensive list of conferences is maintained at `pycon.org <http://www.pycon.org/>`_.
7979

8080

8181
Python User Groups

docs/intro/learning.rst

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Beginner
77
Learn Python Interactive Tutorial
88
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
99

10-
Learnpython.org is an easy non-intimidating way to get introduced to python.
10+
Learnpython.org is an easy non-intimidating way to get introduced to Python.
1111
The website takes the same approach used on the popular `Try Ruby <http://tryruby.org/>`_
12-
website, it has an interactive python interpreter built into the site that
12+
website, it has an interactive Python interpreter built into the site that
1313
allows you to go through the lessons without having to install Python locally.
1414

1515
`Learn Python <http://www.learnpython.org/>`_
@@ -52,11 +52,11 @@ Think Python: How to Think Like a Computer Scientist
5252
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5353

5454
Think Python attempts to give an introduction to basic concepts in computer
55-
science through the use of the python language. The focus was to create a book
55+
science through the use of the Python language. The focus was to create a book
5656
with plenty of exercises, minimal jargon and a section in each chapter devoted
5757
to the subject of debugging.
5858

59-
While exploring the various features available in the python language the
59+
While exploring the various features available in the Python language the
6060
author weaves in various design patterns and best practices.
6161

6262
The book also includes several case studies which have the reader explore the
@@ -72,11 +72,11 @@ Python Koans
7272

7373
Python Koans is a port of Edgecase's Ruby Koans. It uses a test-driven
7474
approach, q.v. TEST DRIVEN DESIGN SECTION to provide an interactive tutorial
75-
teaching basic python concepts. By fixing assertion statements that fail in a
76-
test script, this provides sequential steps to learning python.
75+
teaching basic Python concepts. By fixing assertion statements that fail in a
76+
test script, this provides sequential steps to learning Python.
7777

7878
For those used to languages and figuring out puzzles on their own, this can be
79-
a fun, attractive option. For those new to python and programming, having an
79+
a fun, attractive option. For those new to Python and programming, having an
8080
additional resource or reference will be helpful.
8181

8282
`Python Koans <http://bitbucket.org/gregmalcolm/python_koans>`_
@@ -88,7 +88,7 @@ More information about test driven development can be found at these resources:
8888
A Byte of Python
8989
~~~~~~~~~~~~~~~~
9090

91-
A free introductory book that teaches python at the beginner level, it assumes no
91+
A free introductory book that teaches Python at the beginner level, it assumes no
9292
previous programming experience.
9393

9494
`A Byte of Python for Python 2.x <http://www.ibiblio.org/swaroopch/byteofpython/read/>`_
@@ -104,6 +104,8 @@ Pro Python
104104
This book is for intermediate to advanced Python programmers who are looking to understand how
105105
and why Python works the way it does and how they can take their code to the next level.
106106

107+
`Pro Python <http://propython.com>`_
108+
107109

108110
Expert Python Programming
109111
~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -137,16 +139,16 @@ A Primer on Scientific Programming with Python
137139
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
138140

139141
A Primer on Scientific Programming with Python, written by Hans Petter Langtangen,
140-
mainly covers python's usage in scientific field. In the book, examples are
141-
choosen from mathematics and the natural sciences.
142+
mainly covers Python's usage in scientific field. In the book, examples are
143+
chosen from mathematics and the natural sciences.
142144

143-
`A Primer on Scientific Programming with Python <http://www.springer.com/mathematics/computational+science+%26+engineering/book/978-3-642-18365-2>`_
145+
`A Primer on Scientific Programming with Python <http://www.springer.com/mathematics/computational+science+%26+engineering/book/978-3-642-30292-3>`_
144146

145147
Numerical Methods in Engineering with Python
146148
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
147149

148-
Numerical Methods in Engineering with Python,written by Jaan Kiusalaas, attempts to
149-
emphasis on numerical methods and how to implement them in python.
150+
Numerical Methods in Engineering with Python, written by Jaan Kiusalaas, attempts to
151+
emphasis on numerical methods and how to implement them in Python.
150152

151153
`Numerical Methods in Engineering with Python <http://www.cambridge.org/us/academic/subjects/engineering/engineering-mathematics-and-programming/numerical-methods-engineering-python-2nd-edition>`_
152154

@@ -157,7 +159,7 @@ Python in a Nutshell
157159
~~~~~~~~~~~~~~~~~~~~
158160

159161
Python in a Nutshell, written by Alex Martelli, covers most cross-platform
160-
python's usage, from its syntax to built-in libraries to advanced topics such
162+
Python's usage, from its syntax to built-in libraries to advanced topics such
161163
as writing C extensions.
162164

163165
`Python in a Nutshell <http://shop.oreilly.com/product/9780596001889.do>`_
@@ -169,3 +171,12 @@ This is Python's reference manual, it covers the syntax and the core semantics o
169171
language.
170172

171173
`The Python Language Reference <http://docs.python.org/reference/index.html>`_
174+
175+
Python Pocket Reference
176+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
177+
178+
Python Pocket Reference, written by Mark Lutz, is an easy to use reference to the
179+
core language, with descriptions of commonly used modules and toolkits. It covers
180+
Python 3 and 2.6 versions.
181+
182+
`Python Pocket Reference <http://shop.oreilly.com/product/9780596158095.do>`_

docs/intro/news.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Python-related news.
1919
Pycoder's Weekly
2020
~~~~~~~~~~~~~~~~
2121

22-
Pycoder's Weekly is a free weekly python newsletter for Python developers
22+
Pycoder's Weekly is a free weekly Python newsletter for Python developers
2323
by Python developers (Project, Articles, News, and Jobs).
2424

2525
`Pycoder's Weekly <http://www.pycoders.com/>`_

0 commit comments

Comments
 (0)