Skip to content

Commit 46b3fd0

Browse files
authored
Switch to python 3 (#58)
1 parent b915b15 commit 46b3fd0

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
A place to put documentation about interacting with our APIs.
44

55
## Running locally
6-
You can view the documentation site locally by running `npm start` -- you just need to have Python 2 installed on your local machine.
6+
You can view the documentation site locally by running `npm start` -- you just need to have Python 3 installed on your local machine.
77
The start script serves the docs here: http://localhost:8000
88

99
Since it's a static site, you can also just open `/docs/index.html` directly in a web browser if you prefer.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "rm -rf docs/graphql/types && graphqldoc --force",
88
"test": "echo \"Error: no test specified\" && exit 1",
9-
"start": "python -m serve_docs 8000",
9+
"start": "python3 -m serve_docs 8000",
1010
"prettify-webhooks": "prettier --write docs/webhooks"
1111
},
1212
"repository": {

serve_docs.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import SimpleHTTPServer
1+
import http.server
22
import os
33

44
def main():
55
pwd = os.getcwd()
6-
76
try:
87
os.chdir("./docs")
9-
SimpleHTTPServer.test()
8+
http.server.test(http.server.SimpleHTTPRequestHandler)
109
finally:
1110
os.chdir(pwd)
1211

0 commit comments

Comments
 (0)