File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 3
3
A place to put documentation about interacting with our APIs.
4
4
5
5
## 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.
7
7
The start script serves the docs here: http://localhost:8000
8
8
9
9
Since it's a static site, you can also just open ` /docs/index.html ` directly in a web browser if you prefer.
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"build" : " rm -rf docs/graphql/types && graphqldoc --force" ,
8
8
"test" : " echo \" Error: no test specified\" && exit 1" ,
9
- "start" : " python -m serve_docs 8000" ,
9
+ "start" : " python3 -m serve_docs 8000" ,
10
10
"prettify-webhooks" : " prettier --write docs/webhooks"
11
11
},
12
12
"repository" : {
Original file line number Diff line number Diff line change 1
- import SimpleHTTPServer
1
+ import http . server
2
2
import os
3
3
4
4
def main ():
5
5
pwd = os .getcwd ()
6
-
7
6
try :
8
7
os .chdir ("./docs" )
9
- SimpleHTTPServer . test ()
8
+ http . server . test (http . server . SimpleHTTPRequestHandler )
10
9
finally :
11
10
os .chdir (pwd )
12
11
You can’t perform that action at this time.
0 commit comments