You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The html version of this guide is built with [sphinx](http://www.sphinx-doc.org/en/stable/). You may test your revisions locally by having sphinx installed. You can do this easily with pip (as described in the link).
13
+
14
+
```bash
15
+
pip install --user sphinx
16
+
```
17
+
18
+
Then navigate to the directory of the makefile and ```make build``` or ```make html```. Sphinx will then generate the html in a folder called _build/html
19
+
20
+
After navigating to this folder, you can then use python's built in webserver to view your changes locally:
21
+
22
+
```bash
23
+
python3 -m http.server
24
+
```
25
+
26
+
By default, http.server listens on every ip address bound on your host on port 8000. To bind to a specific one, say, localhost on port 8005:
27
+
28
+
```bash
29
+
python3 -m http.server 8005 --bind 127.0.0.1
30
+
```
31
+
32
+
Style Guide
33
+
-----------
34
+
35
+
For all contributions, please follow the `Guide Style Guide`:
**Work in progress. If you'd like to help, please do. There's a lot of work to be done.**
10
+
**Work in progress. If you'd like to help, please do. There's a lot of work to
11
+
be done.**
9
12
10
-
This guide is currently under heavy development. This opinionated guide exists to provide both novice and expert Python developers a best-practice handbook to the installation, configuration, and usage of Python on a daily basis.
13
+
This guide is currently under heavy development. This opinionated guide
14
+
exists to provide both novice and expert Python developers a best practice
15
+
handbook to the installation, configuration, and usage of Python on a daily
16
+
basis.
11
17
12
18
13
19
Topics include:
14
20
15
-
- Platform/version specific installations
21
+
- Platform- and version-specific installations
16
22
- Py2app, Py2exe, bbfreeze, pyInstaller
17
-
- Pip / virtualenv
18
-
- Documentation. Writing it.
19
-
- server configurations / tools for various web frameworks
20
-
- fabric
21
-
- exhaustive module recommendations, grouped by topic/purpose
22
-
- Testing. Jenkins + tox guides.
23
-
- How to interface w/ hg from git easily
24
-
- what libraries to use for what
25
-
26
-
If you are not fond of reading reStructuredText, there is a
23
+
- Pip
24
+
- Numpy, scipy, statpy, pyplot, matplotlib
25
+
- Virtualenv
26
+
- Fabric
27
+
- Exhaustive module recommendations, grouped by topic/purpose
28
+
- Which libraries to use for what
29
+
- Server configurations & tools for various web frameworks
30
+
- Documentation: writing it
31
+
- Testing: Jenkins & tox guides
32
+
- How to easily interface ``hg`` from ``git``
33
+
34
+
If you aren't fond of reading reStructuredText, there is an
27
35
almost up-to-date `HTML version at docs.python-guide.org
Copy file name to clipboardExpand all lines: docs/Makefile
+54-7Lines changed: 54 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,19 @@ SPHINXBUILD = sphinx-build
7
7
PAPER =
8
8
BUILDDIR = _build
9
9
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/)
0 commit comments