File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33A 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.
77The start script serves the docs here: http://localhost:8000
88
99Since 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 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" : {
Original file line number Diff line number Diff line change 1- import SimpleHTTPServer
1+ import http . server
22import os
33
44def 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
You can’t perform that action at this time.
0 commit comments